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

A where statement with = [potentially null value] should not be possible #641

Open
Bart-Westenenk opened this issue Feb 1, 2025 · 0 comments

Comments

@Bart-Westenenk
Copy link

The following query builder where clause will always evaluate to true, as in SQL col = null is always evaluated to true

$querybuilder
  ->select('f')
  ->from('foo', 'f')
  ->where('f.bar = :bar')
  ->setParameter('bar', null)

However, this may be unexpected as the developer may expect it also filters the null values.

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