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)";