From c61f2c8f71e26e4da9d3ac95e0c06246eb0be985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 30 Oct 2020 02:03:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/Condition/Condition.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/Condition/Condition.php b/Database/Condition/Condition.php index 8f7fb4e7..863685bb 100644 --- a/Database/Condition/Condition.php +++ b/Database/Condition/Condition.php @@ -72,7 +72,7 @@ abstract class Condition extends BaseObject return ''; } - $value = Str::encode($value); + $value = Str::encode((string)$value); if (trim($oprea) == 'like') { return $column . ' ' . $oprea . ' \'%' . $value . '%\''; }