Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Apr 24, 2022

While reviewing #463 I wrote this test for expected errors errors when trying to parse <expr> IN <expr>

This is consistent with postgres

alamb=# select * from a where a in a;
ERROR:  syntax error at or near "a"
LINE 1: select * from a where a in a;

And mysql

mysql> select * from foo where bar IN bar;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bar' at line 1

@coveralls
Copy link

Pull Request Test Coverage Report for Build 2215310091

  • 6 of 6 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.007%) to 90.369%

Totals Coverage Status
Change from base Build 2207579286: 0.007%
Covered Lines: 8004
Relevant Lines: 8857

💛 - Coveralls

@alamb alamb merged commit d248744 into apache:main Apr 24, 2022
graham pushed a commit to graham/sqlparser-rs that referenced this pull request Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants