Skip to content

Commit

Permalink
Support TYPE in ALTER statement (postgres) (#272)
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Reynolds <[email protected]>
  • Loading branch information
joereynolds and Joe Reynolds authored Aug 15, 2024
1 parent f4a7464 commit c169757
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lexer/statements/postgres/alter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class PostgresAlter implements ILexer {
"server",
"table",
"tablespace",
"type",
"view",
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ test.each([
["ALTER server;"],
["ALTER table;"],
["ALTER tablespace;"],
["ALTER TYPE blah;"],
["ALTER view;"],
])("it does not error about valid ALTER options", (query) => {
const checker = new PostgresInvalidAlterOption();
Expand Down

0 comments on commit c169757

Please sign in to comment.