Details
Description
This script:
SET sql_mode='STRICT_ALL_TABLES';
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (a DECIMAL);
INSERT INTO t1 VALUES(CAST('' AS DECIMAL));
returns an error:
ERROR 1292 (22007): Truncated incorrect DECIMAL value: ''
This looks wrong.
I wrote an explicit CAST, so I expect:
- CAST to return 0 with a warning
- INSERT to write 0 into the table normally, as I'm actually inserting the CAST result, which is 0.
Gliffy Diagrams
Attachments
Issue Links
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions