Details
Description
mysql> SELECT LEAST('11','2'), CAST(LEAST('11','2') AS DECIMAL);
+-----------------+----------------------------------+
| LEAST('11','2') | CAST(LEAST('11','2') AS DECIMAL) |
+-----------------+----------------------------------+
| 11 | 2 |
+-----------------+----------------------------------+
1 row in set (0.01 sec)
The result for CAST(LEAST()) is wrong.
The expected result is 11, similar to what LEAST('11,'2') returns.
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions