-
-
Notifications
You must be signed in to change notification settings - Fork 230
Database: SqlBuilder: added support for REGEXP and RLIKE operators in WHERE #1156
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
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.
You can notice that the keywords should be ordered alphabetically. Fix it please. ;-)
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.
Were they? Was "OR" before "NOT"? ;)
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.
Well I think that is a typo.
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.
It just a coincidence, but RLIKE is redundant, because LIKE is already present (it its suffix).
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.
@hrach: no, it is not redundant:
-- with RLIKE in the list:
WHERE `col` RLIKE 'foo'
-- without:
WHERE `col` RLIKE = 'foo'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.
@hrach: Only if the assertion (?<=\W|^) wasn't there.
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.
hmhm, so in that case also xor, etc missing too :)
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.
Oh yes, this commit broken my initial idea. 53813ce
Database\Table\SqlBuilder: added suffix test, added missing RLIKE & REGEXP operator [closes #1156]
…EGEXP operator [closes nette/nette#1156]
No description provided.