joereynolds / sql-lint

An SQL linter
MIT License
437 stars 40 forks source link

Claims there is syntax errors when there is not #244

Open kaushalyap opened 1 year ago

kaushalyap commented 1 year ago

Sample Code:

DROP TABLE
  IF EXISTS app_public.tablename CASCADE;

-- create table statement column definition
id SERIAL PRIMARY KEY,

id BIGSERIAL PRIMARY KEY,

Errors:

[error] syntax error at or near "DROP"
[error] syntax error at or near "SERIAL"
[error] syntax error at or near "BIGSERIAL"

Version Info:

DB: Postgres 14.3

❯ sql-lint --version
1.0.0