sqlstruct
sqlstruct copied to clipboard
ScanAliased didnt work
Hi there,
i think there's a bug in here: https://github.com/kisielk/sqlstruct/blob/master/sqlstruct.go#L233 When you used aliasedColumn and than scanAliased.
//edit: ok, i did a little debug and here's the final result is, the problem is with the oracle db, automatically converts all fields to UPPERCASE, so when it try to replace the alias part it's without effect.
Makes sense. Are you interested in making a PR?
On May 24, 2020, at 13:39, Patrik Tomášik [email protected] wrote:
Hi there,
i think there's a bug in here: https://github.com/kisielk/sqlstruct/blob/master/sqlstruct.go#L233 When you used aliasedColumn and than scanAliased, this method build fields map without alias and it's no longer able to pair the cols of result. So the method getFieldInfo should consider alias too.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.