diff --git a/system/Database/Query.php b/system/Database/Query.php index e548dfc189d1..e24a9ad77e3c 100644 --- a/system/Database/Query.php +++ b/system/Database/Query.php @@ -315,13 +315,13 @@ public function getOriginalQuery(): string * * @return void * - * @see https://regex101.com/r/EUEhay/1 Test + * @see https://regex101.com/r/qvzPaZ/1 */ protected function compileBinds() { $sql = $this->finalQueryString; - $hasNamedBinds = preg_match('/:[a-z\d.)_(]+:/i', $sql) === 1; + $hasNamedBinds = preg_match('/:((?!=).+):/', $sql) === 1; if (empty($this->binds) || empty($this->bindMarker)