Closed gam6itko closed 10 months ago
The bindParam and bindValue methods of the PDO class, when given a float value, cast it to a string. In our code, we pass exactly the float value to this method, not the string: https://github.com/cycle/database/blob/2.x/src/Driver/Driver.php#L528
In PDO there is no constant with type float, numeric. There is only an int: https://www.php.net/manual/en/class.pdo.php I don't think we can do anything with it. If you need exactly a numeric value, I think you can use Fragment.
No duplicates 🥲.
Database
MySQL
What happened?
This code passes the parameter as a string
In mysql server logs I see the following log
Correct work was achieved by such a design.
In this case, everything is as it should be in the mysql logs
Version