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

do not treat mysql assignment operator as a paramter

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