-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix and/or function argument to compile check bool expression #4345
Conversation
diesel_compile_tests/tests/fail/numeric_ops_require_numeric_column.stderr
Outdated
Show resolved
Hide resolved
@Ten0 I will add it to the backport PR as soon as I'm to work. |
Hi, maybe I'm misunderstanding, but it looks like this restriction is placed on all database backends. The query provided in the test works fine for mysql on 2.2.4. Maybe it should only restrict postgres instead? |
@Roardom Thanks for raising that concern. You are right that this kind of query is allowed with mysql, it seems to be just another syntax for |
While not a complete solution, it should at least be highlighted in the release notes as a breaking change for users supporting mysql backends. I saw this change and immediately thought of similar queries in my code. But I double checked, and I only use it inside
I believe |
Fix and/or function argument to compile check bool expression
Currently if you try putting any sort of expression in a and function of diesel it will not be detected at compile time but will raise an error at runtime