mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 05:48:11 +08:00
Fixes #15122: Fixed yii\db\Command::getRawSql() to properly replace expressions
This commit is contained in:
committed by
Alexander Makarov
parent
acce1db53b
commit
d32b80eec9
@ -211,7 +211,7 @@ class Command extends Component
|
||||
$params[$name] = ($value ? 'TRUE' : 'FALSE');
|
||||
} elseif ($value === null) {
|
||||
$params[$name] = 'NULL';
|
||||
} elseif (!is_object($value) && !is_resource($value)) {
|
||||
} elseif ((!is_object($value) && !is_resource($value)) || $value instanceof Expression) {
|
||||
$params[$name] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user