[Rt-commit] r17043 - rt/3.8/trunk/sbin
ruz at bestpractical.com
ruz at bestpractical.com
Thu Nov 27 20:05:20 EST 2008
Author: ruz
Date: Thu Nov 27 20:05:20 2008
New Revision: 17043
Modified:
rt/3.8/trunk/sbin/rt-validator.in
Log:
* fix update with multiple 'where' conditions in rt-validator
Modified: rt/3.8/trunk/sbin/rt-validator.in
==============================================================================
--- rt/3.8/trunk/sbin/rt-validator.in (original)
+++ rt/3.8/trunk/sbin/rt-validator.in Thu Nov 27 20:05:20 2008
@@ -1046,7 +1046,7 @@
print "Updating record(s) in $table\n" if $opt{'verbose'};
my $query = "UPDATE $table SET ". join(', ', map "$_ = ?", @what_cols)
- ." WHERE ". join(', ', map "$_ = ?", @where_cols);
+ ." WHERE ". join(' AND ', map "$_ = ?", @where_cols);
$redo_check{ $_ } = 1 foreach @{ $redo_on{'Update'}{ $table } || [] };
return execute_query( $query, @what_binds, @where_binds );
}
More information about the Rt-commit
mailing list