Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL)
-
None
Description
SET sql_mode=''; |
CREATE OR REPLACE TABLE t1 (a INET6, b INT UNSIGNED); |
INSERT INTO t1 VALUES (NULL, 0x61); |
UPDATE t1 SET a=b; |
SHOW WARNINGS;
|
SELECT * FROM t1; |
+---------+------+-----------------------------------------------------------------+
|
| Level | Code | Message |
|
+---------+------+-----------------------------------------------------------------+
|
| Warning | 1292 | Incorrect inet6 value: '97' for column `test`.`t1`.`a` at row 1 |
|
+---------+------+-----------------------------------------------------------------+
|
+------+------+
|
| a | b |
|
+------+------+
|
| :: | 97 |
|
+------+------+
|
SET sql_mode=''; |
CREATE OR REPLACE TABLE t1 (a INT UNSIGNED); |
INSERT INTO t1 VALUES (0x61); |
ALTER TABLE t1 MODIFY a INET6; |
SHOW WARNINGS;
|
SELECT * FROM t1; |
+---------+------+-----------------------------------------------------------------+
|
| Level | Code | Message |
|
+---------+------+-----------------------------------------------------------------+
|
| Warning | 1292 | Incorrect inet6 value: '97' for column `test`.`t1`.`a` at row 1 |
|
+---------+------+-----------------------------------------------------------------+
|
+------+
|
| a |
|
+------+
|
| NULL |
|
+------+
|
Attachments
Issue Links
- causes
-
MDEV-29159 Patch for MDEV-28918 introduces more inconsistency than it solves, breaks usability
- Closed
- relates to
-
MDEV-28963 Incompatible data type assignment through SP vars is not consistent with columns
- Closed