barklan / inline_sql_syntax

Highlight and lint inline SQL strings.
https://marketplace.visualstudio.com/items?itemName=qufiwefefwoyn.inline-sql-syntax
MIT License
57 stars 24 forks source link

Postgres does no analysis on queries without closing semicolon. #56

Open barklan opened 2 years ago

nossrannug commented 2 years ago

Just realized who I'm replying to 😆 🤡

The analysis is done by sql-lint and it is because of this line: https://github.com/joereynolds/sql-lint/blob/9b51f2286fec84368fd9dd6eca0b4e8295de3743/src/reader/reader.ts#L37

I assume the reason being that it is difficult to tell if the query is partial or incorrect when there is no ;