Skip to content

Commit 57634d0

Browse files
committed
Fix ? bind with := bind
1 parent fa225ab commit 57634d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Database/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ protected function compileBinds()
368368
{
369369
$sql = $this->finalQueryString;
370370

371-
$hasNamedBinds = strpos($sql, ':') !== false;
371+
$hasNamedBinds = strpos($sql, ':') !== false && strpos($sql, ':=') === false;
372372

373373
if (empty($this->binds) || empty($this->bindMarker) ||
374374
(strpos($sql, $this->bindMarker) === false &&

0 commit comments

Comments
 (0)