Skip to content

Instantly share code, notes, and snippets.

@doctrinebot
Created December 13, 2015 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doctrinebot/f1983f2c959e54dbe31d to your computer and use it in GitHub Desktop.
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 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 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