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

MariaDB: INTERSECT and EXCEPT keywords #166

Closed
ibennetch opened this Issue Aug 30, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@ibennetch
Member

ibennetch commented Aug 30, 2017

MariaDB 10.3 will introduce the INTERSECT and EXCEPT keywords.

./lint-query --query "(SELECT a,b FROM t1) INTERSECT (SELECT c,d FROM t2)"
#1: Unexpected token. (near "INTERSECT" at position 21)
#2: Unexpected token. (near "(" at position 31)
#3: This type of clause was previously parsed. (near "SELECT" at position 32)
#4: Unexpected token. (near ")" at position 50)

and

./lint-query --query "(SELECT a,b FROM t1) EXCEPT (SELECT c,d FROM t2)"
#1: Unexpected token. (near "EXCEPT" at position 21)
#2: Unexpected token. (near "(" at position 28)
#3: This type of clause was previously parsed. (near "SELECT" at position 29)
#4: Unexpected token. (near ")" at position 47)

As far as I've been able to tell, MySQL has no plans to implement either of these at this time.

@ibennetch ibennetch changed the title from INTERSECT and EXCEPT keywords to MariaDB: INTERSECT and EXCEPT keywords Aug 30, 2017

@nijel nijel self-assigned this Aug 30, 2017

@nijel nijel added the enhancement label Aug 30, 2017

nijel added a commit that referenced this issue Aug 30, 2017

Add MariaDB 10.3 context
This also includes INTERSECT and EXPECT reserved words.

Issue #166

Signed-off-by: Michal Čihař <michal@cihar.com>

@nijel nijel closed this in 6ee6fa8 Aug 30, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment