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

Backtick sql bug when using filter transformer? #17

Closed
dallincoons opened this issue Jan 12, 2018 · 2 comments
Closed

Backtick sql bug when using filter transformer? #17

dallincoons opened this issue Jan 12, 2018 · 2 comments

Comments

@dallincoons
Copy link

dallincoons commented Jan 12, 2018

When trying to run a query like query={users(filter:{id:"1"}){id,name}} it yields the error in MySql:

Column not found: 1054 Unknown column 'LOWER(id)' in 'where clause' (SQL: select * from `users` where `LOWER(id)` = 1)"

shouldn't this be LOWER(`id`)?

@cmizzi
Copy link
Contributor

cmizzi commented Jan 16, 2018

Hi ! Thanks for your feedback. I've implemented a fix (see referenced PR). Can you try the branch and tell me if the patch works for your case ?

@cmizzi
Copy link
Contributor

cmizzi commented Jan 16, 2018

See referenced PR

@cmizzi cmizzi closed this as completed Jan 16, 2018
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