Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL)
-
None
Description
DROP TABLE IF EXISTS t1;
|
CREATE TABLE t1 (a YEAR);
|
INSERT INTO t1 VALUES (-0.1);
|
SHOW WARNINGS;
|
correctly reports warnings:
+---------+------+--------------------------------------------+
|
| Level | Code | Message |
|
+---------+------+--------------------------------------------+
|
| Warning | 1264 | Out of range value for column 'a' at row 1 |
|
+---------+------+--------------------------------------------+
|
So does copying:
DROP TABLE IF EXISTS t1,t2;
|
CREATE TABLE t1 (a YEAR);
|
CREATE TABLE t2 (a DECIMAL(10,1));
|
INSERT INTO t2 VALUES (-0.1);
|
INSERT INTO t1 SELECT * FROM t2;
|
SHOW WARNINGS;
|
While ALTER does not return any warnings:
DROP TABLE IF EXISTS t1;
|
CREATE TABLE t1 (a DECIMAL(10,1));
|
INSERT INTO t1 VALUES (-0.1);
|
ALTER TABLE t1 MODIFY a YEAR;
|
SHOW WARNINGS;
|
Attachments
Issue Links
- blocks
-
MDEV-4912 Data type plugin API version 1
- Closed