This commit is contained in:
2025-07-09 10:34:46 +08:00
parent d5c9b3bc86
commit 7c347bc373
+6
View File
@@ -1058,6 +1058,12 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
*/
private function sprintf(string $column, mixed $value, string $opera = '='): string
{
if (is_string($value)) {
[$alias, $field] = explode('.', $value);
if (in_array($alias, $this->_alias)) {
return $column . ' ' . $opera . ' ' . $value;
}
}
$this->pushParam($value);
return $column . ' ' . $opera . ' ?';
}