Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Minor
-
Resolution: Unresolved
-
5.3.12, 5.5.35, 10.6, 10.11, 11.4, 10.5(EOL)
-
None
-
None
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.
Attachments
Issue Links
- is duplicated by
-
MDEV-34793 Incorrect results when using GREATEST function with MEDIUMTEXT and MEDIUMBLOB data types
-
- Closed
-