Skip to content

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

Remove unused variable

天舟75f66d1efeda
diff --git a/plugin/db/util/driverutil.go b/plugin/db/util/driverutil.go
index 2c4e256cde..406813320a 100644
--- a/plugin/db/util/driverutil.go
+++ b/plugin/db/util/driverutil.go
@@ -276,11 +276,10 @@ func ExecuteMigration(ctx context.Context, dbType db.Type, driver db.Driver, m *
if statement != "" {
// Switch to the database if we're creating a new database
if !m.CreateDatabase {
- d, err := driver.GetDbConnection(ctx, m.Database)
+ _, err := driver.GetDbConnection(ctx, m.Database)
if err != nil {
return -1, "", err
}
- sqldb = d
}
// MySQL executes DDL in its own transaction, so there is no need to supply a transaction.
if err = driver.Execute(ctx, statement); err != nil {