mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / suite / engines / funcs / t / ai_init_insert.test
blobd70ab2dc8f8f0d6caf5d643318bc192e7ac81f19
1 --disable_warnings
2 DROP TABLE IF EXISTS t1;
3 --enable_warnings
4 create table t1 (c1 VARCHAR(10) NOT NULL COMMENT 'Abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd', c2 INTEGER COMMENT 'aBcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd',c3 INTEGER COMMENT '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789', c4 INTEGER, c5 INTEGER, c6 INTEGER, c7 INTEGER, c8 VARCHAR(100), c9 CHAR(50), c10 DATETIME, c11 DATETIME, c12 DATETIME,c13 DATETIME, INDEX i1 (c1), INDEX i2(c2) 
5 ) COMMENT='ABCDEFGHIJabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd';
8 --sorted_result
9 SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
12 --sorted_result
13 SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
16 --sorted_result
17 SELECT comment FROM information_schema.statistics WHERE table_name='t1';
18 let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
19 --replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
20 SHOW CREATE TABLE t1;
23 --sorted_result
24 SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
27 --sorted_result
28 SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
31 --sorted_result
32 SELECT comment FROM information_schema.statistics WHERE table_name='t1';
33 let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
34 --replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
35 SHOW CREATE TABLE t1;
38 --sorted_result
39 SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
42 --sorted_result
43 SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
46 --sorted_result
47 SELECT comment FROM information_schema.statistics WHERE table_name='t1';
48 let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
49 --replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
50 SHOW CREATE TABLE t1;
52 DROP INDEX i1 ON t1;
53 ALTER TABLE t1 DROP INDEX i2;
56 --sorted_result
57 SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
60 --sorted_result
61 SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
64 --sorted_result
65 SELECT comment FROM information_schema.statistics WHERE table_name='t1';
66 let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
67 --replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
68 SHOW CREATE TABLE t1;
70 --sorted_result
71 SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
74 --sorted_result
75 SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
78 --sorted_result
79 SELECT comment FROM information_schema.statistics WHERE table_name='t1';
80 let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
81 --replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
82 SHOW CREATE TABLE t1;
85 --sorted_result
86 SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
89 --sorted_result
90 SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
93 --sorted_result
94 SELECT comment FROM information_schema.statistics WHERE table_name='t1';
95 let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
96 --replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
97 SHOW CREATE TABLE t1;
100 --sorted_result
101 SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
104 --sorted_result
105 SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
108 --sorted_result
109 SELECT comment FROM information_schema.statistics WHERE table_name='t1';
110 let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
111 --replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
112 SHOW CREATE TABLE t1;
114 --sorted_result
115 SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
118 --sorted_result
119 SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
122 --sorted_result
123 SELECT comment FROM information_schema.statistics WHERE table_name='t1';
124 let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
125 --replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
126 SHOW CREATE TABLE t1;
131 set sql_mode='TRADITIONAL';
134 --sorted_result
135 SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
138 --sorted_result
139 SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
142 --sorted_result
143 SELECT comment FROM information_schema.statistics WHERE table_name='t1';
144 let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
145 --replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
146 SHOW CREATE TABLE t1;
149 set sql_mode='TRADITIONAL';
151 --sorted_result
152 SELECT table_comment,char_length(table_comment) FROM information_schema.tables WHERE table_name='t1';
155 --sorted_result
156 SELECT column_comment,char_length(column_comment) FROM information_schema.columns WHERE table_name='t1';
159 --sorted_result
160 SELECT comment FROM information_schema.statistics WHERE table_name='t1';
161 let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
162 --replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
163 SHOW CREATE TABLE t1;
164 DROP TABLE t1;