Skip to content

Using io keyword as table alias fails to parse #496

Closed
@BackEndTea

Description

@BackEndTea

This first query fails to parse with Unrecognized keyword, Unrecognized token and This type of clause was previously parsed errors, while the second one has no issues

I get that using keywords as table aliases may not be the smartest, but this is valid SQL 😅 . Could sql-parser support this?

SELECT  COUNT(*) AS amount
FROM    one i
JOIN    two io ON io.id = i.id
SELECT  COUNT(*) AS amount
FROM    one i
JOIN    two ioo ON ioo.id = i.id

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions