sqlstruct
sqlstruct copied to clipboard
Naming bug on doScan()
Line name = strings.Replace(name, alias+"_", "", 1)
in doScan() causes an issue if alias+"_" is part of the column name. Eg.
column name: "order_id", alias "r" will produce "ordeid" and hence fail.
For now make sure your alias+"_" is not part of a column name.
Are you using ColumnsAliased to generate your column names?
Yes I am using ColumnsAliased, ex. sqlstruct.ColumnsAliased(o, "r") will produce the error if a column is called order_id.