From 379f16ee67a833f6ae3be3ebdcea1bfd9b0d672d Mon Sep 17 00:00:00 2001 From: Sebastiaan Stok Date: Tue, 10 Jan 2017 15:36:20 +0100 Subject: [PATCH] Fix quoting of pattern in AbstractQueryPlatform This fix is required for the ORM processor, therefor no tests were updated. --- src/QueryPlatform/AbstractQueryPlatform.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/QueryPlatform/AbstractQueryPlatform.php b/src/QueryPlatform/AbstractQueryPlatform.php index 01b640b..d925e9f 100644 --- a/src/QueryPlatform/AbstractQueryPlatform.php +++ b/src/QueryPlatform/AbstractQueryPlatform.php @@ -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)";