-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
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
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels