Skip to content

Commit da1916c

Browse files
Add support for OBJECT_PUBLICATION in AlterOwnerStmt
Fixes issue #219 by adding OBJECT_PUBLICATION case to the AlterOwnerStmt switch statement in the deparser. This enables deparsing of ALTER PUBLICATION ... OWNER TO ... statements. Co-Authored-By: Dan Lynch <[email protected]>
1 parent c00ea9e commit da1916c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/deparser/src/deparser.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8286,6 +8286,9 @@ export class Deparser implements DeparserVisitor {
82868286
case 'OBJECT_COLLATION':
82878287
output.push('COLLATION');
82888288
break;
8289+
case 'OBJECT_PUBLICATION':
8290+
output.push('PUBLICATION');
8291+
break;
82898292
default:
82908293
throw new Error(`Unsupported AlterOwnerStmt objectType: ${node.objectType}`);
82918294
}

0 commit comments

Comments
 (0)