Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: pg ExecuteConetxt do not return err (#1540)

Cluas99b78823ae58
diff --git a/plugin/db/pg/pg.go b/plugin/db/pg/pg.go
index 96a423aba5..a654720339 100644
--- a/plugin/db/pg/pg.go
+++ b/plugin/db/pg/pg.go
@@ -456,7 +456,7 @@ func (driver *Driver) Execute(ctx context.Context, statement string) error {
}
if _, err := tx.ExecContext(ctx, strings.Join(remainingStmts, "\n")); err != nil {
- return nil
+ return err
}
if err := tx.Commit(); err != nil {