Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naming bug on doScan() #16

Open
madshov opened this issue Nov 5, 2018 · 2 comments
Open

Naming bug on doScan() #16

madshov opened this issue Nov 5, 2018 · 2 comments

Comments

@madshov
Copy link

madshov commented Nov 5, 2018

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.

@kisielk
Copy link
Owner

kisielk commented Nov 8, 2018

Are you using ColumnsAliased to generate your column names?

@madshov
Copy link
Author

madshov commented Mar 7, 2019

Yes I am using ColumnsAliased, ex. sqlstruct.ColumnsAliased(o, "r") will produce the error if a column is called order_id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants