-
-
Notifications
You must be signed in to change notification settings - Fork 110
Selection: added new method whereOr #111
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
Conversation
cd4211b to
23ad49e
Compare
23ad49e to
fa7d0ed
Compare
src/Database/Table/Selection.php
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you invert this condition, you can simply avoid putting whole method body into one large condition.
fa7d0ed to
440577d
Compare
src/Database/Table/Selection.php
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else if => elseif
fe5d58c to
881c210
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can anyone think of some function which takes at least two parameters and is implemented in all mysql, sqlite and postgesql? Otherwise I'd have to use LOCATE(), which works only on MySQL and that way the whole testcase would be skipped on anything else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ROUND() or MOD()?
881c210 to
4eda4cf
Compare
4eda4cf to
afc1637
Compare
0771c2f to
425ad23
Compare
|
Thanks! |
This feature will make creating the OR-ed where conditions easier by passing an (associative) array as its parameter.