-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
fix: move sql operators to include file #3901
base: main
Are you sure you want to change the base?
fix: move sql operators to include file #3901
Conversation
Does the logical operators need to be moved 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.
Very good question. What do you think is better?
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.
Very good question. What do you think is better?
##! sql operators | ||
|
||
[|&<>*\/%=^+-]{1,3} |
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.
##! sql operators | |
[|&<>*\/%=^+-]{1,3} | |
##!> include sql-operators | |
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.
Why do we have there the *
, %
and ^
chars? Are those valid part of the sql language operators 🤔 ?
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.
Those characters are causing tests to fail. Which is why I revert my initial commit.
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.
Also, if you read a little above, a url points to the same SQLITE operators page I mentioned earlier.
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.
Looks like those are valid operators for MySQL: https://dev.mysql.com/doc/refman/8.4/en/non-typed-operators.html
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.
Looks like we've to add *
, ^
, %, |
, +
, -
to fix the tests for 942520. What do you say, should we add them alongwith other MySQL operators? Will adding single chars cause FPs?
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.
Also, the main question is should we include the logical operators too. I think we should, including logical operators for other engines too. But then, what about 942120.ra? Only the include statement will be left. 😄
No description provided.