projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
958c175
)
fix SQL error with date field when using this condition, RT#7218
author
ivan
<ivan>
Thu, 4 Feb 2010 04:48:48 +0000
(
04:48
+0000)
committer
ivan
<ivan>
Thu, 4 Feb 2010 04:48:48 +0000
(
04:48
+0000)
FS/FS/part_event/Condition/every.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_event/Condition/every.pm
b/FS/FS/part_event/Condition/every.pm
index
3408b0a
..
1910674
100644
(file)
--- a/
FS/FS/part_event/Condition/every.pm
+++ b/
FS/FS/part_event/Condition/every.pm
@@
-50,7
+50,7
@@
sub condition {
or die "unparsable retry_delay: $retry_delay";
my $date_after = $time - $1 * $after{$2};
- my $sth = dbh->prepare("$sql AND date > ?") # AND status = 'failed' "
+ my $sth = dbh->prepare("$sql AND
_
date > ?") # AND status = 'failed' "
or die dbh->errstr. " preparing: $sql";
$sth->execute($self->eventpart, $tablenum, $date_after)
or die $sth->errstr. " executing: $sql";