You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way of getting the aliased column name for a given column?
ie:
q := fmt.Sprintf(`
SELECT %s
FROM product p
WHERE reference = ?`, sqlstruct.ColumnsAliased(p, "p"))
if sort["col"] != "" {
q += fmt.Sprintf(`
ORDER BY %s %s`, sort["col"], sort["order"]) <--- here I would like the alias instead
}
The text was updated successfully, but these errors were encountered:
Is there any way of getting the aliased column name for a given column?
ie:
The text was updated successfully, but these errors were encountered: