Skip to content

Commit

Permalink
Fix quoting of pattern in AbstractQueryPlatform
Browse files Browse the repository at this point in the history
This fix is required for the ORM processor, therefor no tests were updated.
  • Loading branch information
sstok committed Jan 10, 2017
1 parent fedc3cd commit 379f16e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QueryPlatform/AbstractQueryPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ public function getPatternMatcher(PatternMatch $patternMatch, $column)
];

$value = addcslashes($patternMatch->getValue(), $this->getLikeEscapeChars());
$value = $this->connection->quote(sprintf($patternMap[$patternMatch->getType()], $value));
$escape = $this->connection->quote('\\');
$value = $this->quoteValue(sprintf($patternMap[$patternMatch->getType()], $value), Type::getType('text'));
$escape = $this->quoteValue('\\', Type::getType('text'));

if ($patternMatch->isCaseInsensitive()) {
$column = "LOWER($column)";
Expand Down

0 comments on commit 379f16e

Please sign in to comment.