From e190c42dd052d475ee133a10881bf28958c2b413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 14 Jul 2025 11:04:30 +0800 Subject: [PATCH] eee --- Traits/QueryTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Traits/QueryTrait.php b/Traits/QueryTrait.php index c941570..d6a9ee6 100644 --- a/Traits/QueryTrait.php +++ b/Traits/QueryTrait.php @@ -1058,7 +1058,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq */ private function sprintf(string $column, mixed $value, string $opera = '='): string { - if (is_string($value)) { + if (!is_numeric($value)) { [$alias, $field] = explode('.', $value); if (in_array($alias, $this->_alias)) { return $column . ' ' . $opera . ' ' . $value;