diff --git a/src/ORM/DB.php b/src/ORM/DB.php index 88823839ddd..be524eb22ca 100644 --- a/src/ORM/DB.php +++ b/src/ORM/DB.php @@ -442,7 +442,7 @@ public static function inline_parameters($sql, $parameters) */ public static function replace_parameter($sql, $paramIdx, $replacement, $skipEscaping = false) { - $segments = preg_split('/\?/', $sql); + $segments = explode('?', $sql); $joined = ''; $inString = false; $numSegments = count($segments);