Skip to content

Commit

Permalink
Fix compact rev sql on case of missing
Browse files Browse the repository at this point in the history
Signed-off-by: mhmxs <kovacsricsi@gmail.com>
  • Loading branch information
mhmxs committed Jan 10, 2025
1 parent a4169b9 commit 4653af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/drivers/generic/generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var (
FROM kine AS rkv`

compactRevSQL = `
SELECT MAX(crkv.prev_revision) AS prev_revision
SELECT COALESCE(MAX(crkv.prev_revision), 0) AS prev_revision
FROM kine AS crkv
WHERE crkv.name = 'compact_rev_key'`

Expand Down

0 comments on commit 4653af7

Please sign in to comment.