joereynolds / sql-lint

An SQL linter
MIT License
437 stars 40 forks source link

fix(postgres): use PostgresAlter instead of Alter (mysql) for postgres #258

Closed pjungermann closed 3 months ago

pjungermann commented 11 months ago

Use lexer/statements/postgres/alter (previously: Alter, new: PostgresAlter) instead of lexer/statements/mysql/alter (Alter).

Add PostgresAlter to exports at statements.

Add test case for postgres-invalid-alter-option.

Without the changes, the test failed for option sequence introduced by PR #204.

Relates-to: PR #204