diff --git a/src/Util/DatabaseUtil/CreateWhereForSerializedBlobResult.php b/src/Util/DatabaseUtil/CreateWhereForSerializedBlobResult.php index bd08a017..9f2b3f85 100644 --- a/src/Util/DatabaseUtil/CreateWhereForSerializedBlobResult.php +++ b/src/Util/DatabaseUtil/CreateWhereForSerializedBlobResult.php @@ -15,7 +15,7 @@ public function __construct( */ public function createInlineAndWhere(): string { - return '('.$this->field.' REGEXP ('.implode(") AND ".$this->field.' REGEXP (', $this->getValueList()).'))'; + return '('.$this->field.' REGEXP (\''.implode("'\) OR ".$this->field.' REGEXP (\'', $this->getValueList()).'\'))'; } /** @@ -23,7 +23,7 @@ public function createInlineAndWhere(): string */ public function createInlineOrWhere(): string { - return '('.$this->field.' REGEXP ('.implode(") OR ".$this->field.' REGEXP (', $this->getValueList()).'))'; + return '('.$this->field.' REGEXP (\''.implode("\') OR ".$this->field.' REGEXP (\'', $this->getValueList()).'\'))'; } /**