Skip to content

Improving IN expression handling #48

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

Merged
merged 1 commit into from
Jul 10, 2019

Conversation

moufmouf
Copy link
Member

A IN expression with a parameter (like status IN (:statuses))
can now accept parameters... or not.

  • status IN (:statuses)
  • status IN :statuses

are now both valid.
Previously, the first was only valid in $magicQuery->buildPreparedStatement and the later was only valid in $magicQuery->build, which caused confusion.

A IN expression with a parameter (like `status IN (:statuses)`)
can now accept parameters... or not.

- `status IN (:statuses)`
- `status IN :statuses`

are now both valid.
Previously, the first was only valid in $magicQuery->buildPreparedStatement and the later was only valid in $magicQuery->build, which caused confusion.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 68.395% when pulling b284fdd on moufmouf:in_expression_parameter into d5fcdd8 on thecodingmachine:1.3.

@moufmouf moufmouf merged commit 2de0175 into thecodingmachine:1.3 Jul 10, 2019
@moufmouf moufmouf deleted the in_expression_parameter branch July 10, 2019 15:52
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

Successfully merging this pull request may close these issues.

2 participants