Skip to content

FORCE INDEX is not parsed correctly #497

Closed
@BackEndTea

Description

@BackEndTea

This first query results in the following errors when linting, while the second one has no problems

#1: Unexpected token. (near "=" at position 58)
#2: Unexpected token. (near "uno" at position 60)
#3: Unexpected token. (near "." at position 63)
#4: Unexpected token. (near "id" at position 64)
SELECT *
FROM uno
JOIN dos FORCE INDEX (two_id) ON dos.id = uno.id
SELECT *
FROM uno
JOIN dos  ON dos.id = uno.id

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions