Skip to content

Commit

Permalink
Fixed date comparison in expire to use numeric instead of string compare
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Pressnall committed Nov 26, 2014
1 parent a06171c commit b48f5b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snebu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3408,7 +3408,7 @@ int expire(int argc, char **argv)
" ) as d on (c.backupset_id = d.backupset_id) "
" order by c.name, d.ranknum "
") as f on e.backupset_id = f.backupset_id "
"where f.backupset_id is null and e.retention = '%q' and e.serial < '%d'%s%Q ",
"where f.backupset_id is null and e.retention = '%q' and e.serial < %d%s%Q ",
min, retention, cutoffdate,
strlen(bkname) > 0 ? " and e.name = " : "",
strlen(bkname) > 0 ? bkname : "")), 0, 0, &sqlerr);
Expand Down

0 comments on commit b48f5b1

Please sign in to comment.