Changeset 1113
- Timestamp:
- 11/30/2006 10:13:37 AM (2 years ago)
- svk:copy_cache_prev:
- 1095
- Files:
-
- 1 modified
-
trunk/scripts/send-quarantine-digests.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/send-quarantine-digests.pl
r1112 r1113 205 205 or fatal(sprintf("Couldn't prepare query: %s", $dbh->errstr)); 206 206 207 my $date_add = $dbType eq 'pg' ? "NOW() + INTERVAL ? DAY" 207 # postgres has a strange calulation to avoid having to tack on "days" to the execute value... 208 my $date_add = $dbType eq 'pg' ? "TO_TIMESTAMP(EXTRACT(EPOCH FROM TIMESTAMP 'NOW()') + (? * 86400))" 208 209 : "DATE_ADD(NOW(), INTERVAL ? DAY)"; 209 210 $query = <<"endSQL;";

