fix: Fixes PostgreSQL database deletion.
All checks were successful
Release code / build (push) Successful in 10m1s
All checks were successful
Release code / build (push) Successful in 10m1s
This commit is contained in:
parent
e056911af4
commit
0bc41c430a
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ func backupRestoreEntrypoint(cCtx *cli.Context) error {
|
|||
|
||||
log.Info("Dropping database...")
|
||||
|
||||
_, err = db.Query(context.Background(), "DROP DATABASE $1", postgresDB)
|
||||
_, err = db.Query(context.Background(), fmt.Sprintf("DROP DATABASE %s", pgx.Identifier{postgresDB}.Sanitize()))
|
||||
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to drop database: %s", err.Error())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue