Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: execute panic (#15912)
rebelice74c45708eb3a
diff --git a/backend/plugin/db/pg/pg.go b/backend/plugin/db/pg/pg.goindex 2ad40ed331..c5f5d0319d 100644--- a/backend/plugin/db/pg/pg.go+++ b/backend/plugin/db/pg/pg.go@@ -364,7 +364,8 @@ func (d *Driver) Execute(ctx context.Context, statement string, opts db.ExecuteOif err == nil {return affectedRows, nil}- if !errors.As(err, &LockTimeoutError{}) {+ var lockErr *LockTimeoutError+ if !errors.As(err, &lockErr) {return affectedRows, err}@@ -382,7 +383,7 @@ func (d *Driver) Execute(ctx context.Context, statement string, opts db.ExecuteOif err == nil {break}- if !errors.As(err, &LockTimeoutError{}) {+ if !errors.As(err, &lockErr) {break}}