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

like() Numeric bug #60

Open
selfclose opened this issue May 23, 2020 · 2 comments
Open

like() Numeric bug #60

selfclose opened this issue May 23, 2020 · 2 comments
Labels

Comments

@selfclose
Copy link

Im using v2.1.1

When using .like() and .or_like() on numeric, Quote got removed '%123%' became %123% and error of execution

ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%123% OR first_nameLIKE %123% ORlast_nameLIKE %123% ORDER BYidDESC LI' at line

@kylefarris kylefarris added the bug label May 26, 2020
@kylefarris
Copy link
Owner

Interesting... I'd be happy to merge in a PR if you can patch the bug. I'm swamped with a million other things at the moment, unfortunately.

@parthutank
Copy link

Remove else if condition in _qb_escape function.

File Path - node_modules\node-querybuilder\drivers\mysql\query_builder.js

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

No branches or pull requests

3 participants