Commit 7c23277f 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 0b0736fc
......@@ -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