@@ -127,15 +127,16 @@ drop table t1;
127127SET @OLD_SQL_MODE=@@SQL_MODE;
128128SET SQL_MODE='IGNORE_BAD_TABLE_OPTIONS';
129129#illegal value fixed
130- CREATE TABLE t1 (a int) ENGINE=example ULL=10000000000000000000 one_or_two='ttt' YESNO=SSS;
130+ CREATE TABLE t1 (a int, b int ) ENGINE=example ULL=10000000000000000000 one_or_two='ttt' YESNO=SSS;
131131Warnings:
132132Warning 1912 Incorrect value '10000000000000000000' for option 'ULL'
133133Warning 1912 Incorrect value 'ttt' for option 'one_or_two'
134134Warning 1912 Incorrect value 'SSS' for option 'YESNO'
135135show create table t1;
136136Table Create Table
137137t1 CREATE TABLE `t1` (
138- `a` int(11) DEFAULT NULL
138+ `a` int(11) DEFAULT NULL,
139+ `b` int(11) DEFAULT NULL
139140) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `ULL`=10000000000000000000 `one_or_two`='ttt' `YESNO`=SSS `VAROPT`='5'
140141#alter table
141142alter table t1 ULL=10000000;
@@ -144,23 +145,24 @@ Note 1105 EXAMPLE DEBUG: ULL 4294967290 -> 10000000
144145show create table t1;
145146Table Create Table
146147t1 CREATE TABLE `t1` (
147- `a` int(11) DEFAULT NULL
148+ `a` int(11) DEFAULT NULL,
149+ `b` int(11) DEFAULT NULL
148150) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `one_or_two`='ttt' `YESNO`=SSS `VAROPT`='5' `ULL`=10000000
149151alter table t1 change a a int complex='c,c,c';
150152Warnings:
151153Note 1105 EXAMPLE DEBUG: Field `a` COMPLEX '(null)' -> 'c,c,c'
152154show create table t1;
153155Table Create Table
154156t1 CREATE TABLE `t1` (
155- `a` int(11) DEFAULT NULL `complex`='c,c,c'
157+ `a` int(11) DEFAULT NULL `complex`='c,c,c',
158+ `b` int(11) DEFAULT NULL
156159) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `one_or_two`='ttt' `YESNO`=SSS `VAROPT`='5' `ULL`=10000000
157160alter table t1 one_or_two=two;
158- Warnings:
159- Note 1105 EXAMPLE DEBUG: Field `a` COMPLEX 'c,c,c' -> 'c,c,c'
160161show create table t1;
161162Table Create Table
162163t1 CREATE TABLE `t1` (
163- `a` int(11) DEFAULT NULL `complex`='c,c,c'
164+ `a` int(11) DEFAULT NULL `complex`='c,c,c',
165+ `b` int(11) DEFAULT NULL
164166) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `YESNO`=SSS `VAROPT`='5' `ULL`=10000000 `one_or_two`=two
165167drop table t1;
166168#illegal value error
@@ -204,8 +206,6 @@ t1 CREATE TABLE `t1` (
204206 `a` int(11) DEFAULT NULL
205207) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `varopt`=15
206208alter table t1 varopt=default;
207- Warnings:
208- Note 1105 EXAMPLE DEBUG: Field `a` COMPLEX '(null)' -> '(null)'
209209show create table t1;
210210Table Create Table
211211t1 CREATE TABLE `t1` (
0 commit comments