Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix logic as to when to check for =

  • Loading branch information...
commit 8bc32cfef5e7cecb422cac882f98fd57c18f99f1 1 parent 0bc9bbb
@roverwolf authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Doctrine/DBAL/SQLParserUtils.php
View
2  lib/Doctrine/DBAL/SQLParserUtils.php
@@ -54,7 +54,7 @@ static public function getPlaceholderPositions($statement, $isPositional = true)
$stmtLen = strlen($statement);
$paramMap = array();
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
if ($isPositional) {
$paramMap[$count] = $i;
Please sign in to comment.
Something went wrong with that request. Please try again.