This commit is contained in:
2025-07-14 11:04:30 +08:00
parent 190c272ea3
commit e190c42dd0
+1 -1
View File
@@ -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;