Commit 4350e5b8 authored by Maik Gosenshuis's avatar Maik Gosenshuis Committed by Benjamin Eberlei

SQLParserUtils triggered an error when feeding it Type instances instead of PDO param type ints.

parent 7a70a4d9
...@@ -90,7 +90,7 @@ class SQLParserUtils ...@@ -90,7 +90,7 @@ class SQLParserUtils
$bindIndex = -1; $bindIndex = -1;
foreach ($types AS $name => $type) { foreach ($types AS $name => $type) {
++$bindIndex; ++$bindIndex;
if ($type === Connection::PARAM_INT_ARRAY || $type == Connection::PARAM_STR_ARRAY) { if (is_int($type) && ($type === Connection::PARAM_INT_ARRAY || $type == Connection::PARAM_STR_ARRAY)) {
if ($isPositional) { if ($isPositional) {
$name = $bindIndex; $name = $bindIndex;
} }
......
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