Subtle bug fixed in smartPrepareAndExecute.

This commit is contained in:
Rudi Grinberg 2012-09-13 10:34:15 -04:00
parent 24b3fb7e8a
commit 8eda4a7035
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class Application_Common_Database
$new_params[$k] = $new_params[$v];
} else {
foreach ( range(1,$matches_count) as $i ) {
preg_replace( "/$k(\D)/", "$k.$i${1}", $sql, 1);
preg_replace( "/$k(\D)/", "$k$i${1}", $sql, 1);
$new_params[ $k.$i ] = $v;
}
}