js-sql-parser icon indicating copy to clipboard operation
js-sql-parser copied to clipboard

Enable evaluating "||"

Open eaallen opened this issue 2 years ago • 1 comments

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

eaallen avatar Oct 07 '23 14:10 eaallen

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

albin3 avatar Oct 17 '23 06:10 albin3