yiisoft / db

Yii Database Library
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
134 stars 35 forks source link

Fix `float` type in `AbstractCommand::getRawSql()` #827

Closed Tigrov closed 6 months ago

Tigrov commented 6 months ago

What steps will reproduce the problem?

(new Command('SELECT * FROM `customer` WHERE `col_float` < :val', ['val' => 3.5]))->getRawSql();

What is the expected result?

SELECT * FROM `customer` WHERE `col_float` < 3.5

What do you get instead?

SELECT * FROM `customer` WHERE `col_float` < '3.5'

Additional info

Q A
Version 1,3.0
PHP version 8.x