Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
zwang28 committed Nov 8, 2024
1 parent bbbe601 commit 00a4f3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meta/src/backup_restore/restore_impl/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ macro_rules! reset_mysql_sequence {
sea_orm::DbBackend::Postgres => {
$db.execute(sea_orm::Statement::from_string(
sea_orm::DatabaseBackend::Postgres,
format!("SELECT setval('{}_{}_seq', (SELECT MAX({}) FROM {}));", $table, stringify!($id_field), stringify!($id_field), $table),
format!("SELECT setval('{}_{}_seq', (SELECT MAX({}) FROM \"{}\"));", $table, stringify!($id_field), stringify!($id_field), $table),
))
.await
.map_err(map_db_err)?;
Expand Down

0 comments on commit 00a4f3f

Please sign in to comment.