You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The linter should ignore keywords inside properly quoted strings, here it's found the word limit inside a string which should not be invalid.
constsqlLint=require('sql-lint').default;constmain=asyncfunction(sqlQuery){constSQLerrors=awaitsqlLint({driver: "postgres",sql: sqlQuery});console.log(SQLerrors);}main("INSERT INTO my_table (notes) VALUES ('speed limit sign');")
returns:
[
{
source: '',error: "[sql-lint: invalid-limit-quantifier] Argument 'sign' is not a valid quantifier for LIMIT clause.",line: 1,additionalInformation: ''
}
]
The text was updated successfully, but these errors were encountered:
The linter should ignore keywords inside properly quoted strings, here it's found the word
limit
inside a string which should not be invalid.returns:
The text was updated successfully, but these errors were encountered: