use query grammar to parameterize where in sql shortcut.

This commit is contained in:
Taylor Otwell
2012-01-25 15:34:19 -06:00
parent af170af12d
commit ae56f68c87

View File

@@ -250,7 +250,7 @@ class Connection {
// parameters based on the elements in the binding.
if (is_array($bindings[$i]))
{
$parameters = implode(', ', array_fill(0, count($bindings[$i]), '?'));
$parameters = $this->grammar()->parameterize($bindings[$i]);
$sql = preg_replace('~\(\.\.\.\)~', "({$parameters})", $sql, 1);
}