-
-
Save doctrinebot/f1983f2c959e54dbe31d to your computer and use it in GitHub Desktop.
Attachments to Doctrine Jira Issue DDC-1721 - https://github.com/doctrine/doctrine2/issues/2371
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This patch file was generated by NetBeans IDE | |
# Following Index: paths are relative to: C:\Workspaces\MedAdvisor\vendor\doctrine\lib\Doctrine\ORM\Query | |
# This patch can be applied using context Tools: Patch action on respective folder. | |
# It uses platform neutral UTF-8 encoding and \n newlines. | |
# Above lines and this line are ignored by the patching process. | |
Index: SqlWalker.php | |
--- SqlWalker.php Base (BASE) | |
+++ SqlWalker.php Locally Modified (Based On LOCAL) | |
@@ -1829,6 +1829,8 @@ | |
$dqlParamKey = $inputParam->name; | |
$this->_parserResult->addParameterMapping($dqlParamKey, $this->_sqlParamIndex++); | |
$sql .= '?'; | |
+ } elseif ($likeExpr->stringPattern instanceof AST\Node) { | |
+ $sql .= $likeExpr->stringPattern->dispatch($this); | |
} else { | |
$sql .= $this->_conn->quote($likeExpr->stringPattern); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This patch file was generated by NetBeans IDE | |
# Following Index: paths are relative to: C:\Workspaces\MedAdvisor\vendor\doctrine\lib\Doctrine\ORM\Query | |
# This patch can be applied using context Tools: Patch action on respective folder. | |
# It uses platform neutral UTF-8 encoding and \n newlines. | |
# Above lines and this line are ignored by the patching process. | |
Index: Parser.php | |
--- Parser.php Base (BASE) | |
+++ Parser.php Locally Modified (Based On LOCAL) | |
@@ -2634,8 +2634,7 @@ | |
$this->match(Lexer::T_INPUT_PARAMETER); | |
$stringPattern = new AST\InputParameter($this->_lexer->token['value']); | |
} else { | |
- $this->match(Lexer::T_STRING); | |
- $stringPattern = $this->_lexer->token['value']; | |
+ $stringPattern = $this->StringExpression(); | |
} | |
$escapeChar = null; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment