The Wayback Machine - https://web.archive.org/web/20201011181058/https://github.com/JSQLParser/JSqlParser/issues/602
Skip to content
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

OR not parsed correctly #602

Open
dondank opened this issue Apr 15, 2018 · 3 comments
Open

OR not parsed correctly #602

dondank opened this issue Apr 15, 2018 · 3 comments

Comments

@dondank
Copy link

@dondank dondank commented Apr 15, 2018

following fails to parse:

SELECT x OR y from T

net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "OR" "OR"
at line 1, column 10.

@dondank
Copy link
Author

@dondank dondank commented Apr 24, 2018

can anyone verify this is a bug?

@wumpz
Copy link
Member

@wumpz wumpz commented Apr 24, 2018

At the moment this type of expression (x or y) is not supported as selected item.

@wheredevel
Copy link

@wheredevel wheredevel commented Apr 30, 2018

Tested this on MySQL (example is based on Sakila):

SELECT city_id OR country_id FROM city

Also with ||:

SELECT city_id || country_id FROM city
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.