[freeside-commits] freeside/FS/FS/part_event/Condition every.pm, 1.1, 1.2
Ivan,,,
ivan at wavetail.420.am
Wed Feb 3 20:48:50 PST 2010
Update of /home/cvs/cvsroot/freeside/FS/FS/part_event/Condition
In directory wavetail.420.am:/tmp/cvs-serv21778
Modified Files:
every.pm
Log Message:
fix SQL error with date field when using this condition, RT#7218
Index: every.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_event/Condition/every.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- every.pm 1 Aug 2007 22:24:39 -0000 1.1
+++ every.pm 4 Feb 2010 04:48:48 -0000 1.2
@@ -50,7 +50,7 @@
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";
More information about the freeside-commits
mailing list