Commit 087f50a5 authored by Taylor Otwell's avatar Taylor Otwell

cast bindings to array.

parent 1351a2b1
...@@ -196,6 +196,8 @@ class Connection { ...@@ -196,6 +196,8 @@ class Connection {
*/ */
protected function execute($sql, $bindings = array()) protected function execute($sql, $bindings = array())
{ {
$bindings = (array) $bindings;
// Since expressions are injected into the query as strings, we need to // Since expressions are injected into the query as strings, we need to
// remove them from the array of bindings. After we have removed them, // remove them from the array of bindings. After we have removed them,
// we'll reset the array so there aren't gaps in the keys. // we'll reset the array so there aren't gaps in the keys.
......
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