You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// %Text: ALTER TABLE, ALTER INDEX, ALTER VIEW, ALTER SEQUENCE, ALTER DATABASE, ALTER USER, ALTER ROLE, ALTER DEFAULT PRIVILEGES
1929
+
// %Text: ALTER TABLE, ALTER INDEX, ALTER VIEW, ALTER SEQUENCE, ALTER DATABASE, ALTER USER, ALTER ROLE, ALTER DEFAULT PRIVILEGES,ALTER EXTERNAL CONNECTION
1929
1930
alter_stmt:
1930
1931
alter_ddl_stmt // help texts in sub-rule
1932
+
| alter_external_connection_stmt // EXTEND WITH HELP: ALTER EXTERNAL CONNECTION
1931
1933
| alter_role_stmt // EXTEND WITH HELP: ALTER ROLE
1932
1934
| alter_virtual_cluster_stmt /* SKIP DOC */
1933
1935
| alter_unsupported_stmt
@@ -3813,6 +3815,36 @@ opt_with_schedule_options:
3813
3815
$$.val = nil
3814
3816
}
3815
3817
3818
+
// %Help: ALTER EXTERNAL CONNECTION - alter an existing external connection
3819
+
// %Category: Misc
3820
+
// %Text:
3821
+
// ALTER EXTERNAL CONNECTION [IF EXISTS] <name> AS <endpoint>
3822
+
//
3823
+
// Name:
3824
+
// Name of the created external connection
3825
+
//
3826
+
// Endpoint:
3827
+
// Endpoint of the resource that the external connection represents.
3828
+
alter_external_connection_stmt:
3829
+
ALTER EXTERNAL CONNECTION /*$4=*/label_spec AS /*$6=*/string_or_placeholder
3830
+
{
3831
+
$$.val = &tree.AlterExternalConnection{
3832
+
IfExists: false,
3833
+
ConnectionLabelSpec: *($4.labelSpec()),
3834
+
As: $6.expr(),
3835
+
}
3836
+
}
3837
+
| ALTER EXTERNAL CONNECTION IF EXISTS /*$6=*/label_spec AS /*$8=*/string_or_placeholder
3838
+
{
3839
+
$$.val = &tree.AlterExternalConnection{
3840
+
IfExists: true,
3841
+
ConnectionLabelSpec: *($6.labelSpec()),
3842
+
As: $8.expr(),
3843
+
}
3844
+
}
3845
+
| ALTER EXTERNAL CONNECTION error // SHOW HELP: ALTER EXTERNAL CONNECTION
3846
+
3847
+
3816
3848
3817
3849
// %Help: CREATE EXTERNAL CONNECTION - create a new external connection
0 commit comments