Commit 9ede434d authored by Maik Gosenshuis's avatar Maik Gosenshuis

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

parent c8835edf
......@@ -90,7 +90,7 @@ class SQLParserUtils
$bindIndex = -1;
foreach ($types AS $name => $type) {
++$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) {
$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