Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Add the missing commit in the pg execute implementation
天舟9052529b4d1e
diff --git a/plugin/db/pg/pg.go b/plugin/db/pg/pg.goindex 18d7a5d888..230b93fccd 100644--- a/plugin/db/pg/pg.go+++ b/plugin/db/pg/pg.go@@ -494,6 +494,13 @@ func (driver *Driver) Execute(ctx context.Context, statement string) error {defer tx.Rollback()_, err = tx.ExecContext(ctx, statement)++ if err == nil {+ if err := tx.Commit(); err != nil {+ return err+ }+ }+return err}