Enable evaluating "||" by eaallen · Pull Request #57 · JavaScriptor/js-sql-parser
JavaScriptor / js-sql-parser Public
-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Hidden character warning
The head ref may contain hidden characters:
"enable--concat-with-"||""
Open
Conversation
eaallen
commented
Oct 7, 2023
eaallen
commented
I realized that js SQL parser does not evaluate "||" as a bit expression. This is SQL standard: https://4js.com/online_documentation/fjs-fgl-manual-html/index.html#fgl-topics/c_fgl_sql_programming_099.html
albin3
commented
Oct 17, 2023
albin3 commented
Member
hi @eaallen '||' is an expr , and is supported here https://github.com/JavaScriptor/js-sql-parser/blob/master/src/sqlParser.jison#L426
ref: https://dev.mysql.com/doc/refman/5.7/en/expressions.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment