Commit ae56f68c by Taylor Otwell

use query grammar to parameterize where in sql shortcut.

parent af170af1
...@@ -250,7 +250,7 @@ class Connection { ...@@ -250,7 +250,7 @@ class Connection {
// parameters based on the elements in the binding. // parameters based on the elements in the binding.
if (is_array($bindings[$i])) 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); $sql = preg_replace('~\(\.\.\.\)~', "({$parameters})", $sql, 1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment