Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: fix pg executor typo (#9823)
Danny Xu931c44370742
diff --git a/backend/plugin/db/pg/pg.go b/backend/plugin/db/pg/pg.goindex 742d602258..2519cbdeb5 100644--- a/backend/plugin/db/pg/pg.go+++ b/backend/plugin/db/pg/pg.go@@ -337,7 +337,7 @@ func (driver *Driver) Execute(ctx context.Context, statement string, createDatab}defer tx.Rollback()- // Set the current transaction role to the database owner so that the owner of created database will be the same as the database owner.+ // Set the current transaction role to the database owner so that the owner of created objects will be the same as the database owner.if _, err := tx.ExecContext(ctx, fmt.Sprintf("SET LOCAL ROLE '%s'", owner)); err != nil {return 0, err}diff --git a/backend/plugin/db/redshift/redshift.go b/backend/plugin/db/redshift/redshift.goindex cbee1c8759..e1d1077c6d 100644--- a/backend/plugin/db/redshift/redshift.go+++ b/backend/plugin/db/redshift/redshift.go@@ -240,7 +240,7 @@ func (driver *Driver) Execute(ctx context.Context, statement string, createDatab}defer tx.Rollback()- // Set the current transaction role to the database owner so that the owner of created database will be the same as the database owner.+ // Set the current transaction role to the database owner so that the owner of created objects will be the same as the database owner.if _, err := tx.ExecContext(ctx, fmt.Sprintf("SET SESSION AUTHORIZATION '%s'", owner)); err != nil {return 0, err}