Permalink
Browse files

Merge pull request #77 from fbracchi-createnet/master

fix query with multiple parameters with postgresql
  • Loading branch information...
joeferner committed Jun 17, 2013
2 parents 38fdcfe + 9765ac7 commit 95912f12418af3b315a717c3ef80158c50f85f73
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/driver.js
View
@@ -254,7 +254,7 @@ var Driver = Class.extend({
var item = sqlTree.where[i];
var expr = item.expr;
expr = this.propertyNamesToColumnNames(sqlTree, item.expr, aliasTables);
- expr = expr.replace(/\?/, getValuesSubstitutionStringFunc);
+ expr = expr.replace(/\?/g, getValuesSubstitutionStringFunc);
expressions.push(expr);
values = values.concat(item.params);
}

0 comments on commit 95912f1

Please sign in to comment.