mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-19 08:39:44 +00:00
Fixed force dropping bug (#2892)
This commit is contained in:
@@ -101,8 +101,7 @@ impl MigrateDatabase for Postgres {
|
||||
|
||||
conn.execute(&*format!(
|
||||
"SELECT pg_terminate_backend(pg_stat_activity.{pid_type}) FROM pg_stat_activity \
|
||||
WHERE pg_stat_activity.datname = {} AND {pid_type} <> pg_backend_pid()",
|
||||
database.replace('"', "\"\""),
|
||||
WHERE pg_stat_activity.datname = '{database}' AND {pid_type} <> pg_backend_pid()"
|
||||
))
|
||||
.await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user