Merge pull request #68 from ivanceras/master

Add LIMIT as RESERVED_FOR_TABLE_ALIAS
This commit is contained in:
Nikhil Benesch 2019-05-31 18:08:26 -04:00 committed by GitHub
commit 202464a06a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View file

@ -396,7 +396,7 @@ pub const RESERVED_FOR_TABLE_ALIAS: &[&str] = &[
// Reserved as both a table and a column alias:
WITH, SELECT, WHERE, GROUP, ORDER, UNION, EXCEPT, INTERSECT,
// Reserved only as a table alias in the `FROM`/`JOIN` clauses:
ON, JOIN, INNER, CROSS, FULL, LEFT, RIGHT, NATURAL, USING,
ON, JOIN, INNER, CROSS, FULL, LEFT, RIGHT, NATURAL, USING, LIMIT,
];
/// Can't be used as a column alias, so that `SELECT <expr> alias`