Permalink
Browse files

fix logic as to when to check for =

  • Loading branch information...
1 parent 0bc9bbb commit 8bc32cfef5e7cecb422cac882f98fd57c18f99f1 @roverwolf committed Dec 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 8bc32cf

Please sign in to comment.