From 3b7a7dc293bd28aab9e0940942b22d48ba6fdbbe Mon Sep 17 00:00:00 2001 From: BMTmohammedtaha Date: Sat, 11 Nov 2023 21:53:53 +0100 Subject: [PATCH] fix buildString for bindParam (values start with ':'), strpos($value, ':') === 0 --- src/Build/ValueBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Build/ValueBuilder.php b/src/Build/ValueBuilder.php index d2955a8..0f8c1a1 100644 --- a/src/Build/ValueBuilder.php +++ b/src/Build/ValueBuilder.php @@ -280,7 +280,7 @@ public function convertBinaryToHex($binaryValue): string public function buildString($value) { - if (strpos($value, ':')) { + if (strpos($value, ':') === 0) { return $value; } if ($value === '?') {