sql-lint icon indicating copy to clipboard operation
sql-lint copied to clipboard

ALTER INDEX for Postgres should be valid

Open tbright92 opened this issue 1 year ago • 0 comments

An error was raised when encountered ALTER INDEX ..... statement running sql-lint through super-linter

Steps to reproduce

  • create some .sql file with ALTER INDEX foo RENAME TO bar;
  • run super-liter

Output

[sql-lint: my-sql-invalid-alter-option] Option 'index' is not a valid option, must be one of '["column","online","offline","ignore","database","event","function","procedure","server","table","tablespace","view"]'.

Expected Behavior

No error from linter. ALTER INDEX ... should be valid.

tbright92 avatar Sep 06 '24 03:09 tbright92