-
-
Notifications
You must be signed in to change notification settings - Fork 920
Simplify boolean filter #1905
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
Simplify boolean filter #1905
Conversation
This has implications for the DBMS prepared statement, no? I don't see why we'd want to do this, to be honest. Does it give a sizeable performance gain? |
The reason i did this because
|
That's a Symfony profiler bug. |
Isn't doctrine storing booleans as integers anyway? |
No. Not on PostgreSQL at least. The integers 0 and 1 are not valid boolean values: https://www.postgresql.org/docs/9.1/static/datatype-boolean.html |
Well yes that's stating the obvious. I still don't understand the objection. Cheers |
I'm against it because a value is a value, not a literal. If there's a sizeable performance gain, I'm okay with making exceptions for the rule. But otherwise, I don't see why we'd do that. |
…filter Simplify boolean filter
no need for extra query builder named parameters here. just use
$expr->literal(...)