Skip to content

Commit

Permalink
Fix: rollback query
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Apr 5, 2024
1 parent 4fb2116 commit 0573cc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/storage/postgres/rollback.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/uptrace/bun"
)

const rollbackQuery = `WITH deleted AS (DELETE FROM ? WHERE height > ? RETURNING *) SELECT count(*) FROM deleted;`
const rollbackQuery = `WITH deleted AS (DELETE FROM ? WHERE height > ? RETURNING id) SELECT count(*) FROM deleted;`

// RollbackManager -
type RollbackManager struct {
Expand Down

0 comments on commit 0573cc8

Please sign in to comment.