We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3a4996 commit 25d6a40Copy full SHA for 25d6a40
src/parser/mod.rs
@@ -6274,7 +6274,7 @@ impl<'a> Parser<'a> {
6274
self.expect_keyword(Keyword::WITH)?;
6275
let table_name = self.parse_object_name(false)?;
6276
AlterTableOperation::SwapWith { table_name }
6277
- } else if dialect_of!(self is PostgreSqlDialect)
+ } else if dialect_of!(self is PostgreSqlDialect | GenericDialect)
6278
&& self.parse_keywords(&[Keyword::OWNER, Keyword::TO])
6279
{
6280
let next_token = self.next_token();
tests/sqlparser_postgres.rs
@@ -765,7 +765,7 @@ fn parse_alter_table_owner_to() {
765
];
766
767
for case in test_cases {
768
- match pg().verified_stmt(case.sql) {
+ match pg_and_generic().verified_stmt(case.sql) {
769
Statement::AlterTable {
770
name,
771
if_exists: _,
0 commit comments