Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.2(EOL), 10.3(EOL)
Description
DROP TABLE IF EXISTS t1,t2; |
CREATE TABLE t1 (a INT CHECK(a=1)); |
CREATE TABLE t2 (a INT CHECK(a=2)) AS SELECT * FROM t1; |
SHOW CREATE TABLE t2; |
+-------+-------------------------------------------------------------------------------------------------------+
|
| Table | Create Table |
|
+-------+-------------------------------------------------------------------------------------------------------+
|
| t2 | CREATE TABLE `t2` (
|
`a` int(11) DEFAULT NULL CHECK (`a` = 1)
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
|
+-------+-------------------------------------------------------------------------------------------------------+
|
The expected CHECK clause for t2.a should be a=2 rather a=1.
Attachments
Issue Links
- relates to
-
MDEV-12828 CREATE TABLE t1 (<defs>) SELECT... does not preserve new SRID
- Open
-
MDEV-12829 CREATE TABLE t1 (<defs>) SELECT... does not preserve new COMMENT
- Open
-
MDEV-12830 CREATE TABLE t1 (<defs>) SELECT... does not preserve new geometry type
- Open