This commit is contained in:
2026-01-01 21:46:00 +08:00
parent cbbc6ea7f1
commit 758c322679
+5 -1
View File
@@ -1068,7 +1068,11 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
private function sprintf(string $column, mixed $value, string $opera = '='): string
{
if (!is_numeric($value)) {
[$alias, $field] = explode('.', $value);
if (str_contains($column, '.')) {
[$alias, $field] = explode('.', $value);
} else {
$alias = '';
}
if (in_array($alias, $this->_alias)) {
return $column . ' ' . $opera . ' ' . $value;
}