Skip to content

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

chore: remove unused tx (#12455)

p0ny245c30ee5d35
diff --git a/backend/plugin/db/mysql/mysql.go b/backend/plugin/db/mysql/mysql.go
index 9ab6b68af1..6f1ff6c372 100644
--- a/backend/plugin/db/mysql/mysql.go
+++ b/backend/plugin/db/mysql/mysql.go
@@ -336,12 +336,6 @@ func (d *Driver) Execute(ctx context.Context, statement string, opts db.ExecuteO
originalIndex = []int32{0}
}
- tx, err := conn.BeginTx(ctx, nil)
- if err != nil {
- return 0, errors.Wrapf(err, "failed to begin execute transaction")
- }
- defer tx.Rollback()
-
var totalRowsAffected int64
if err := conn.Raw(func(driverConn any) error {