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

ViewsHandlerFilterStringTest fails. #8

Open
jlfranklin opened this issue May 28, 2018 · 0 comments
Open

ViewsHandlerFilterStringTest fails. #8

jlfranklin opened this issue May 28, 2018 · 0 comments

Comments

@jlfranklin
Copy link
Member

The ViewsHandlerFilterStringTest fails. The call to query->add_where_expression() sends an integer as the placeholder value. By the time it gets to PDO, it has been converted to a string and SQLite executes LENGTH(field) < '5' instead of LENGTH(field) < 5. SQLite doesn't coerce types. It treats '5' as zero.

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

1 participant