diff --git a/src/QueryBuilder/Visitor/Parameters/StringReplacingStrategy.php b/src/QueryBuilder/Visitor/Parameters/StringReplacingStrategy.php index 5772a01..539d506 100644 --- a/src/QueryBuilder/Visitor/Parameters/StringReplacingStrategy.php +++ b/src/QueryBuilder/Visitor/Parameters/StringReplacingStrategy.php @@ -11,6 +11,6 @@ public function isApplicable(Type $type): bool public function replace($value): string { - return sprintf('\'%s\'', $value); + return sprintf('\'%s\'', preg_quote($value, '\'')); } }