Commit d1843938 authored by David Ward's avatar David Ward Committed by Benjamin Eberlei

fix logic as to when to check for =

parent e489d28f
...@@ -54,7 +54,7 @@ class SQLParserUtils ...@@ -54,7 +54,7 @@ class SQLParserUtils
$stmtLen = strlen($statement); $stmtLen = strlen($statement);
$paramMap = array(); $paramMap = array();
for ($i = 0; $i < $stmtLen; $i++) { for ($i = 0; $i < $stmtLen; $i++) {
if ($statement[$i] == $match && !$inLiteral && (!$isPositional && $statement[$i+1] != '=')) { if ($statement[$i] == $match && !$inLiteral && ($isPositional || $statement[$i+1] != '=')) {
// real positional parameter detected // real positional parameter detected
if ($isPositional) { if ($isPositional) {
$paramMap[$count] = $i; $paramMap[$count] = $i;
......
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