2
drop table if exists tb2 ;
4
f59 numeric (0) unsigned,
5
f60 numeric (64) unsigned,
6
f61 numeric (0) zerofill,
7
f62 numeric (64) zerofill,
8
f63 numeric (0) unsigned zerofill,
9
f64 numeric (64) unsigned zerofill,
12
f67 numeric (0,0) unsigned,
13
f68 numeric (63,30) unsigned,
14
f69 numeric (0,0) zerofill,
15
f70 numeric (63,30) zerofill,
16
f71 numeric (0,0) unsigned zerofill,
17
f72 numeric (63,30) unsigned zerofill,
21
f76 real unsigned zerofill,
22
f77 double default 7.7,
23
f78 double unsigned default 7.7,
24
f79 double zerofill default 7.7,
25
f80 double unsigned zerofill default 8.8,
26
f81 float not null default 8.8,
27
f82 float unsigned not null default 8.8,
28
f83 float zerofill not null default 8.8,
29
f84 float unsigned zerofill not null default 8.8,
30
f85 float(0) not null default 8.8,
31
f86 float(23) not null default 8.8,
32
f87 float(0) unsigned not null default 8.8,
33
f88 float(23) unsigned not null default 8.8,
34
f89 float(0) zerofill not null default 8.8,
35
f90 float(23) zerofill not null default 8.8,
36
f91 float(0) unsigned zerofill not null default 8.8,
37
f92 float(23) unsigned zerofill not null default 8.8,
38
f93 float(24) not null default 8.8,
39
f94 float(53) not null default 8.8,
40
f95 float(24) unsigned not null default 8.8,
41
f96 float(53) unsigned not null default 8.8,
42
f97 float(24) zerofill not null default 8.8,
43
f98 float(53) zerofill not null default 8.8,
44
f99 float(24) unsigned zerofill not null default 8.8,
45
f100 float(53) unsigned zerofill not null default 8.8,
46
f101 date not null default '2000-01-01',
47
f102 time not null default 20,
48
f103 datetime not null default '2/2/2',
49
f104 timestamp not null default 20001231235959,
50
f105 year not null default 2000,
51
f106 year(3) not null default 2000,
52
f107 year(4) not null default 2000,
53
f108 enum("1enum","2enum") not null default "1enum",
54
f109 set("1set","2set") not null default "1set",
55
f110 VARBINARY(64) null,
56
f111 VARBINARY(27) null ,
57
f112 VARBINARY(64) null ,
58
f113 VARBINARY(192) null ,
60
f115 VARBINARY(27) null ,
61
f116 VARBINARY(64) null,
62
f117 VARBINARY(192) null
64
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/myisam_tb2.txt' into table tb2 ;
65
DROP DATABASE IF EXISTS test1;
66
CREATE DATABASE test1;
68
drop table if exists tb2 ;
70
f59 numeric (0) unsigned,
71
f60 numeric (64) unsigned,
72
f61 numeric (0) zerofill,
73
f62 numeric (64) zerofill,
74
f63 numeric (0) unsigned zerofill,
75
f64 numeric (64) unsigned zerofill,
78
f67 numeric (0,0) unsigned,
79
f68 numeric (63,30) unsigned,
80
f69 numeric (0,0) zerofill,
81
f70 numeric (63,30) zerofill,
82
f71 numeric (0,0) unsigned zerofill,
83
f72 numeric (63,30) unsigned zerofill,
87
f76 real unsigned zerofill,
88
f77 double default 7.7,
89
f78 double unsigned default 7.7,
90
f79 double zerofill default 7.7,
91
f80 double unsigned zerofill default 8.8,
92
f81 float not null default 8.8,
93
f82 float unsigned not null default 8.8,
94
f83 float zerofill not null default 8.8,
95
f84 float unsigned zerofill not null default 8.8,
96
f85 float(0) not null default 8.8,
97
f86 float(23) not null default 8.8,
98
f87 float(0) unsigned not null default 8.8,
99
f88 float(23) unsigned not null default 8.8,
100
f89 float(0) zerofill not null default 8.8,
101
f90 float(23) zerofill not null default 8.8,
102
f91 float(0) unsigned zerofill not null default 8.8,
103
f92 float(23) unsigned zerofill not null default 8.8,
104
f93 float(24) not null default 8.8,
105
f94 float(53) not null default 8.8,
106
f95 float(24) unsigned not null default 8.8,
107
f96 float(53) unsigned not null default 8.8,
108
f97 float(24) zerofill not null default 8.8,
109
f98 float(53) zerofill not null default 8.8,
110
f99 float(24) unsigned zerofill not null default 8.8,
111
f100 float(53) unsigned zerofill not null default 8.8,
112
f101 date not null default '2000-01-01',
113
f102 time not null default 20,
114
f103 datetime not null default '2/2/2',
115
f104 timestamp not null default 20001231235959,
116
f105 year not null default 2000,
117
f106 year(3) not null default 2000,
118
f107 year(4) not null default 2000,
119
f108 enum("1enum","2enum") not null default "1enum",
120
f109 set("1set","2set") not null default "1set",
121
f110 VARBINARY(64) null,
122
f111 VARBINARY(27) null ,
123
f112 VARBINARY(64) null ,
124
f113 VARBINARY(192) null ,
125
f114 VARBINARY(192) ,
126
f115 VARBINARY(27) null ,
127
f116 VARBINARY(64) null,
128
f117 VARBINARY(192) null
130
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/myisam_tb2.txt' into table tb2 ;
133
Attention: The nesting level @max_level in Testcase 3.3.1.A6
134
(Complicated nested VIEWs) has to be limited to 20 because of
135
MyISAM(only) performance issues Bug#11948
136
--------------------------------------------------------------------------------
139
! Attention: The file with the expected results is not
140
| thoroughly checked.
141
! The server return codes are correct, but
142
| most result sets where the table tb2 is
143
! involved are not checked.
144
--------------------------------------------------------------------------------
146
There are some statements where the ps-protocol is switched off.
147
Bug#32285: mysqltest, --ps-protocol, strange output, float/double/real with zerofill
148
--------------------------------------------------------------------------------
149
insert into test.tb2 (f59,f60) values (76710,226546);
150
insert into test.tb2 (f59,f60) values(2760,985654);
151
insert into test.tb2 (f59,f60) values(569300,9114376);
152
insert into test.tb2 (f59,f60) values(660,876546);
153
insert into test.tb2 (f59,f60) values(250,87895654);
154
insert into test.tb2 (f59,f60) values(340,9984376);
155
insert into test.tb2 (f59,f60) values(3410,996546);
156
insert into test.tb2 (f59,f60) values(2550,775654);
157
insert into test.tb2 (f59,f60) values(3330,764376);
158
insert into test.tb2 (f59,f60) values(441,16546);
159
insert into test.tb2 (f59,f60) values(24,51654);
160
insert into test.tb2 (f59,f60) values(323,14376);
161
insert into test.tb2 (f59,f60) values(34,41);
162
insert into test.tb2 (f59,f60) values(04,74);
163
insert into test.tb2 (f59,f60) values(15,87);
164
insert into test.tb2 (f59,f60) values(22,93);
165
insert into test.tb2 (f59,f60) values(394,41);
166
insert into test.tb2 (f59,f60) values(094,74);
167
insert into test.tb2 (f59,f60) values(195,87);
168
insert into test.tb2 (f59,f60) values(292,93);
169
insert into test.tb2 (f59,f60) values(0987,41) ;
170
insert into test.tb2 (f59,f60) values(7876,74) ;
171
INSERT INTO tb2 (f59,f61) VALUES(321,765 );
172
INSERT INTO tb2 (f59,f61) VALUES(9112,8771);
173
INSERT INTO tb2 (f59,f61) VALUES (500,900 ) ;
174
INSERT INTO tb2 (f59,f61) VALUES (500,900 ) ;
175
INSERT INTO tb2 (f59,f61) VALUES (500,900 ) ;
176
Insert into tb2 (f59,f60,f61) values (107,105,106) ;
177
Insert into tb2 (f59,f60,f61) values (109,108,104) ;
178
Insert into tb2 (f59,f60,f61) values (207,205,206) ;
179
Insert into tb2 (f59,f60,f61) values (209,208,204) ;
180
Insert into tb2 (f59,f60,f61) values (27,25,26) ;
181
Insert into tb2 (f59,f60,f61) values (29,28,24) ;
182
Insert into tb2 (f59,f60,f61) values (17,15,16) ;
183
Insert into tb2 (f59,f60,f61) values (19,18,14) ;
184
insert into tb2 (f59,f60,f61) values (107,105,106);
185
insert into tb2 (f59,f60,f61) values (109,108,104);
186
INSERT INTO tb2 (f59,f60) VALUES( 299,899 );
187
INSERT INTO tb2 (f59,f60) VALUES( 242,79 );
188
INSERT INTO tb2 (f59,f60) VALUES( 424,89 );
189
SELECT * FROM tb2 ORDER BY f59, f60, f61;
190
f59 f60 f61 f62 f63 f64 f65 f66 f67 f68 f69 f70 f71 f72 f73 f74 f75 f76 f77 f78 f79 f80 f81 f82 f83 f84 f85 f86 f87 f88 f89 f90 f91 f92 f93 f94 f95 f96 f97 f98 f99 f100 f101 f102 f103 f104 f105 f106 f107 f108 f109 f110 f111 f112 f113 f114 f115 f116 f117
191
1 1 0000000001 0000000000000000000000000000000000000000000000000000000000000001 0000000001 0000000000000000000000000000000000000000000000000000000000000001 -5 0.000000000000000000000000000000 1 0.000000000000000000000000000000 0000000001 000000000000000000000000000000000.000000000000000000000000000000 0000000001 000000000000000000000000000000000.000000000000000000000000000000 -1.17549435e-38 1.175494352e-38 00000001.175494352e-38 00000001.175494352e-38 -1.17549435e-38 1.175494352e-38 00000001.175494352e-38 00000001.175494352e-38 -1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.17549e-38 1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.17549435e-38 1.17549e-38 1.175494352e-38 01.17549e-38 00000001.175494352e-38 01.17549e-38 00000001.175494352e-38 1000-01-01 838:59:58 1970-01-02 00:00:01 1970-01-02 00:00:01 1902 1902 1902 2enum 2set ��@@ $@$@ ��@@ $@$@$@$@@@@@@@@@@@ $@$@$@$@@@@@@@@@@@ ��@@ $@$@$@$@@@@@@@@@@@
192
2 2 0000000002 0000000000000000000000000000000000000000000000000000000000000002 0000000002 0000000000000000000000000000000000000000000000000000000000000002 -4 1.100000000000000000000000000000 2 1.100000000000000000000000000000 0000000002 000000000000000000000000000000001.100000000000000000000000000000 0000000002 000000000000000000000000000000001.100000000000000000000000000000 -1.175494349e-38 1.175494353e-38 00000001.175494353e-38 00000001.175494353e-38 -1.175494349e-38 1.175494353e-38 00000001.175494353e-38 00000001.175494353e-38 -1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.17549e-38 1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.175494349e-38 1.17549e-38 1.175494353e-38 01.17549e-38 00000001.175494353e-38 01.17549e-38 00000001.175494353e-38 1000-01-02 838:59:57 1970-01-03 00:00:02 1970-01-03 00:00:02 1903 1903 1903 1enum 1set,2set ��@@@@ 4@4@ ��@@@@ ��4@�4@4@�4@��@@ @@ @ @@ @@@ ��4@�4@4@�4@��@@ @@ @ @@ @@@ �� ��@@@@ ��4@�4@4@�4@��@@ @@ @ @@ @@@
193
3 3 0000000003 0000000000000000000000000000000000000000000000000000000000000003 0000000003 0000000000000000000000000000000000000000000000000000000000000003 -3 2.200000000000000000000000000000 3 2.200000000000000000000000000000 0000000003 000000000000000000000000000000002.200000000000000000000000000000 0000000003 000000000000000000000000000000002.200000000000000000000000000000 -1.175494348e-38 1.175494354e-38 00000001.175494354e-38 00000001.175494354e-38 -1.175494348e-38 1.175494354e-38 00000001.175494354e-38 00000001.175494354e-38 -1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.17549e-38 1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.175494348e-38 1.17549e-38 1.175494354e-38 01.17549e-38 00000001.175494354e-38 01.17549e-38 00000001.175494354e-38 1000-01-03 838:59:56 1970-01-04 00:00:03 1970-01-04 00:00:03 1904 1904 1904 2enum 1set @@@@@@ >@>@ @@@@@@ @@4@@>@>@@>@@@@@"@@"@"@@"@@@ @@4@@>@>@@>@@@@@"@@"@"@@"@@@ @@ @@@@@@ @@4@@>@>@@>@@@@@"@@"@"@@"@@@
194
4 4 0000000004 0000000000000000000000000000000000000000000000000000000000000004 0000000004 0000000000000000000000000000000000000000000000000000000000000004 -2 3.300000000000000000000000000000 4 3.300000000000000000000000000000 0000000004 000000000000000000000000000000003.300000000000000000000000000000 0000000004 000000000000000000000000000000003.300000000000000000000000000000 -1.175494347e-38 1.175494355e-38 00000001.175494355e-38 00000001.175494355e-38 -1.175494347e-38 1.175494355e-38 00000001.175494355e-38 00000001.175494355e-38 -1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.17549e-38 1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.175494347e-38 1.17549e-38 1.175494355e-38 01.17549e-38 00000001.175494355e-38 01.17549e-38 00000001.175494355e-38 1000-01-04 838:59:55 1970-01-05 00:00:04 1970-01-05 00:00:04 1905 1905 1905 1enum 2set @@@@@@ D@D@ @@@@@@ @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@ @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@ @*@ @@@@@@ NULL
195
4 74 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
196
5 5 0000000005 0000000000000000000000000000000000000000000000000000000000000005 0000000005 0000000000000000000000000000000000000000000000000000000000000005 -1 4.400000000000000000000000000000 5 4.400000000000000000000000000000 0000000005 000000000000000000000000000000004.400000000000000000000000000000 0000000005 000000000000000000000000000000004.400000000000000000000000000000 -1.175494346e-38 1.175494356e-38 00000001.175494356e-38 00000001.175494356e-38 -1.175494346e-38 1.175494356e-38 00000001.175494356e-38 00000001.175494356e-38 -1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.17549e-38 1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.175494346e-38 1.17549e-38 1.175494356e-38 01.17549e-38 00000001.175494356e-38 01.17549e-38 00000001.175494356e-38 1000-01-05 838:59:54 1970-01-06 00:00:05 1970-01-06 00:00:05 1906 1906 1906 2enum 1set,2set @@@@@@ I@I@ @@@@@@ @@N@@N@N@@N@@@$@$@(@$@(@(@$@(@$@$@ @@N@@N@N@@N@@@$@$@(@$@(@(@$@(@$@$@ @@ @@@@@@ @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
197
6 6 0000000006 0000000000000000000000000000000000000000000000000000000000000006 0000000006 0000000000000000000000000000000000000000000000000000000000000006 0 5.500000000000000000000000000000 6 5.500000000000000000000000000000 0000000006 000000000000000000000000000000005.500000000000000000000000000000 0000000006 000000000000000000000000000000005.500000000000000000000000000000 -1.175494345e-38 1.175494357e-38 00000001.175494357e-38 00000001.175494357e-38 -1.175494345e-38 1.175494357e-38 00000001.175494357e-38 00000001.175494357e-38 -1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.17549e-38 1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.175494345e-38 1.17549e-38 1.175494357e-38 01.17549e-38 00000001.175494357e-38 01.17549e-38 00000001.175494357e-38 1000-01-06 838:59:53 1970-01-07 00:00:06 1970-01-07 00:00:06 1907 1907 1907 1enum 1set @@@@ @ @ 9@.@ @@@@ @ @ @@Q@@Q@Q@@Q@@@&@&@*@&@*@*@&@*@&@&@ @@Q@@Q@Q@@Q@@@&@&@*@&@*@*@&@*@&@&@ @@ @@@@ @ @ @@N@@N@N@@N@@@$@$@(@$@(@(@$@(@$@$@
198
7 7 0000000007 0000000000000000000000000000000000000000000000000000000000000007 0000000007 0000000000000000000000000000000000000000000000000000000000000007 1 6.600000000000000000000000000000 7 6.600000000000000000000000000000 0000000007 000000000000000000000000000000006.600000000000000000000000000000 0000000007 000000000000000000000000000000006.600000000000000000000000000000 -1.175494344e-38 1.175494358e-38 00000001.175494358e-38 00000001.175494358e-38 -1.175494344e-38 1.175494358e-38 00000001.175494358e-38 00000001.175494358e-38 -1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.17549e-38 1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.175494344e-38 1.17549e-38 1.175494358e-38 01.17549e-38 00000001.175494358e-38 01.17549e-38 00000001.175494358e-38 1000-01-07 838:59:52 1970-01-08 00:00:07 1970-01-08 00:00:07 1908 1908 1908 2enum 2set ��@@ $@$@ ��@@ $@$@$@$@@@@@@@@@@@ $@$@$@$@@@@@@@@@@@ ��@@ $@$@$@$@@@@@@@@@@@
199
8 8 0000000008 0000000000000000000000000000000000000000000000000000000000000008 0000000008 0000000000000000000000000000000000000000000000000000000000000008 2 7.700000000000000000000000000000 8 7.700000000000000000000000000000 0000000008 000000000000000000000000000000007.700000000000000000000000000000 0000000008 000000000000000000000000000000007.700000000000000000000000000000 -1.175494343e-38 1.175494359e-38 00000001.175494359e-38 00000001.175494359e-38 -1.175494343e-38 1.175494359e-38 00000001.175494359e-38 00000001.175494359e-38 -1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.17549e-38 1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.175494343e-38 1.17549e-38 1.175494359e-38 01.17549e-38 00000001.175494359e-38 01.17549e-38 00000001.175494359e-38 1000-01-08 838:59:51 1970-01-09 00:00:08 1970-01-09 00:00:08 1909 1909 1909 1enum 1set,2set ��@@@@ 4@4@ ��@@@@ ��4@�4@4@�4@��@@ @@ @ @@ @@@ ��4@�4@4@�4@��@@ @@ @ @@ @@@ �� ��@@@@ ��4@�4@4@�4@��@@ @@ @ @@ @@@
200
9 9 0000000009 0000000000000000000000000000000000000000000000000000000000000009 0000000009 0000000000000000000000000000000000000000000000000000000000000009 3 8.800000000000000000000000000000 9 8.800000000000000000000000000000 0000000009 000000000000000000000000000000008.800000000000000000000000000000 0000000009 000000000000000000000000000000008.800000000000000000000000000000 -1.175494342e-38 1.17549436e-38 000000001.17549436e-38 000000001.17549436e-38 -1.175494342e-38 1.17549436e-38 000000001.17549436e-38 000000001.17549436e-38 -1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.17549e-38 1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.175494342e-38 1.17549e-38 1.17549436e-38 01.17549e-38 000000001.17549436e-38 01.17549e-38 000000001.17549436e-38 1000-01-09 838:59:50 1970-01-10 00:00:09 1970-01-10 00:00:09 1910 1910 1910 2enum 1set @@@@@@ >@>@ @@@@@@ @@4@@>@>@@>@@@@@"@@"@"@@"@@@ @@4@@>@>@@>@@@@@"@@"@"@@"@@@ @@ @@@@@@ @@4@@>@>@@>@@@@@"@@"@"@@"@@@
201
10 10 0000000010 0000000000000000000000000000000000000000000000000000000000000010 0000000010 0000000000000000000000000000000000000000000000000000000000000010 4 9.900000000000000000000000000000 10 9.900000000000000000000000000000 0000000010 000000000000000000000000000000009.900000000000000000000000000000 0000000010 000000000000000000000000000000009.900000000000000000000000000000 -1.175494341e-38 1.175494361e-38 00000001.175494361e-38 00000001.175494361e-38 -1.175494341e-38 1.175494361e-38 00000001.175494361e-38 00000001.175494361e-38 -1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.17549e-38 1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.175494341e-38 1.17549e-38 1.175494361e-38 01.17549e-38 00000001.175494361e-38 01.17549e-38 00000001.175494361e-38 1000-01-10 838:59:49 1970-01-11 00:00:10 1970-01-11 00:00:10 1911 1911 1911 1enum 2set @@@@@@ D@D@ @@@@@@ @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@ @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@ @*@ @@@@@@ NULL
202
15 87 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
203
17 15 0000000016 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
204
19 18 0000000014 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
205
22 93 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
206
24 51654 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
207
27 25 0000000026 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
208
29 28 0000000024 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
209
34 41 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
210
94 74 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
211
107 105 0000000106 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
212
107 105 0000000106 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
213
109 108 0000000104 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
214
109 108 0000000104 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
215
195 87 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
216
207 205 0000000206 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
217
209 208 0000000204 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
218
242 79 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
219
250 87895654 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
220
292 93 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
221
299 899 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
222
321 NULL 0000000765 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
223
323 14376 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
224
340 9984376 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
225
394 41 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
226
424 89 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
227
441 16546 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
228
500 NULL 0000000900 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
229
500 NULL 0000000900 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
230
500 NULL 0000000900 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
231
660 876546 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
232
987 41 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
233
2550 775654 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
234
2760 985654 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
235
3330 764376 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
236
3410 996546 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
237
7876 74 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
238
9112 NULL 0000008771 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
239
76710 226546 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
240
569300 9114376 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 7.7 7.7 00000000000000000007.7 00000000000000000008.8 8.8 8.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 0000000008.8 0000000008.8 0000000008.8 8.8 8.8 8.8 8.8 0000000008.8 00000000000000000008.8 0000000008.8 00000000000000000008.8 2000-01-01 00:00:20 0002-02-02 00:00:00 2000-12-31 23:59:59 2000 2000 2000 1enum 1set NULL NULL NULL NULL NULL NULL NULL NULL
244
--------------------------------------------------------------------------------
245
Drop table if exists t1;
246
Create table t1 (f59 INT, f60 INT) ;
247
Insert into t1 values (100,4234);
248
Insert into t1 values (990,6624);
249
Insert into t1 values (710,765);
250
Insert into t1 values (300,433334);
251
Insert into t1 values (800,9788);
252
Insert into t1 values (500,9866);
253
Drop view if exists v1 ;
254
CREATE VIEW v1 AS select f59,f60,f61
255
FROM test.tb2 where f59=250;
256
select * FROM v1 order by f60,f61 limit 0,10;
259
Drop view if exists v1 ;
260
CREATE VIEW v1 AS select f59,f60,f61
261
FROM test.tb2 limit 100;
262
select * FROM v1 order by f59,f60,f61 limit 0,10;
274
CREATE or REPLACE VIEW v1 AS select f59,f60,f61
276
select * FROM v1 order by f59,f60,f61 limit 4,3;
281
CREATE or REPLACE VIEW v1 AS select distinct f59
283
select * FROM v1 order by f59 limit 4,3;
288
ALTER VIEW v1 AS select f59
290
select * FROM v1 order by f59 limit 6,2;
294
CREATE or REPLACE VIEW v1 AS select f59
295
from tb2 order by f59;
296
select * FROM v1 order by f59 limit 0,10;
308
CREATE or REPLACE VIEW v1 AS select f59
309
from tb2 order by f59 asc;
310
select * FROM v1 limit 0,10;
322
CREATE or REPLACE VIEW v1 AS select f59
323
from tb2 order by f59 desc;
324
select * FROM v1 limit 0,10;
336
CREATE or REPLACE VIEW v1 AS select f59
337
from tb2 group by f59;
338
select * FROM v1 order by f59 limit 0,10;
350
CREATE or REPLACE VIEW v1 AS select f59
351
from tb2 group by f59 asc;
352
select * FROM v1 order by f59 limit 0,10;
364
CREATE or REPLACE VIEW v1 AS select f59
365
from tb2 group by f59 desc;
366
select * FROM v1 order by f59 limit 0,10;
378
CREATE or REPLACE VIEW v1 AS (select f59 from tb2)
379
union (select f59 from t1);
380
select * FROM v1 order by f59 limit 0,10;
392
CREATE or REPLACE VIEW v1 AS (select f59 FROM tb2)
393
UNION DISTINCT(select f59 FROM t1) ;
394
select * FROM v1 order by f59 limit 0,10;
406
CREATE or REPLACE VIEW v1 AS (select f59 FROM tb2)
407
UNION ALL(select f59 FROM t1) ;
408
select * FROM v1 order by f59 limit 0,10;
420
CREATE or REPLACE VIEW v1 AS select *
421
FROM test.tb2 WITH LOCAL CHECK OPTION ;
422
select * FROM v1 order by f59,f60,f61,f62,f63,f64 limit 0,50;
426
f62 0000000000000000000000000000000000000000000000000000000000000001
428
f64 0000000000000000000000000000000000000000000000000000000000000001
430
f66 0.000000000000000000000000000000
432
f68 0.000000000000000000000000000000
434
f70 000000000000000000000000000000000.000000000000000000000000000000
436
f72 000000000000000000000000000000000.000000000000000000000000000000
439
f75 00000001.175494352e-38
440
f76 00000001.175494352e-38
443
f79 00000001.175494352e-38
444
f80 00000001.175494352e-38
462
f98 00000001.175494352e-38
464
f100 00000001.175494352e-38
467
f103 1970-01-02 00:00:01
468
f104 1970-01-02 00:00:01
477
f113 $@$@$@$@@@@@@@@@@@
478
f114 $@$@$@$@@@@@@@@@@@
481
f117 $@$@$@$@@@@@@@@@@@
485
f62 0000000000000000000000000000000000000000000000000000000000000002
487
f64 0000000000000000000000000000000000000000000000000000000000000002
489
f66 1.100000000000000000000000000000
491
f68 1.100000000000000000000000000000
493
f70 000000000000000000000000000000001.100000000000000000000000000000
495
f72 000000000000000000000000000000001.100000000000000000000000000000
498
f75 00000001.175494353e-38
499
f76 00000001.175494353e-38
502
f79 00000001.175494353e-38
503
f80 00000001.175494353e-38
521
f98 00000001.175494353e-38
523
f100 00000001.175494353e-38
526
f103 1970-01-03 00:00:02
527
f104 1970-01-03 00:00:02
536
f113 ��4@�4@4@�4@��@@ @@ @ @@ @@@
537
f114 ��4@�4@4@�4@��@@ @@ @ @@ @@@
540
f117 ��4@�4@4@�4@��@@ @@ @ @@ @@@
544
f62 0000000000000000000000000000000000000000000000000000000000000003
546
f64 0000000000000000000000000000000000000000000000000000000000000003
548
f66 2.200000000000000000000000000000
550
f68 2.200000000000000000000000000000
552
f70 000000000000000000000000000000002.200000000000000000000000000000
554
f72 000000000000000000000000000000002.200000000000000000000000000000
557
f75 00000001.175494354e-38
558
f76 00000001.175494354e-38
561
f79 00000001.175494354e-38
562
f80 00000001.175494354e-38
580
f98 00000001.175494354e-38
582
f100 00000001.175494354e-38
585
f103 1970-01-04 00:00:03
586
f104 1970-01-04 00:00:03
595
f113 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
596
f114 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
599
f117 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
603
f62 0000000000000000000000000000000000000000000000000000000000000004
605
f64 0000000000000000000000000000000000000000000000000000000000000004
607
f66 3.300000000000000000000000000000
609
f68 3.300000000000000000000000000000
611
f70 000000000000000000000000000000003.300000000000000000000000000000
613
f72 000000000000000000000000000000003.300000000000000000000000000000
616
f75 00000001.175494355e-38
617
f76 00000001.175494355e-38
620
f79 00000001.175494355e-38
621
f80 00000001.175494355e-38
639
f98 00000001.175494355e-38
641
f100 00000001.175494355e-38
644
f103 1970-01-05 00:00:04
645
f104 1970-01-05 00:00:04
654
f113 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
655
f114 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
679
f79 00000000000000000007.7
680
f80 00000000000000000008.8
698
f98 00000000000000000008.8
700
f100 00000000000000000008.8
703
f103 0002-02-02 00:00:00
704
f104 2000-12-31 23:59:59
721
f62 0000000000000000000000000000000000000000000000000000000000000005
723
f64 0000000000000000000000000000000000000000000000000000000000000005
725
f66 4.400000000000000000000000000000
727
f68 4.400000000000000000000000000000
729
f70 000000000000000000000000000000004.400000000000000000000000000000
731
f72 000000000000000000000000000000004.400000000000000000000000000000
734
f75 00000001.175494356e-38
735
f76 00000001.175494356e-38
738
f79 00000001.175494356e-38
739
f80 00000001.175494356e-38
757
f98 00000001.175494356e-38
759
f100 00000001.175494356e-38
762
f103 1970-01-06 00:00:05
763
f104 1970-01-06 00:00:05
772
f113 @@N@@N@N@@N@@@$@$@(@$@(@(@$@(@$@$@
773
f114 @@N@@N@N@@N@@@$@$@(@$@(@(@$@(@$@$@
776
f117 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
780
f62 0000000000000000000000000000000000000000000000000000000000000006
782
f64 0000000000000000000000000000000000000000000000000000000000000006
784
f66 5.500000000000000000000000000000
786
f68 5.500000000000000000000000000000
788
f70 000000000000000000000000000000005.500000000000000000000000000000
790
f72 000000000000000000000000000000005.500000000000000000000000000000
793
f75 00000001.175494357e-38
794
f76 00000001.175494357e-38
797
f79 00000001.175494357e-38
798
f80 00000001.175494357e-38
816
f98 00000001.175494357e-38
818
f100 00000001.175494357e-38
821
f103 1970-01-07 00:00:06
822
f104 1970-01-07 00:00:06
831
f113 @@Q@@Q@Q@@Q@@@&@&@*@&@*@*@&@*@&@&@
832
f114 @@Q@@Q@Q@@Q@@@&@&@*@&@*@*@&@*@&@&@
835
f117 @@N@@N@N@@N@@@$@$@(@$@(@(@$@(@$@$@
839
f62 0000000000000000000000000000000000000000000000000000000000000007
841
f64 0000000000000000000000000000000000000000000000000000000000000007
843
f66 6.600000000000000000000000000000
845
f68 6.600000000000000000000000000000
847
f70 000000000000000000000000000000006.600000000000000000000000000000
849
f72 000000000000000000000000000000006.600000000000000000000000000000
852
f75 00000001.175494358e-38
853
f76 00000001.175494358e-38
856
f79 00000001.175494358e-38
857
f80 00000001.175494358e-38
875
f98 00000001.175494358e-38
877
f100 00000001.175494358e-38
880
f103 1970-01-08 00:00:07
881
f104 1970-01-08 00:00:07
890
f113 $@$@$@$@@@@@@@@@@@
891
f114 $@$@$@$@@@@@@@@@@@
894
f117 $@$@$@$@@@@@@@@@@@
898
f62 0000000000000000000000000000000000000000000000000000000000000008
900
f64 0000000000000000000000000000000000000000000000000000000000000008
902
f66 7.700000000000000000000000000000
904
f68 7.700000000000000000000000000000
906
f70 000000000000000000000000000000007.700000000000000000000000000000
908
f72 000000000000000000000000000000007.700000000000000000000000000000
911
f75 00000001.175494359e-38
912
f76 00000001.175494359e-38
915
f79 00000001.175494359e-38
916
f80 00000001.175494359e-38
934
f98 00000001.175494359e-38
936
f100 00000001.175494359e-38
939
f103 1970-01-09 00:00:08
940
f104 1970-01-09 00:00:08
949
f113 ��4@�4@4@�4@��@@ @@ @ @@ @@@
950
f114 ��4@�4@4@�4@��@@ @@ @ @@ @@@
953
f117 ��4@�4@4@�4@��@@ @@ @ @@ @@@
957
f62 0000000000000000000000000000000000000000000000000000000000000009
959
f64 0000000000000000000000000000000000000000000000000000000000000009
961
f66 8.800000000000000000000000000000
963
f68 8.800000000000000000000000000000
965
f70 000000000000000000000000000000008.800000000000000000000000000000
967
f72 000000000000000000000000000000008.800000000000000000000000000000
970
f75 000000001.17549436e-38
971
f76 000000001.17549436e-38
974
f79 000000001.17549436e-38
975
f80 000000001.17549436e-38
993
f98 000000001.17549436e-38
995
f100 000000001.17549436e-38
998
f103 1970-01-10 00:00:09
999
f104 1970-01-10 00:00:09
1008
f113 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
1009
f114 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
1012
f117 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
1016
f62 0000000000000000000000000000000000000000000000000000000000000010
1018
f64 0000000000000000000000000000000000000000000000000000000000000010
1020
f66 9.900000000000000000000000000000
1022
f68 9.900000000000000000000000000000
1024
f70 000000000000000000000000000000009.900000000000000000000000000000
1026
f72 000000000000000000000000000000009.900000000000000000000000000000
1027
f73 -1.175494341e-38
1029
f75 00000001.175494361e-38
1030
f76 00000001.175494361e-38
1031
f77 -1.175494341e-38
1033
f79 00000001.175494361e-38
1034
f80 00000001.175494361e-38
1048
f94 -1.175494341e-38
1052
f98 00000001.175494361e-38
1054
f100 00000001.175494361e-38
1057
f103 1970-01-11 00:00:10
1058
f104 1970-01-11 00:00:10
1067
f113 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
1068
f114 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
1092
f79 00000000000000000007.7
1093
f80 00000000000000000008.8
1111
f98 00000000000000000008.8
1113
f100 00000000000000000008.8
1116
f103 0002-02-02 00:00:00
1117
f104 2000-12-31 23:59:59
1151
f79 00000000000000000007.7
1152
f80 00000000000000000008.8
1170
f98 00000000000000000008.8
1172
f100 00000000000000000008.8
1175
f103 0002-02-02 00:00:00
1176
f104 2000-12-31 23:59:59
1210
f79 00000000000000000007.7
1211
f80 00000000000000000008.8
1229
f98 00000000000000000008.8
1231
f100 00000000000000000008.8
1234
f103 0002-02-02 00:00:00
1235
f104 2000-12-31 23:59:59
1269
f79 00000000000000000007.7
1270
f80 00000000000000000008.8
1288
f98 00000000000000000008.8
1290
f100 00000000000000000008.8
1293
f103 0002-02-02 00:00:00
1294
f104 2000-12-31 23:59:59
1328
f79 00000000000000000007.7
1329
f80 00000000000000000008.8
1347
f98 00000000000000000008.8
1349
f100 00000000000000000008.8
1352
f103 0002-02-02 00:00:00
1353
f104 2000-12-31 23:59:59
1387
f79 00000000000000000007.7
1388
f80 00000000000000000008.8
1406
f98 00000000000000000008.8
1408
f100 00000000000000000008.8
1411
f103 0002-02-02 00:00:00
1412
f104 2000-12-31 23:59:59
1446
f79 00000000000000000007.7
1447
f80 00000000000000000008.8
1465
f98 00000000000000000008.8
1467
f100 00000000000000000008.8
1470
f103 0002-02-02 00:00:00
1471
f104 2000-12-31 23:59:59
1505
f79 00000000000000000007.7
1506
f80 00000000000000000008.8
1524
f98 00000000000000000008.8
1526
f100 00000000000000000008.8
1529
f103 0002-02-02 00:00:00
1530
f104 2000-12-31 23:59:59
1564
f79 00000000000000000007.7
1565
f80 00000000000000000008.8
1583
f98 00000000000000000008.8
1585
f100 00000000000000000008.8
1588
f103 0002-02-02 00:00:00
1589
f104 2000-12-31 23:59:59
1623
f79 00000000000000000007.7
1624
f80 00000000000000000008.8
1642
f98 00000000000000000008.8
1644
f100 00000000000000000008.8
1647
f103 0002-02-02 00:00:00
1648
f104 2000-12-31 23:59:59
1682
f79 00000000000000000007.7
1683
f80 00000000000000000008.8
1701
f98 00000000000000000008.8
1703
f100 00000000000000000008.8
1706
f103 0002-02-02 00:00:00
1707
f104 2000-12-31 23:59:59
1741
f79 00000000000000000007.7
1742
f80 00000000000000000008.8
1760
f98 00000000000000000008.8
1762
f100 00000000000000000008.8
1765
f103 0002-02-02 00:00:00
1766
f104 2000-12-31 23:59:59
1800
f79 00000000000000000007.7
1801
f80 00000000000000000008.8
1819
f98 00000000000000000008.8
1821
f100 00000000000000000008.8
1824
f103 0002-02-02 00:00:00
1825
f104 2000-12-31 23:59:59
1859
f79 00000000000000000007.7
1860
f80 00000000000000000008.8
1878
f98 00000000000000000008.8
1880
f100 00000000000000000008.8
1883
f103 0002-02-02 00:00:00
1884
f104 2000-12-31 23:59:59
1918
f79 00000000000000000007.7
1919
f80 00000000000000000008.8
1937
f98 00000000000000000008.8
1939
f100 00000000000000000008.8
1942
f103 0002-02-02 00:00:00
1943
f104 2000-12-31 23:59:59
1977
f79 00000000000000000007.7
1978
f80 00000000000000000008.8
1996
f98 00000000000000000008.8
1998
f100 00000000000000000008.8
2001
f103 0002-02-02 00:00:00
2002
f104 2000-12-31 23:59:59
2036
f79 00000000000000000007.7
2037
f80 00000000000000000008.8
2055
f98 00000000000000000008.8
2057
f100 00000000000000000008.8
2060
f103 0002-02-02 00:00:00
2061
f104 2000-12-31 23:59:59
2095
f79 00000000000000000007.7
2096
f80 00000000000000000008.8
2114
f98 00000000000000000008.8
2116
f100 00000000000000000008.8
2119
f103 0002-02-02 00:00:00
2120
f104 2000-12-31 23:59:59
2154
f79 00000000000000000007.7
2155
f80 00000000000000000008.8
2173
f98 00000000000000000008.8
2175
f100 00000000000000000008.8
2178
f103 0002-02-02 00:00:00
2179
f104 2000-12-31 23:59:59
2213
f79 00000000000000000007.7
2214
f80 00000000000000000008.8
2232
f98 00000000000000000008.8
2234
f100 00000000000000000008.8
2237
f103 0002-02-02 00:00:00
2238
f104 2000-12-31 23:59:59
2272
f79 00000000000000000007.7
2273
f80 00000000000000000008.8
2291
f98 00000000000000000008.8
2293
f100 00000000000000000008.8
2296
f103 0002-02-02 00:00:00
2297
f104 2000-12-31 23:59:59
2331
f79 00000000000000000007.7
2332
f80 00000000000000000008.8
2350
f98 00000000000000000008.8
2352
f100 00000000000000000008.8
2355
f103 0002-02-02 00:00:00
2356
f104 2000-12-31 23:59:59
2390
f79 00000000000000000007.7
2391
f80 00000000000000000008.8
2409
f98 00000000000000000008.8
2411
f100 00000000000000000008.8
2414
f103 0002-02-02 00:00:00
2415
f104 2000-12-31 23:59:59
2449
f79 00000000000000000007.7
2450
f80 00000000000000000008.8
2468
f98 00000000000000000008.8
2470
f100 00000000000000000008.8
2473
f103 0002-02-02 00:00:00
2474
f104 2000-12-31 23:59:59
2508
f79 00000000000000000007.7
2509
f80 00000000000000000008.8
2527
f98 00000000000000000008.8
2529
f100 00000000000000000008.8
2532
f103 0002-02-02 00:00:00
2533
f104 2000-12-31 23:59:59
2567
f79 00000000000000000007.7
2568
f80 00000000000000000008.8
2586
f98 00000000000000000008.8
2588
f100 00000000000000000008.8
2591
f103 0002-02-02 00:00:00
2592
f104 2000-12-31 23:59:59
2626
f79 00000000000000000007.7
2627
f80 00000000000000000008.8
2645
f98 00000000000000000008.8
2647
f100 00000000000000000008.8
2650
f103 0002-02-02 00:00:00
2651
f104 2000-12-31 23:59:59
2685
f79 00000000000000000007.7
2686
f80 00000000000000000008.8
2704
f98 00000000000000000008.8
2706
f100 00000000000000000008.8
2709
f103 0002-02-02 00:00:00
2710
f104 2000-12-31 23:59:59
2744
f79 00000000000000000007.7
2745
f80 00000000000000000008.8
2763
f98 00000000000000000008.8
2765
f100 00000000000000000008.8
2768
f103 0002-02-02 00:00:00
2769
f104 2000-12-31 23:59:59
2803
f79 00000000000000000007.7
2804
f80 00000000000000000008.8
2822
f98 00000000000000000008.8
2824
f100 00000000000000000008.8
2827
f103 0002-02-02 00:00:00
2828
f104 2000-12-31 23:59:59
2862
f79 00000000000000000007.7
2863
f80 00000000000000000008.8
2881
f98 00000000000000000008.8
2883
f100 00000000000000000008.8
2886
f103 0002-02-02 00:00:00
2887
f104 2000-12-31 23:59:59
2921
f79 00000000000000000007.7
2922
f80 00000000000000000008.8
2940
f98 00000000000000000008.8
2942
f100 00000000000000000008.8
2945
f103 0002-02-02 00:00:00
2946
f104 2000-12-31 23:59:59
2980
f79 00000000000000000007.7
2981
f80 00000000000000000008.8
2999
f98 00000000000000000008.8
3001
f100 00000000000000000008.8
3004
f103 0002-02-02 00:00:00
3005
f104 2000-12-31 23:59:59
3039
f79 00000000000000000007.7
3040
f80 00000000000000000008.8
3058
f98 00000000000000000008.8
3060
f100 00000000000000000008.8
3063
f103 0002-02-02 00:00:00
3064
f104 2000-12-31 23:59:59
3098
f79 00000000000000000007.7
3099
f80 00000000000000000008.8
3117
f98 00000000000000000008.8
3119
f100 00000000000000000008.8
3122
f103 0002-02-02 00:00:00
3123
f104 2000-12-31 23:59:59
3157
f79 00000000000000000007.7
3158
f80 00000000000000000008.8
3176
f98 00000000000000000008.8
3178
f100 00000000000000000008.8
3181
f103 0002-02-02 00:00:00
3182
f104 2000-12-31 23:59:59
3216
f79 00000000000000000007.7
3217
f80 00000000000000000008.8
3235
f98 00000000000000000008.8
3237
f100 00000000000000000008.8
3240
f103 0002-02-02 00:00:00
3241
f104 2000-12-31 23:59:59
3275
f79 00000000000000000007.7
3276
f80 00000000000000000008.8
3294
f98 00000000000000000008.8
3296
f100 00000000000000000008.8
3299
f103 0002-02-02 00:00:00
3300
f104 2000-12-31 23:59:59
3334
f79 00000000000000000007.7
3335
f80 00000000000000000008.8
3353
f98 00000000000000000008.8
3355
f100 00000000000000000008.8
3358
f103 0002-02-02 00:00:00
3359
f104 2000-12-31 23:59:59
3373
CREATE or REPLACE VIEW v1 AS select *
3374
FROM test.tb2 WITH CASCADED CHECK OPTION ;
3375
select * FROM v1 order by f59,f60,f61,f62,f63,f64 limit 0,10;
3379
f62 0000000000000000000000000000000000000000000000000000000000000001
3381
f64 0000000000000000000000000000000000000000000000000000000000000001
3383
f66 0.000000000000000000000000000000
3385
f68 0.000000000000000000000000000000
3387
f70 000000000000000000000000000000000.000000000000000000000000000000
3389
f72 000000000000000000000000000000000.000000000000000000000000000000
3392
f75 00000001.175494352e-38
3393
f76 00000001.175494352e-38
3396
f79 00000001.175494352e-38
3397
f80 00000001.175494352e-38
3415
f98 00000001.175494352e-38
3417
f100 00000001.175494352e-38
3420
f103 1970-01-02 00:00:01
3421
f104 1970-01-02 00:00:01
3430
f113 $@$@$@$@@@@@@@@@@@
3431
f114 $@$@$@$@@@@@@@@@@@
3434
f117 $@$@$@$@@@@@@@@@@@
3438
f62 0000000000000000000000000000000000000000000000000000000000000002
3440
f64 0000000000000000000000000000000000000000000000000000000000000002
3442
f66 1.100000000000000000000000000000
3444
f68 1.100000000000000000000000000000
3446
f70 000000000000000000000000000000001.100000000000000000000000000000
3448
f72 000000000000000000000000000000001.100000000000000000000000000000
3449
f73 -1.175494349e-38
3451
f75 00000001.175494353e-38
3452
f76 00000001.175494353e-38
3453
f77 -1.175494349e-38
3455
f79 00000001.175494353e-38
3456
f80 00000001.175494353e-38
3470
f94 -1.175494349e-38
3474
f98 00000001.175494353e-38
3476
f100 00000001.175494353e-38
3479
f103 1970-01-03 00:00:02
3480
f104 1970-01-03 00:00:02
3489
f113 ��4@�4@4@�4@��@@ @@ @ @@ @@@
3490
f114 ��4@�4@4@�4@��@@ @@ @ @@ @@@
3493
f117 ��4@�4@4@�4@��@@ @@ @ @@ @@@
3497
f62 0000000000000000000000000000000000000000000000000000000000000003
3499
f64 0000000000000000000000000000000000000000000000000000000000000003
3501
f66 2.200000000000000000000000000000
3503
f68 2.200000000000000000000000000000
3505
f70 000000000000000000000000000000002.200000000000000000000000000000
3507
f72 000000000000000000000000000000002.200000000000000000000000000000
3508
f73 -1.175494348e-38
3510
f75 00000001.175494354e-38
3511
f76 00000001.175494354e-38
3512
f77 -1.175494348e-38
3514
f79 00000001.175494354e-38
3515
f80 00000001.175494354e-38
3529
f94 -1.175494348e-38
3533
f98 00000001.175494354e-38
3535
f100 00000001.175494354e-38
3538
f103 1970-01-04 00:00:03
3539
f104 1970-01-04 00:00:03
3548
f113 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
3549
f114 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
3552
f117 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
3556
f62 0000000000000000000000000000000000000000000000000000000000000004
3558
f64 0000000000000000000000000000000000000000000000000000000000000004
3560
f66 3.300000000000000000000000000000
3562
f68 3.300000000000000000000000000000
3564
f70 000000000000000000000000000000003.300000000000000000000000000000
3566
f72 000000000000000000000000000000003.300000000000000000000000000000
3567
f73 -1.175494347e-38
3569
f75 00000001.175494355e-38
3570
f76 00000001.175494355e-38
3571
f77 -1.175494347e-38
3573
f79 00000001.175494355e-38
3574
f80 00000001.175494355e-38
3588
f94 -1.175494347e-38
3592
f98 00000001.175494355e-38
3594
f100 00000001.175494355e-38
3597
f103 1970-01-05 00:00:04
3598
f104 1970-01-05 00:00:04
3607
f113 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
3608
f114 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
3632
f79 00000000000000000007.7
3633
f80 00000000000000000008.8
3651
f98 00000000000000000008.8
3653
f100 00000000000000000008.8
3656
f103 0002-02-02 00:00:00
3657
f104 2000-12-31 23:59:59
3674
f62 0000000000000000000000000000000000000000000000000000000000000005
3676
f64 0000000000000000000000000000000000000000000000000000000000000005
3678
f66 4.400000000000000000000000000000
3680
f68 4.400000000000000000000000000000
3682
f70 000000000000000000000000000000004.400000000000000000000000000000
3684
f72 000000000000000000000000000000004.400000000000000000000000000000
3685
f73 -1.175494346e-38
3687
f75 00000001.175494356e-38
3688
f76 00000001.175494356e-38
3689
f77 -1.175494346e-38
3691
f79 00000001.175494356e-38
3692
f80 00000001.175494356e-38
3706
f94 -1.175494346e-38
3710
f98 00000001.175494356e-38
3712
f100 00000001.175494356e-38
3715
f103 1970-01-06 00:00:05
3716
f104 1970-01-06 00:00:05
3725
f113 @@N@@N@N@@N@@@$@$@(@$@(@(@$@(@$@$@
3726
f114 @@N@@N@N@@N@@@$@$@(@$@(@(@$@(@$@$@
3729
f117 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
3733
f62 0000000000000000000000000000000000000000000000000000000000000006
3735
f64 0000000000000000000000000000000000000000000000000000000000000006
3737
f66 5.500000000000000000000000000000
3739
f68 5.500000000000000000000000000000
3741
f70 000000000000000000000000000000005.500000000000000000000000000000
3743
f72 000000000000000000000000000000005.500000000000000000000000000000
3744
f73 -1.175494345e-38
3746
f75 00000001.175494357e-38
3747
f76 00000001.175494357e-38
3748
f77 -1.175494345e-38
3750
f79 00000001.175494357e-38
3751
f80 00000001.175494357e-38
3765
f94 -1.175494345e-38
3769
f98 00000001.175494357e-38
3771
f100 00000001.175494357e-38
3774
f103 1970-01-07 00:00:06
3775
f104 1970-01-07 00:00:06
3784
f113 @@Q@@Q@Q@@Q@@@&@&@*@&@*@*@&@*@&@&@
3785
f114 @@Q@@Q@Q@@Q@@@&@&@*@&@*@*@&@*@&@&@
3788
f117 @@N@@N@N@@N@@@$@$@(@$@(@(@$@(@$@$@
3792
f62 0000000000000000000000000000000000000000000000000000000000000007
3794
f64 0000000000000000000000000000000000000000000000000000000000000007
3796
f66 6.600000000000000000000000000000
3798
f68 6.600000000000000000000000000000
3800
f70 000000000000000000000000000000006.600000000000000000000000000000
3802
f72 000000000000000000000000000000006.600000000000000000000000000000
3803
f73 -1.175494344e-38
3805
f75 00000001.175494358e-38
3806
f76 00000001.175494358e-38
3807
f77 -1.175494344e-38
3809
f79 00000001.175494358e-38
3810
f80 00000001.175494358e-38
3824
f94 -1.175494344e-38
3828
f98 00000001.175494358e-38
3830
f100 00000001.175494358e-38
3833
f103 1970-01-08 00:00:07
3834
f104 1970-01-08 00:00:07
3843
f113 $@$@$@$@@@@@@@@@@@
3844
f114 $@$@$@$@@@@@@@@@@@
3847
f117 $@$@$@$@@@@@@@@@@@
3851
f62 0000000000000000000000000000000000000000000000000000000000000008
3853
f64 0000000000000000000000000000000000000000000000000000000000000008
3855
f66 7.700000000000000000000000000000
3857
f68 7.700000000000000000000000000000
3859
f70 000000000000000000000000000000007.700000000000000000000000000000
3861
f72 000000000000000000000000000000007.700000000000000000000000000000
3862
f73 -1.175494343e-38
3864
f75 00000001.175494359e-38
3865
f76 00000001.175494359e-38
3866
f77 -1.175494343e-38
3868
f79 00000001.175494359e-38
3869
f80 00000001.175494359e-38
3883
f94 -1.175494343e-38
3887
f98 00000001.175494359e-38
3889
f100 00000001.175494359e-38
3892
f103 1970-01-09 00:00:08
3893
f104 1970-01-09 00:00:08
3902
f113 ��4@�4@4@�4@��@@ @@ @ @@ @@@
3903
f114 ��4@�4@4@�4@��@@ @@ @ @@ @@@
3906
f117 ��4@�4@4@�4@��@@ @@ @ @@ @@@
3910
f62 0000000000000000000000000000000000000000000000000000000000000009
3912
f64 0000000000000000000000000000000000000000000000000000000000000009
3914
f66 8.800000000000000000000000000000
3916
f68 8.800000000000000000000000000000
3918
f70 000000000000000000000000000000008.800000000000000000000000000000
3920
f72 000000000000000000000000000000008.800000000000000000000000000000
3921
f73 -1.175494342e-38
3923
f75 000000001.17549436e-38
3924
f76 000000001.17549436e-38
3925
f77 -1.175494342e-38
3927
f79 000000001.17549436e-38
3928
f80 000000001.17549436e-38
3942
f94 -1.175494342e-38
3946
f98 000000001.17549436e-38
3948
f100 000000001.17549436e-38
3951
f103 1970-01-10 00:00:09
3952
f104 1970-01-10 00:00:09
3961
f113 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
3962
f114 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
3965
f117 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
3966
CREATE OR REPLACE VIEW v1 AS SELECT F59, F60
3967
FROM test.tb2 WITH CASCADED CHECK OPTION;
3968
SELECT * FROM v1 order by f59,f60 limit 0,10;
3980
CREATE or REPLACE VIEW v1 AS select f59, f60
3981
from test.tb2 where f59=3330 ;
3982
select * FROM v1 order by f60 limit 0,10;
3989
--------------------------------------------------------------------------------
3990
DROP TABLE IF EXISTS t1 ;
3991
DROP VIEW IF EXISTS v1 ;
3992
DROP VIEW IF EXISTS v2 ;
3993
CREATE TABLE t1 (f1 BIGINT) ;
3995
CREATE or REPLACE VIEW v1 AS Select 1 INTO @x;
3996
ERROR HY000: View's SELECT contains a 'INTO' clause
4000
CREATE or REPLACE VIEW v1 AS Select 1
4001
FROM (SELECT 1 FROM t1) my_table;
4002
ERROR HY000: View's SELECT contains a subquery in the FROM clause
4003
CREATE VIEW v1 AS SELECT f1 FROM t1;
4004
CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1 ;
4009
INSERT INTO v1 VALUES (1) ;
4018
CREATE TRIGGER tr1 BEFORE INSERT ON v1 FOR EACH ROW SET @a:=1 ;
4019
ERROR HY000: 'test.v1' is not BASE TABLE
4020
RENAME TABLE v1 TO v2;
4021
RENAME VIEW v2 TO v1;
4022
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VIEW v2 TO v1' at line 1
4023
ALTER TABLE v2 RENAME AS v1;
4024
ALTER VIEW v1 RENAME AS v2;
4025
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'RENAME AS v2' at line 1
4026
DROP TABLE IF EXISTS t1, t2 ;
4027
DROP VIEW IF EXISTS v1 ;
4028
DROP VIEW IF EXISTS v2 ;
4029
CREATE TABLE t1 ( f1 DATE, f2 BLOB, f3 DOUBLE );
4030
CREATE VIEW v1 AS SELECT f1, f2, f3 FROM t1;
4031
ALTER TABLE t1 ADD PRIMARY KEY(f1);
4032
ALTER TABLE v1 ADD PRIMARY KEY(f1);
4033
ERROR HY000: 'test.v1' is not BASE TABLE
4034
ALTER VIEW v1 ADD PRIMARY KEY(f1);
4035
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ADD PRIMARY KEY(f1)' at line 1
4036
CREATE INDEX t1_idx ON t1(f3);
4037
CREATE INDEX v1_idx ON v1(f3);
4038
ERROR HY000: 'test.v1' is not BASE TABLE
4042
Testcase 3.3.1.3 + 3.1.1.4
4043
--------------------------------------------------------------------------------
4044
DROP VIEW IF EXISTS v1 ;
4045
CREATE VIEW v1 or REPLACE AS Select * from tb2 my_table;
4046
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'or REPLACE AS Select * from tb2 my_table' at line 1
4047
CREATE VIEW v1 WITH CASCADED CHECK OPTION AS Select *
4048
from tb2 my_table limit 50;
4049
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WITH CASCADED CHECK OPTION AS Select *
4050
from tb2 my_table limit 50' at line 1
4051
CREATE VIEW v1 WITH LOCAL CHECK OPTION AS Select *
4052
from tb2 my_table limit 50;
4053
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WITH LOCAL CHECK OPTION AS Select *
4054
from tb2 my_table limit 50' at line 1
4055
SELECT * FROM tb2 my_table CREATE VIEW As v1;
4056
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE VIEW As v1' at line 1
4057
CREATE or REPLACE VIEW v1 Select f59, f60
4058
from test.tb2 my_table where f59 = 250 ;
4059
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Select f59, f60
4060
from test.tb2 my_table where f59 = 250' at line 1
4061
CREATE OR REPLACE VIEW v1 AS SELECT F59, F60
4062
FROM test.tb2 my_table WITH CASCADED CHECK OPTION;
4064
REPLACE OR CREATE VIEW v1 AS SELECT F59, F60
4065
FROM test.tb2 my_table WITH CASCADED CHECK OPTION;
4066
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OR CREATE VIEW v1 AS SELECT F59, F60
4067
FROM test.tb2 my_table WITH CASCADED CHECK ' at line 1
4068
CREATE OR REPLACE VIEW v1 SELECT AS F59, F60
4069
FROM test.tb2 my_table WITH CASCADED CHECK OPTION;
4070
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT AS F59, F60
4071
FROM test.tb2 my_table WITH CASCADED CHECK OPTION' at line 1
4072
CREATE OR REPLACE VIEW v1 AS SELECT F59, F60
4073
FROM test.tb2 my_table CASCADED WITH CHECK OPTION;
4074
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CASCADED WITH CHECK OPTION' at line 2
4075
CREATE OR REPLACE VIEW v1 AS SELECT F59, F60
4076
FROM test.tb2 my_table WITH CASCADED OPTION CHECK;
4077
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION CHECK' at line 2
4078
CREATE OR REPLACE VIEW v1 AS SELECT F59, F60
4079
FROM test.tb2 my_table CHECK OPTION WITH CASCADED;
4080
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CHECK OPTION WITH CASCADED' at line 2
4081
CREATE OR REPLACE VIEW v1 WITH CASCADED CHECK OPTION
4082
AS SELECT F59, F60 FROM test.tb2 my_table;
4083
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WITH CASCADED CHECK OPTION
4084
AS SELECT F59, F60 FROM test.tb2 my_table' at line 1
4085
CREATE OR REPLACE AS SELECT F59, F60
4086
FROM test.tb2 my_table VIEW v1 WITH CASCADED CHECK OPTION;
4087
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS SELECT F59, F60
4088
FROM test.tb2 my_table VIEW v1 WITH CASCADED CHECK OPTION' at line 1
4089
CREATE OR REPLACE AS SELECT F59, F60
4090
FROM test.tb2 my_table WITH CASCADED CHECK OPTION VIEW v1;
4091
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS SELECT F59, F60
4092
FROM test.tb2 my_table WITH CASCADED CHECK OPTION VIEW v1' at line 1
4093
REPLACE OR CREATE VIEW v1 AS SELECT F59, F60
4094
FROM test.tb2 my_table WITH LOCAL CHECK OPTION;
4095
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OR CREATE VIEW v1 AS SELECT F59, F60
4096
FROM test.tb2 my_table WITH LOCAL CHECK OPT' at line 1
4097
CREATE OR REPLACE VIEW v1 SELECT AS F59, F60
4098
FROM test.tb2 my_table WITH LOCAL CHECK OPTION;
4099
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT AS F59, F60
4100
FROM test.tb2 my_table WITH LOCAL CHECK OPTION' at line 1
4101
CREATE OR REPLACE VIEW v1 AS SELECT F59, F60
4102
FROM test.tb2 my_table LOCAL WITH CHECK OPTION;
4103
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LOCAL WITH CHECK OPTION' at line 2
4104
CREATE OR REPLACE VIEW v1 AS SELECT F59, F60
4105
FROM test.tb2 my_table WITH LOCAL OPTION CHECK;
4106
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION CHECK' at line 2
4107
CREATE OR REPLACE VIEW v1 AS SELECT F59, F60
4108
FROM test.tb2 my_table CHECK OPTION WITH LOCAL;
4109
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CHECK OPTION WITH LOCAL' at line 2
4110
CREATE OR REPLACE VIEW v1 WITH CASCADED CHECK OPTION
4111
AS SELECT F59, F60 FROM test.tb2 my_table;
4112
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WITH CASCADED CHECK OPTION
4113
AS SELECT F59, F60 FROM test.tb2 my_table' at line 1
4114
CREATE OR REPLACE AS SELECT F59, F60
4115
FROM test.tb2 my_table VIEW v1 WITH LOCAL CHECK OPTION;
4116
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS SELECT F59, F60
4117
FROM test.tb2 my_table VIEW v1 WITH LOCAL CHECK OPTION' at line 1
4118
CREATE OR REPLACE AS SELECT F59, F60
4119
FROM test.tb2 my_table WITH LOCAL CHECK OPTION VIEW v1;
4120
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS SELECT F59, F60
4121
FROM test.tb2 my_table WITH LOCAL CHECK OPTION VIEW v1' at line 1
4122
Drop table if exists t1 ;
4123
CREATE table t1 (f1 int ,f2 int) ;
4124
INSERT INTO t1 values (235, 22);
4125
INSERT INTO t1 values (554, 11);
4126
CREATE or REPLACE view v1 as (Select from f59 tb2)
4127
Union ALL (Select from f1 t1);
4128
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from f59 tb2)
4129
Union ALL (Select from f1 t1)' at line 1
4130
CREATE or REPLACE view v1 as Select f59, f60
4131
from tb2 by order f59;
4132
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'by order f59' at line 2
4133
CREATE or REPLACE view v1 as Select f59, f60
4134
from tb2 by group f59 ;
4135
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'by group f59' at line 2
4138
--------------------------------------------------------------------------------
4139
DROP VIEW IF EXISTS v1 ;
4140
CREATE VIEW v1 SELECT * FROM tb2;
4141
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT * FROM tb2' at line 1
4142
CREATE v1 AS SELECT * FROM tb2;
4143
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'v1 AS SELECT * FROM tb2' at line 1
4144
VIEW v1 AS SELECT * FROM tb2;
4145
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VIEW v1 AS SELECT * FROM tb2' at line 1
4146
CREATE VIEW v1 AS SELECT 1;
4148
VIEW v1 AS SELECT 1;
4149
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VIEW v1 AS SELECT 1' at line 1
4150
CREATE v1 AS SELECT 1;
4151
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'v1 AS SELECT 1' at line 1
4152
CREATE VIEW AS SELECT 1;
4153
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS SELECT 1' at line 1
4154
CREATE VIEW v1 SELECT 1;
4155
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT 1' at line 1
4157
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
4160
--------------------------------------------------------------------------------
4161
DROP VIEW IF EXISTS v1 ;
4162
CREATE or REPLACE VIEW v1
4163
as SELECT * from tb2;
4164
CREATE or REPLACE ALGORITHM = UNDEFINED VIEW v1
4165
as SELECT * from tb2;
4166
CREATE or REPLACE ALGORITHM = MERGE VIEW v1
4167
as SELECT * from tb2;
4168
CREATE or REPLACE ALGORITHM = TEMPTABLE VIEW v1
4169
as SELECT * from tb2;
4170
CREATE or REPLACE ALGORITHM = TEMPTABLE VIEW v1
4171
as SELECT * from tb2;
4172
CREATE or REPLACE = TEMPTABLE VIEW v1
4173
as SELECT * from tb2;
4174
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= TEMPTABLE VIEW v1
4175
as SELECT * from tb2' at line 1
4176
CREATE or REPLACE ALGORITHM TEMPTABLE VIEW v1
4177
as SELECT * from tb2;
4178
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TEMPTABLE VIEW v1
4179
as SELECT * from tb2' at line 1
4180
CREATE or REPLACE ALGORITHM = VIEW v1
4181
as SELECT * from tb2;
4182
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VIEW v1
4183
as SELECT * from tb2' at line 1
4184
CREATE or REPLACE TEMPTABLE = ALGORITHM VIEW v1
4185
as SELECT * from tb2;
4186
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TEMPTABLE = ALGORITHM VIEW v1
4187
as SELECT * from tb2' at line 1
4188
CREATE or REPLACE TEMPTABLE - ALGORITHM VIEW v1
4189
as SELECT * from tb2;
4190
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TEMPTABLE - ALGORITHM VIEW v1
4191
as SELECT * from tb2' at line 1
4192
CREATE or REPLACE GARBAGE = TEMPTABLE VIEW v1
4193
as SELECT * from tb2;
4194
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GARBAGE = TEMPTABLE VIEW v1
4195
as SELECT * from tb2' at line 1
4196
CREATE or REPLACE ALGORITHM = GARBAGE VIEW v1
4197
as SELECT * from tb2;
4198
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GARBAGE VIEW v1
4199
as SELECT * from tb2' at line 1
4200
Drop view if exists v1 ;
4201
CREATE or REPLACE VIEW v1
4202
AS SELECT * from tb2 where f59 < 1;
4203
CREATE or REPLACE VIEW v1
4204
AS SELECT * from tb2 where f59 < 1 WITH CHECK OPTION;
4205
CREATE or REPLACE VIEW v1
4206
AS SELECT * from tb2 where f59 < 1 WITH CASCADED CHECK OPTION;
4207
CREATE or REPLACE VIEW v1
4208
AS SELECT * from tb2 where f59 < 1 WITH LOCAL CHECK OPTION;
4209
CREATE or REPLACE VIEW v1
4210
AS SELECT * from tb2 where f59 < 1 WITH NO CHECK OPTION;
4211
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NO CHECK OPTION' at line 2
4212
CREATE or REPLACE VIEW v1
4213
AS SELECT * from tb2 where f59 < 1 CASCADED CHECK OPTION;
4214
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CASCADED CHECK OPTION' at line 2
4215
CREATE or REPLACE VIEW v1
4216
AS SELECT * from tb2 where f59 < 1 WITH CASCADED OPTION;
4217
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION' at line 2
4218
CREATE or REPLACE VIEW v1
4219
AS SELECT * from tb2 where f59 < 1 WITH CASCADED CHECK ;
4220
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2
4223
--------------------------------------------------------------------------------
4224
DROP VIEW IF EXISTS v1 ;
4225
Create view test.v1 AS Select * from test.tb2;
4226
Alter view test.v1 AS Select F59 from test. tb2 limit 100 ;
4228
Create view v1 AS Select * from test.tb2 limit 100 ;
4229
Alter view v1 AS Select F59 from test.tb2 limit 100 ;
4233
--------------------------------------------------------------------------------
4234
DROP TABLE IF EXISTS t1 ;
4235
DROP VIEW IF EXISTS v1 ;
4236
DROP VIEW IF EXISTS V1 ;
4237
CREATE TABLE t1 (f1 NUMERIC(4)) ENGINE = myisam;
4238
INSERT INTO t1 VALUES(1111), (2222);
4239
CREATE VIEW v1 AS SELECT * FROM t1 WHERE f1 = 1111;
4240
CREATE VIEW V1 AS SELECT * FROM t1 WHERE f1 = 2222;
4244
DROP TABLE IF EXISTS t1 ;
4245
DROP VIEW IF EXISTS v1 ;
4246
DROP VIEW IF EXISTS V1 ;
4249
--------------------------------------------------------------------------------
4250
Create view select AS Select * from test.tb2 limit 100;
4251
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'select AS Select * from test.tb2 limit 100' at line 1
4252
Create view as AS Select * from test.tb2 limit 100;
4253
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'as AS Select * from test.tb2 limit 100' at line 1
4254
Create view where AS Select * from test.tb2 limit 100;
4255
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where AS Select * from test.tb2 limit 100' at line 1
4256
Create view from AS Select * from test.tb2 limit 100;
4257
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from AS Select * from test.tb2 limit 100' at line 1
4258
Create view while AS Select * from test.tb2 limit 100;
4259
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'while AS Select * from test.tb2 limit 100' at line 1
4260
Create view asdkj*(&*&&^ as Select * from test.tb2 limit 100 ;
4261
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '*(&*&&^ as Select * from test.tb2 limit 100' at line 1
4262
Drop view if exists test.procedure ;
4263
Create view test.procedure as Select * from test.tb2 limit 100 ;
4264
Drop view if exists test.procedure ;
4267
--------------------------------------------------------------------------------
4268
Drop TABLE IF EXISTS t1 ;
4269
Drop VIEW IF EXISTS v1;
4270
Drop VIEW IF EXISTS v2;
4271
Drop VIEW IF EXISTS v3;
4272
CREATE TABLE t1 ( f1 char(5));
4273
INSERT INTO t1 SET f1 = 'abcde';
4274
CREATE VIEW v1 AS SELECT f1 FROM t1;
4275
CREATE VIEW v2 AS SELECT * FROM v1;
4278
ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
4280
ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
4281
UPDATE v1 SET f1 = 'aaaaa';
4282
ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
4283
INSERT INTO v1 SET f1 = "fffff";
4284
ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
4286
ERROR HY000: View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
4288
ERROR HY000: View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
4289
UPDATE v2 SET f1 = 'aaaaa';
4290
ERROR HY000: View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
4291
INSERT INTO v2 SET f1 = "fffff";
4292
ERROR HY000: View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
4295
ERROR HY000: View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
4297
ERROR HY000: View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
4298
UPDATE v2 SET f1 = 'aaaaa';
4299
ERROR HY000: View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
4300
INSERT INTO v2 SET f1 = "fffff";
4301
ERROR HY000: View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
4303
DROP TABLE IF EXISTS t1 ;
4304
DROP VIEW IF EXISTS v1 ;
4305
CREATE TABLE t1 (f1 FLOAT);
4306
CREATE VIEW v1 AS SELECT * FROM v1;
4307
ERROR 42S02: Table 'test.v1' doesn't exist
4308
CREATE VIEW v1 AS SELECT * FROM t1;
4309
CREATE or REPLACE VIEW v1 AS SELECT * FROM v1;
4310
ERROR 42S02: Table 'test.v1' doesn't exist
4315
--------------------------------------------------------------------------------
4316
Drop view if exists test.v1 ;
4317
Create view test.v1 AS Select * from test.tb2 ;
4318
Create view test.v1 AS Select F59 from test.tb2 ;
4319
ERROR 42S01: Table 'v1' already exists
4320
Create view v1 AS Select F59 from test.tb2 ;
4321
ERROR 42S01: Table 'v1' already exists
4324
--------------------------------------------------------------------------------
4325
Create view test.tb2 AS Select f59,f60 from test.tb2 limit 100 ;
4326
ERROR 42S01: Table 'tb2' already exists
4327
Create view tb2 AS Select f59,f60 from test.tb2 limit 100 ;
4328
ERROR 42S01: Table 'tb2' already exists
4329
Drop view if exists test.v111 ;
4330
Create view test.v111 as select * from tb2 limit 50;
4331
Create table test.v111(f1 int );
4332
ERROR 42S01: Table 'v111' already exists
4333
Create table v111(f1 int );
4334
ERROR 42S01: Table 'v111' already exists
4335
DROP VIEW test.v111;
4338
--------------------------------------------------------------------------------
4340
Drop database if exists test2 ;
4341
Create database test2 ;
4342
DROP TABLE IF EXISTS test.t0, test.t1, test.t2;
4343
DROP VIEW IF EXISTS test.v1;
4344
DROP VIEW IF EXISTS test.v2;
4345
CREATE TABLE test.t1 ( f1 VARCHAR(20));
4346
CREATE TABLE test2.t1 ( f1 VARCHAR(20));
4347
CREATE TABLE test.t2 ( f1 VARCHAR(20));
4348
CREATE TABLE test2.v1 ( f1 VARCHAR(20));
4349
CREATE TABLE test.t0 ( f1 VARCHAR(20));
4350
CREATE TABLE test2.t0 ( f1 VARCHAR(20));
4351
CREATE VIEW test2.t2 AS SELECT * FROM test2.t0;
4352
CREATE VIEW test.v1 AS SELECT * FROM test.t0;
4353
CREATE VIEW test.v2 AS SELECT * FROM test.t0;
4354
CREATE VIEW test2.v2 AS SELECT * FROM test2.t0;
4355
INSERT INTO test.t1 VALUES('test.t1 - 1');
4356
INSERT INTO test2.t1 VALUES('test2.t1 - 1');
4357
INSERT INTO test.t2 VALUES('test.t2 - 1');
4358
INSERT INTO test2.v1 VALUES('test2.v1 - 1');
4359
INSERT INTO test.t0 VALUES('test.t0 - 1');
4360
INSERT INTO test2.t0 VALUES('test2.t0 - 1');
4362
INSERT INTO t1 VALUES('test.t1 - 2');
4363
INSERT INTO t2 VALUES('test.t2 - 2');
4364
INSERT INTO t0 VALUES('test.t0 - 2');
4366
INSERT INTO t1 VALUES('test2.t1 - 2');
4367
INSERT INTO v1 VALUES('test2.v1 - 2');
4368
INSERT INTO t0 VALUES('test2.t0 - 2');
4404
--------------------------------------------------------------------------------
4405
DROP TABLE IF EXISTS t1;
4406
DROP VIEW IF EXISTS v1;
4407
CREATE TABLE t1 (f1 BIGINT);
4408
INSERT INTO t1 VALUES(1);
4409
CREATE VIEW test.v1 AS SELECT * FROM t1 limit 2;
4410
SHOW CREATE VIEW test.v1;
4411
View Create View character_set_client collation_connection
4412
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`f1` AS `f1` from `t1` limit 2 latin1 latin1_swedish_ci
4413
SELECT * FROM test.v1;
4416
CREATE OR REPLACE ALGORITHM = TEMPTABLE VIEW test.v1
4417
AS SELECT * FROM t1 limit 2;
4418
SHOW CREATE VIEW test.v1;
4419
View Create View character_set_client collation_connection
4420
v1 CREATE ALGORITHM=TEMPTABLE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`f1` AS `f1` from `t1` limit 2 latin1 latin1_swedish_ci
4421
SELECT * FROM test.v1;
4424
CREATE OR REPLACE VIEW test.v1 AS SELECT * FROM tb2 order by f59 limit 2;
4425
SHOW CREATE VIEW test.v1;
4426
View Create View character_set_client collation_connection
4427
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `tb2`.`f59` AS `f59`,`tb2`.`f60` AS `f60`,`tb2`.`f61` AS `f61`,`tb2`.`f62` AS `f62`,`tb2`.`f63` AS `f63`,`tb2`.`f64` AS `f64`,`tb2`.`f65` AS `f65`,`tb2`.`f66` AS `f66`,`tb2`.`f67` AS `f67`,`tb2`.`f68` AS `f68`,`tb2`.`f69` AS `f69`,`tb2`.`f70` AS `f70`,`tb2`.`f71` AS `f71`,`tb2`.`f72` AS `f72`,`tb2`.`f73` AS `f73`,`tb2`.`f74` AS `f74`,`tb2`.`f75` AS `f75`,`tb2`.`f76` AS `f76`,`tb2`.`f77` AS `f77`,`tb2`.`f78` AS `f78`,`tb2`.`f79` AS `f79`,`tb2`.`f80` AS `f80`,`tb2`.`f81` AS `f81`,`tb2`.`f82` AS `f82`,`tb2`.`f83` AS `f83`,`tb2`.`f84` AS `f84`,`tb2`.`f85` AS `f85`,`tb2`.`f86` AS `f86`,`tb2`.`f87` AS `f87`,`tb2`.`f88` AS `f88`,`tb2`.`f89` AS `f89`,`tb2`.`f90` AS `f90`,`tb2`.`f91` AS `f91`,`tb2`.`f92` AS `f92`,`tb2`.`f93` AS `f93`,`tb2`.`f94` AS `f94`,`tb2`.`f95` AS `f95`,`tb2`.`f96` AS `f96`,`tb2`.`f97` AS `f97`,`tb2`.`f98` AS `f98`,`tb2`.`f99` AS `f99`,`tb2`.`f100` AS `f100`,`tb2`.`f101` AS `f101`,`tb2`.`f102` AS `f102`,`tb2`.`f103` AS `f103`,`tb2`.`f104` AS `f104`,`tb2`.`f105` AS `f105`,`tb2`.`f106` AS `f106`,`tb2`.`f107` AS `f107`,`tb2`.`f108` AS `f108`,`tb2`.`f109` AS `f109`,`tb2`.`f110` AS `f110`,`tb2`.`f111` AS `f111`,`tb2`.`f112` AS `f112`,`tb2`.`f113` AS `f113`,`tb2`.`f114` AS `f114`,`tb2`.`f115` AS `f115`,`tb2`.`f116` AS `f116`,`tb2`.`f117` AS `f117` from `tb2` order by `tb2`.`f59` limit 2 latin1 latin1_swedish_ci
4428
SELECT * FROM test.v1 order by f59,f60,f61,f62,f63,f64,f65;
4432
f62 0000000000000000000000000000000000000000000000000000000000000001
4434
f64 0000000000000000000000000000000000000000000000000000000000000001
4436
f66 0.000000000000000000000000000000
4438
f68 0.000000000000000000000000000000
4440
f70 000000000000000000000000000000000.000000000000000000000000000000
4442
f72 000000000000000000000000000000000.000000000000000000000000000000
4445
f75 00000001.175494352e-38
4446
f76 00000001.175494352e-38
4449
f79 00000001.175494352e-38
4450
f80 00000001.175494352e-38
4468
f98 00000001.175494352e-38
4470
f100 00000001.175494352e-38
4473
f103 1970-01-02 00:00:01
4474
f104 1970-01-02 00:00:01
4483
f113 $@$@$@$@@@@@@@@@@@
4484
f114 $@$@$@$@@@@@@@@@@@
4487
f117 $@$@$@$@@@@@@@@@@@
4491
f62 0000000000000000000000000000000000000000000000000000000000000002
4493
f64 0000000000000000000000000000000000000000000000000000000000000002
4495
f66 1.100000000000000000000000000000
4497
f68 1.100000000000000000000000000000
4499
f70 000000000000000000000000000000001.100000000000000000000000000000
4501
f72 000000000000000000000000000000001.100000000000000000000000000000
4502
f73 -1.175494349e-38
4504
f75 00000001.175494353e-38
4505
f76 00000001.175494353e-38
4506
f77 -1.175494349e-38
4508
f79 00000001.175494353e-38
4509
f80 00000001.175494353e-38
4523
f94 -1.175494349e-38
4527
f98 00000001.175494353e-38
4529
f100 00000001.175494353e-38
4532
f103 1970-01-03 00:00:02
4533
f104 1970-01-03 00:00:02
4542
f113 ��4@�4@4@�4@��@@ @@ @ @@ @@@
4543
f114 ��4@�4@4@�4@��@@ @@ @ @@ @@@
4546
f117 ��4@�4@4@�4@��@@ @@ @ @@ @@@
4547
CREATE OR REPLACE VIEW test.v1 AS SELECT F59 FROM tb2;
4548
SHOW CREATE VIEW test.v1;
4549
View Create View character_set_client collation_connection
4550
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `tb2`.`f59` AS `F59` from `tb2` latin1 latin1_swedish_ci
4551
SELECT * FROM test.v1 order by F59 limit 10,100;
4593
Drop table test.t1 ;
4597
--------------------------------------------------------------------------------
4598
CREATE OR REPLACE VIEW test.tb2 AS SELECT * From tb2 LIMIT 2;
4599
ERROR HY000: 'test.tb2' is not VIEW
4600
CREATE OR REPLACE VIEW tb2 AS SELECT * From tb2 LIMIT 2;
4601
ERROR HY000: 'test.tb2' is not VIEW
4604
--------------------------------------------------------------------------------
4605
Drop table if exists test.v1 ;
4606
CREATE OR REPLACE view test.v1 as select * from tb2;
4607
SELECT * FROM test.v1;
4608
f59 f60 f61 f62 f63 f64 f65 f66 f67 f68 f69 f70 f71 f72 f73 f74 f75 f76 f77 f78 f79 f80 f81 f82 f83 f84 f85 f86 f87 f88 f89 f90 f91 f92 f93 f94 f95 f96 f97 f98 f99 f100 f101 f102 f103 f104 f105 f106 f107 f108 f109 f110 f111 f112 f113 f114 f115 f116 f117
4609
1 1 0000000001 0000000000000000000000000000000000000000000000000000000000000001 0000000001 0000000000000000000000000000000000000000000000000000000000000001 -5 0.000000000000000000000000000000 1 0.000000000000000000000000000000 0000000001 000000000000000000000000000000000.000000000000000000000000000000 0000000001 000000000000000000000000000000000.000000000000000000000000000000 -1.17549435e-38 1.175494352e-38 00000001.175494352e-38 00000001.175494352e-38 -1.17549435e-38 1.175494352e-38 00000001.175494352e-38 00000001.175494352e-38 -1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.17549e-38 1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.17549435e-38 1.17549e-38 1.175494352e-38 01.17549e-38 00000001.175494352e-38 01.17549e-38 00000001.175494352e-38 1000-01-01 838:59:58 1970-01-02 00:00:01 1970-01-02 00:00:01 1902 1902 1902 2enum 2set
4612
Testcase 3.3.1.16 + 3.3.1.17
4613
--------------------------------------------------------------------------------
4614
Drop table if exists test.v1 ;
4615
CREATE OR REPLACE VIEW v1 AS SELECT * From tb2;
4616
SELECT * FROM tb2 WHERE 1 = 2;
4617
f59 f60 f61 f62 f63 f64 f65 f66 f67 f68 f69 f70 f71 f72 f73 f74 f75 f76 f77 f78 f79 f80 f81 f82 f83 f84 f85 f86 f87 f88 f89 f90 f91 f92 f93 f94 f95 f96 f97 f98 f99 f100 f101 f102 f103 f104 f105 f106 f107 f108 f109 f110 f111 f112 f113 f114 f115 f116 f117
4618
SELECT * FROM v1 WHERE 1 = 2;
4619
f59 f60 f61 f62 f63 f64 f65 f66 f67 f68 f69 f70 f71 f72 f73 f74 f75 f76 f77 f78 f79 f80 f81 f82 f83 f84 f85 f86 f87 f88 f89 f90 f91 f92 f93 f94 f95 f96 f97 f98 f99 f100 f101 f102 f103 f104 f105 f106 f107 f108 f109 f110 f111 f112 f113 f114 f115 f116 f117
4621
DROP TABLE IF EXISTS t1;
4622
DROP VIEW IF EXISTS v1;
4623
CREATE TABLE t1 (f1 NUMERIC(15,3));
4624
INSERT INTO t1 VALUES(8.8);
4625
CREATE VIEW v1 AS SELECT * FROM t1;
4626
SHOW CREATE VIEW v1;
4627
View Create View character_set_client collation_connection
4628
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`f1` AS `f1` from `t1` latin1 latin1_swedish_ci
4632
CREATE OR REPLACE VIEW v1 AS SELECT f1 FROM t1;
4633
SHOW CREATE VIEW v1;
4634
View Create View character_set_client collation_connection
4635
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`f1` AS `f1` from `t1` latin1 latin1_swedish_ci
4639
CREATE OR REPLACE VIEW v1 AS SELECT f1 As my_column FROM t1;
4640
SHOW CREATE VIEW v1;
4641
View Create View character_set_client collation_connection
4642
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`f1` AS `my_column` from `t1` latin1 latin1_swedish_ci
4646
CREATE OR REPLACE VIEW v1(column1,column2)
4647
AS SELECT f1 As my_column, f1 FROM t1;
4648
SHOW CREATE VIEW v1;
4649
View Create View character_set_client collation_connection
4650
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`f1` AS `column1`,`t1`.`f1` AS `column2` from `t1` latin1 latin1_swedish_ci
4654
CREATE OR REPLACE VIEW test.v1(column1,column2)
4655
AS SELECT f1 As my_column, f1 FROM test.t1;
4656
SHOW CREATE VIEW v1;
4657
View Create View character_set_client collation_connection
4658
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`f1` AS `column1`,`t1`.`f1` AS `column2` from `t1` latin1 latin1_swedish_ci
4664
--------------------------------------------------------------------------------
4665
Drop view if exists v1 ;
4666
Drop view if exists v1_1 ;
4668
as Select test.tb2.f59 as NewNameF1, test.tb2.f60
4669
from test.tb2 limit 0,100 ;
4671
as Select test.tb2.f59 as NewNameF1, test.tb2.f60 as NewNameF2
4672
from tb2 limit 0,100 ;
4673
SELECT NewNameF1,f60 FROM test.v1_1 ;
4674
ERROR 42S22: Unknown column 'f60' in 'field list'
4675
SELECT NewNameF1, v1_1.f60 FROM test.v1_1 ;
4676
ERROR 42S22: Unknown column 'v1_1.f60' in 'field list'
4677
SELECT f59, f60 FROM test.v1 ;
4678
ERROR 42S22: Unknown column 'f59' in 'field list'
4680
SELECT F59 FROM v1 ;
4681
ERROR 42S22: Unknown column 'F59' in 'field list'
4684
--------------------------------------------------------------------------------
4685
DROP TABLE IF EXISTS t1, t2;
4686
DROP VIEW IF EXISTS v1;
4687
CREATE TABLE t1( f1 BIGINT, f2 DECIMAL(5,2));
4688
INSERT INTO t1 VALUES(7, 7.7);
4689
CREATE TABLE t2( f1 BIGINT, f2 DECIMAL(5,2));
4690
INSERT INTO t2 VALUES(6, 6.6);
4691
CREATE VIEW v1 AS SELECT * FROM t1;
4695
CREATE OR REPLACE VIEW v1 AS SELECT f1, f2 FROM t1;
4699
CREATE OR REPLACE VIEW v1 AS SELECT f1 AS my_f1, f2 AS my_f2 FROM t1;
4703
CREATE OR REPLACE VIEW v1 (my_f1, my_f2) AS SELECT f1, f2 FROM t1;
4707
CREATE OR REPLACE VIEW v1 (my_f1, my_f2) AS SELECT t1.f1, t2.f2 FROM t1, t2;
4711
SELECT f1, f2 AS f1 FROM t1;
4714
CREATE OR REPLACE VIEW v1 AS SELECT f1, f2 AS f1 FROM t1;
4715
ERROR 42S21: Duplicate column name 'f1'
4716
SELECT t1.f1, t2.f1 AS f1 FROM t1, t2;
4719
CREATE OR REPLACE VIEW v1 AS SELECT t1.f1, t2.f1 AS f1 FROM t1, t2;
4720
ERROR 42S21: Duplicate column name 'f1'
4721
CREATE OR REPLACE VIEW v1 (my_col, my_col) AS SELECT * FROM t1;
4722
ERROR 42S21: Duplicate column name 'my_col'
4725
--------------------------------------------------------------------------------
4726
DROP TABLE IF EXISTS t1;
4727
CREATE TABLE t1( f1 BIGINT, f2 DECIMAL(5,2));
4728
CREATE OR REPLACE VIEW v1 (my_f1, my_f2) AS SELECT * FROM t1;
4729
CREATE OR REPLACE VIEW v1 (my_f1, my_f2) AS SELECT f1, f2 FROM t1;
4730
CREATE OR REPLACE VIEW v1 (my_f1 ) AS SELECT * FROM t1;
4731
ERROR HY000: View's SELECT and view's field list have different column counts
4732
CREATE OR REPLACE VIEW v1 (my_f1 ) AS SELECT f1, f2 FROM t1;
4733
ERROR HY000: View's SELECT and view's field list have different column counts
4734
CREATE OR REPLACE VIEW v1 (my_f1, my_f2, my_f3) AS SELECT * FROM t1;
4735
ERROR HY000: View's SELECT and view's field list have different column counts
4736
CREATE OR REPLACE VIEW v1 (my_f1, my_f2, my_f3) AS SELECT f1, f2 FROM t1;
4737
ERROR HY000: View's SELECT and view's field list have different column counts
4740
--------------------------------------------------------------------------------
4741
DROP VIEW IF EXISTS v1;
4742
CREATE VIEW test.v1( F59, F60 ) AS SELECT F59, F60 From tb2;
4743
SELECT * FROM test.v1 order by F59, F60 desc LIMIT 2;
4747
Drop view if exists test.v1 ;
4750
--------------------------------------------------------------------------------
4751
DROP VIEW IF EXISTS v1;
4752
CREATE VIEW test.v1( product ) AS SELECT f59*f60 From tb2 WHERE f59 < 3;
4753
SELECT * FROM test.v1;
4757
CREATE OR REPLACE VIEW test.v1( product ) AS SELECT 1*2;
4758
SELECT * FROM test.v1;
4761
CREATE OR REPLACE VIEW test.v1( product ) AS SELECT USER();
4762
SELECT * FROM test.v1;
4765
Drop view if exists test.v1 ;
4767
Testcase 3.3.1.23 + 3.3.1.24
4768
--------------------------------------------------------------------------------
4770
DROP TABLE IF EXISTS t1;
4771
DROP VIEW IF EXISTS v1;
4772
DROP VIEW IF EXISTS v2;
4773
CREATE VIEW test.v2 AS SELECT * FROM test.t1;
4774
ERROR 42S02: Table 'test.t1' doesn't exist
4775
CREATE VIEW v2 AS Select * from test.v1;
4776
ERROR 42S02: Table 'test.v1' doesn't exist
4777
DROP VIEW IF EXISTS v2;
4779
Note 1051 Unknown table 'test.v2'
4782
--------------------------------------------------------------------------------
4783
DROP TABLE IF EXISTS t1_temp;
4784
DROP TABLE IF EXISTS t2_temp;
4785
DROP VIEW IF EXISTS v1;
4786
Create table t1_temp(f59 char(10),f60 int) ;
4787
Create temporary table t1_temp(f59 char(10),f60 int) ;
4788
Insert into t1_temp values('FER',90);
4789
Insert into t1_temp values('CAR',27);
4790
Create view v1 as select * from t1_temp ;
4791
ERROR HY000: View's SELECT refers to a temporary table 't1_temp'
4792
Create temporary table t2_temp(f59 char(10),f60 int) ;
4793
Insert into t2_temp values('AAA',11);
4794
Insert into t2_temp values('BBB',22);
4795
Create or replace view v1
4796
as select t1_temp.f59,t2_temp.f59 from t1_temp,t2_temp ;
4797
ERROR HY000: View's SELECT refers to a temporary table 't1_temp'
4798
DROP temporary table t1_temp;
4800
DROP temporary table t2_temp;
4801
DROP TABLE IF EXISTS t1;
4802
DROP VIEW IF EXISTS v1;
4803
CREATE TABLE t1 (f1 char(10));
4804
CREATE TEMPORARY TABLE t2 (f2 char(10));
4805
INSERT INTO t1 VALUES('t1');
4806
INSERT INTO t1 VALUES('A');
4807
INSERT INTO t2 VALUES('t2');
4808
INSERT INTO t2 VALUES('B');
4809
CREATE OR REPLACE VIEW v1 AS SELECT f2 FROM t2;
4810
ERROR HY000: View's SELECT refers to a temporary table 't2'
4811
CREATE OR REPLACE VIEW v1 AS SELECT * FROM t2, t1;
4812
ERROR HY000: View's SELECT refers to a temporary table 't2'
4813
CREATE OR REPLACE VIEW v1 AS SELECT f2, f1 FROM t2, t1;
4814
ERROR HY000: View's SELECT refers to a temporary table 't2'
4815
CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1, t2;
4816
ERROR HY000: View's SELECT refers to a temporary table 't2'
4817
CREATE OR REPLACE VIEW v1 AS SELECT f1, f2 FROM t1, t2;
4818
ERROR HY000: View's SELECT refers to a temporary table 't2'
4819
CREATE OR REPLACE VIEW v1 AS SELECT * FROM t2 UNION SELECT * FROM t1;
4820
ERROR HY000: View's SELECT refers to a temporary table 't2'
4821
CREATE OR REPLACE VIEW v1 AS SELECT f2 FROM t2 UNION SELECT f1 FROM t1;
4822
ERROR HY000: View's SELECT refers to a temporary table 't2'
4823
CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1 UNION SELECT * FROM t2;
4824
ERROR HY000: View's SELECT refers to a temporary table 't2'
4825
CREATE OR REPLACE VIEW v1 AS SELECT f1 FROM t1 UNION SELECT f2 FROM t2;
4826
ERROR HY000: View's SELECT refers to a temporary table 't2'
4827
CREATE OR REPLACE VIEW v1 AS SELECT 1 FROM t2
4828
WHERE f2 = ( SELECT f1 FROM t1 );
4829
ERROR HY000: View's SELECT refers to a temporary table 't2'
4830
CREATE OR REPLACE VIEW v1 AS SELECT 1 FROM t1
4831
WHERE f1 = ( SELECT f2 FROM t2 );
4832
ERROR HY000: View's SELECT refers to a temporary table 't2'
4834
DROP TEMPORARY TABLE t2;
4837
--------------------------------------------------------------------------------
4838
DROP VIEW IF EXISTS v1;
4839
Create view test.v1 AS Select * from test.tb2;
4840
Select * from test.v1;
4841
f59 f60 f61 f62 f63 f64 f65 f66 f67 f68 f69 f70 f71 f72 f73 f74 f75 f76 f77 f78 f79 f80 f81 f82 f83 f84 f85 f86 f87 f88 f89 f90 f91 f92 f93 f94 f95 f96 f97 f98 f99 f100 f101 f102 f103 f104 f105 f106 f107 f108 f109 f110 f111 f112 f113 f114 f115 f116 f117
4842
1 1 0000000001 0000000000000000000000000000000000000000000000000000000000000001 0000000001 0000000000000000000000000000000000000000000000000000000000000001 -5 0.000000000000000000000000000000 1 0.000000000000000000000000000000 0000000001 000000000000000000000000000000000.000000000000000000000000000000 0000000001 000000000000000000000000000000000.000000000000000000000000000000 -1.17549435e-38 1.175494352e-38 00000001.175494352e-38 00000001.175494352e-38 -1.17549435e-38 1.175494352e-38 00000001.175494352e-38 00000001.175494352e-38 -1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.17549e-38 1.17549e-38 1.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 01.17549e-38 -1.17549e-38 -1.17549435e-38 1.17549e-38 1.175494352e-38 01.17549e-38 00000001.175494352e-38 01.17549e-38 00000001.175494352e-38 1000-01-01 838:59:58 1970-01-02 00:00:01 1970-01-02 00:00:01 1902 1902 1902 2enum 2set
4846
--------------------------------------------------------------------------------
4847
DROP VIEW IF EXISTS test.v1;
4848
Drop VIEW IF EXISTS test.v1_1 ;
4849
Create view test.v1 AS Select * from test.tb2;
4850
Create view test.v1_1 AS Select F59 from test.v1 ;
4851
Select * from test.v1_1 order by F59 limit 2;
4856
Drop view test.v1_1 ;
4859
--------------------------------------------------------------------------------
4860
Drop database if exists test2 ;
4861
create database test2 ;
4862
Create view test2.v2 AS Select * from test.tb2 limit 50,50;
4864
Create view v1 AS Select * from test.tb2 limit 50 ;
4865
Select * from v1 order by f59,f60,f61,f62,f63,f64,f65;
4869
f62 0000000000000000000000000000000000000000000000000000000000000001
4871
f64 0000000000000000000000000000000000000000000000000000000000000001
4873
f66 0.000000000000000000000000000000
4875
f68 0.000000000000000000000000000000
4877
f70 000000000000000000000000000000000.000000000000000000000000000000
4879
f72 000000000000000000000000000000000.000000000000000000000000000000
4882
f75 00000001.175494352e-38
4883
f76 00000001.175494352e-38
4886
f79 00000001.175494352e-38
4887
f80 00000001.175494352e-38
4905
f98 00000001.175494352e-38
4907
f100 00000001.175494352e-38
4910
f103 1970-01-02 00:00:01
4911
f104 1970-01-02 00:00:01
4920
f113 $@$@$@$@@@@@@@@@@@
4921
f114 $@$@$@$@@@@@@@@@@@
4924
f117 $@$@$@$@@@@@@@@@@@
4928
f62 0000000000000000000000000000000000000000000000000000000000000002
4930
f64 0000000000000000000000000000000000000000000000000000000000000002
4932
f66 1.100000000000000000000000000000
4934
f68 1.100000000000000000000000000000
4936
f70 000000000000000000000000000000001.100000000000000000000000000000
4938
f72 000000000000000000000000000000001.100000000000000000000000000000
4939
f73 -1.175494349e-38
4941
f75 00000001.175494353e-38
4942
f76 00000001.175494353e-38
4943
f77 -1.175494349e-38
4945
f79 00000001.175494353e-38
4946
f80 00000001.175494353e-38
4960
f94 -1.175494349e-38
4964
f98 00000001.175494353e-38
4966
f100 00000001.175494353e-38
4969
f103 1970-01-03 00:00:02
4970
f104 1970-01-03 00:00:02
4979
f113 ��4@�4@4@�4@��@@ @@ @ @@ @@@
4980
f114 ��4@�4@4@�4@��@@ @@ @ @@ @@@
4983
f117 ��4@�4@4@�4@��@@ @@ @ @@ @@@
4987
f62 0000000000000000000000000000000000000000000000000000000000000003
4989
f64 0000000000000000000000000000000000000000000000000000000000000003
4991
f66 2.200000000000000000000000000000
4993
f68 2.200000000000000000000000000000
4995
f70 000000000000000000000000000000002.200000000000000000000000000000
4997
f72 000000000000000000000000000000002.200000000000000000000000000000
4998
f73 -1.175494348e-38
5000
f75 00000001.175494354e-38
5001
f76 00000001.175494354e-38
5002
f77 -1.175494348e-38
5004
f79 00000001.175494354e-38
5005
f80 00000001.175494354e-38
5019
f94 -1.175494348e-38
5023
f98 00000001.175494354e-38
5025
f100 00000001.175494354e-38
5028
f103 1970-01-04 00:00:03
5029
f104 1970-01-04 00:00:03
5038
f113 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
5039
f114 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
5042
f117 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
5046
f62 0000000000000000000000000000000000000000000000000000000000000004
5048
f64 0000000000000000000000000000000000000000000000000000000000000004
5050
f66 3.300000000000000000000000000000
5052
f68 3.300000000000000000000000000000
5054
f70 000000000000000000000000000000003.300000000000000000000000000000
5056
f72 000000000000000000000000000000003.300000000000000000000000000000
5057
f73 -1.175494347e-38
5059
f75 00000001.175494355e-38
5060
f76 00000001.175494355e-38
5061
f77 -1.175494347e-38
5063
f79 00000001.175494355e-38
5064
f80 00000001.175494355e-38
5078
f94 -1.175494347e-38
5082
f98 00000001.175494355e-38
5084
f100 00000001.175494355e-38
5087
f103 1970-01-05 00:00:04
5088
f104 1970-01-05 00:00:04
5097
f113 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
5098
f114 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
5122
f79 00000000000000000007.7
5123
f80 00000000000000000008.8
5141
f98 00000000000000000008.8
5143
f100 00000000000000000008.8
5146
f103 0002-02-02 00:00:00
5147
f104 2000-12-31 23:59:59
5164
f62 0000000000000000000000000000000000000000000000000000000000000005
5166
f64 0000000000000000000000000000000000000000000000000000000000000005
5168
f66 4.400000000000000000000000000000
5170
f68 4.400000000000000000000000000000
5172
f70 000000000000000000000000000000004.400000000000000000000000000000
5174
f72 000000000000000000000000000000004.400000000000000000000000000000
5175
f73 -1.175494346e-38
5177
f75 00000001.175494356e-38
5178
f76 00000001.175494356e-38
5179
f77 -1.175494346e-38
5181
f79 00000001.175494356e-38
5182
f80 00000001.175494356e-38
5196
f94 -1.175494346e-38
5200
f98 00000001.175494356e-38
5202
f100 00000001.175494356e-38
5205
f103 1970-01-06 00:00:05
5206
f104 1970-01-06 00:00:05
5215
f113 @@N@@N@N@@N@@@$@$@(@$@(@(@$@(@$@$@
5216
f114 @@N@@N@N@@N@@@$@$@(@$@(@(@$@(@$@$@
5219
f117 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
5223
f62 0000000000000000000000000000000000000000000000000000000000000006
5225
f64 0000000000000000000000000000000000000000000000000000000000000006
5227
f66 5.500000000000000000000000000000
5229
f68 5.500000000000000000000000000000
5231
f70 000000000000000000000000000000005.500000000000000000000000000000
5233
f72 000000000000000000000000000000005.500000000000000000000000000000
5234
f73 -1.175494345e-38
5236
f75 00000001.175494357e-38
5237
f76 00000001.175494357e-38
5238
f77 -1.175494345e-38
5240
f79 00000001.175494357e-38
5241
f80 00000001.175494357e-38
5255
f94 -1.175494345e-38
5259
f98 00000001.175494357e-38
5261
f100 00000001.175494357e-38
5264
f103 1970-01-07 00:00:06
5265
f104 1970-01-07 00:00:06
5274
f113 @@Q@@Q@Q@@Q@@@&@&@*@&@*@*@&@*@&@&@
5275
f114 @@Q@@Q@Q@@Q@@@&@&@*@&@*@*@&@*@&@&@
5278
f117 @@N@@N@N@@N@@@$@$@(@$@(@(@$@(@$@$@
5282
f62 0000000000000000000000000000000000000000000000000000000000000007
5284
f64 0000000000000000000000000000000000000000000000000000000000000007
5286
f66 6.600000000000000000000000000000
5288
f68 6.600000000000000000000000000000
5290
f70 000000000000000000000000000000006.600000000000000000000000000000
5292
f72 000000000000000000000000000000006.600000000000000000000000000000
5293
f73 -1.175494344e-38
5295
f75 00000001.175494358e-38
5296
f76 00000001.175494358e-38
5297
f77 -1.175494344e-38
5299
f79 00000001.175494358e-38
5300
f80 00000001.175494358e-38
5314
f94 -1.175494344e-38
5318
f98 00000001.175494358e-38
5320
f100 00000001.175494358e-38
5323
f103 1970-01-08 00:00:07
5324
f104 1970-01-08 00:00:07
5333
f113 $@$@$@$@@@@@@@@@@@
5334
f114 $@$@$@$@@@@@@@@@@@
5337
f117 $@$@$@$@@@@@@@@@@@
5341
f62 0000000000000000000000000000000000000000000000000000000000000008
5343
f64 0000000000000000000000000000000000000000000000000000000000000008
5345
f66 7.700000000000000000000000000000
5347
f68 7.700000000000000000000000000000
5349
f70 000000000000000000000000000000007.700000000000000000000000000000
5351
f72 000000000000000000000000000000007.700000000000000000000000000000
5352
f73 -1.175494343e-38
5354
f75 00000001.175494359e-38
5355
f76 00000001.175494359e-38
5356
f77 -1.175494343e-38
5358
f79 00000001.175494359e-38
5359
f80 00000001.175494359e-38
5373
f94 -1.175494343e-38
5377
f98 00000001.175494359e-38
5379
f100 00000001.175494359e-38
5382
f103 1970-01-09 00:00:08
5383
f104 1970-01-09 00:00:08
5392
f113 ��4@�4@4@�4@��@@ @@ @ @@ @@@
5393
f114 ��4@�4@4@�4@��@@ @@ @ @@ @@@
5396
f117 ��4@�4@4@�4@��@@ @@ @ @@ @@@
5400
f62 0000000000000000000000000000000000000000000000000000000000000009
5402
f64 0000000000000000000000000000000000000000000000000000000000000009
5404
f66 8.800000000000000000000000000000
5406
f68 8.800000000000000000000000000000
5408
f70 000000000000000000000000000000008.800000000000000000000000000000
5410
f72 000000000000000000000000000000008.800000000000000000000000000000
5411
f73 -1.175494342e-38
5413
f75 000000001.17549436e-38
5414
f76 000000001.17549436e-38
5415
f77 -1.175494342e-38
5417
f79 000000001.17549436e-38
5418
f80 000000001.17549436e-38
5432
f94 -1.175494342e-38
5436
f98 000000001.17549436e-38
5438
f100 000000001.17549436e-38
5441
f103 1970-01-10 00:00:09
5442
f104 1970-01-10 00:00:09
5451
f113 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
5452
f114 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
5455
f117 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
5459
f62 0000000000000000000000000000000000000000000000000000000000000010
5461
f64 0000000000000000000000000000000000000000000000000000000000000010
5463
f66 9.900000000000000000000000000000
5465
f68 9.900000000000000000000000000000
5467
f70 000000000000000000000000000000009.900000000000000000000000000000
5469
f72 000000000000000000000000000000009.900000000000000000000000000000
5470
f73 -1.175494341e-38
5472
f75 00000001.175494361e-38
5473
f76 00000001.175494361e-38
5474
f77 -1.175494341e-38
5476
f79 00000001.175494361e-38
5477
f80 00000001.175494361e-38
5491
f94 -1.175494341e-38
5495
f98 00000001.175494361e-38
5497
f100 00000001.175494361e-38
5500
f103 1970-01-11 00:00:10
5501
f104 1970-01-11 00:00:10
5510
f113 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
5511
f114 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
5535
f79 00000000000000000007.7
5536
f80 00000000000000000008.8
5554
f98 00000000000000000008.8
5556
f100 00000000000000000008.8
5559
f103 0002-02-02 00:00:00
5560
f104 2000-12-31 23:59:59
5594
f79 00000000000000000007.7
5595
f80 00000000000000000008.8
5613
f98 00000000000000000008.8
5615
f100 00000000000000000008.8
5618
f103 0002-02-02 00:00:00
5619
f104 2000-12-31 23:59:59
5653
f79 00000000000000000007.7
5654
f80 00000000000000000008.8
5672
f98 00000000000000000008.8
5674
f100 00000000000000000008.8
5677
f103 0002-02-02 00:00:00
5678
f104 2000-12-31 23:59:59
5712
f79 00000000000000000007.7
5713
f80 00000000000000000008.8
5731
f98 00000000000000000008.8
5733
f100 00000000000000000008.8
5736
f103 0002-02-02 00:00:00
5737
f104 2000-12-31 23:59:59
5771
f79 00000000000000000007.7
5772
f80 00000000000000000008.8
5790
f98 00000000000000000008.8
5792
f100 00000000000000000008.8
5795
f103 0002-02-02 00:00:00
5796
f104 2000-12-31 23:59:59
5830
f79 00000000000000000007.7
5831
f80 00000000000000000008.8
5849
f98 00000000000000000008.8
5851
f100 00000000000000000008.8
5854
f103 0002-02-02 00:00:00
5855
f104 2000-12-31 23:59:59
5889
f79 00000000000000000007.7
5890
f80 00000000000000000008.8
5908
f98 00000000000000000008.8
5910
f100 00000000000000000008.8
5913
f103 0002-02-02 00:00:00
5914
f104 2000-12-31 23:59:59
5948
f79 00000000000000000007.7
5949
f80 00000000000000000008.8
5967
f98 00000000000000000008.8
5969
f100 00000000000000000008.8
5972
f103 0002-02-02 00:00:00
5973
f104 2000-12-31 23:59:59
6007
f79 00000000000000000007.7
6008
f80 00000000000000000008.8
6026
f98 00000000000000000008.8
6028
f100 00000000000000000008.8
6031
f103 0002-02-02 00:00:00
6032
f104 2000-12-31 23:59:59
6066
f79 00000000000000000007.7
6067
f80 00000000000000000008.8
6085
f98 00000000000000000008.8
6087
f100 00000000000000000008.8
6090
f103 0002-02-02 00:00:00
6091
f104 2000-12-31 23:59:59
6125
f79 00000000000000000007.7
6126
f80 00000000000000000008.8
6144
f98 00000000000000000008.8
6146
f100 00000000000000000008.8
6149
f103 0002-02-02 00:00:00
6150
f104 2000-12-31 23:59:59
6184
f79 00000000000000000007.7
6185
f80 00000000000000000008.8
6203
f98 00000000000000000008.8
6205
f100 00000000000000000008.8
6208
f103 0002-02-02 00:00:00
6209
f104 2000-12-31 23:59:59
6243
f79 00000000000000000007.7
6244
f80 00000000000000000008.8
6262
f98 00000000000000000008.8
6264
f100 00000000000000000008.8
6267
f103 0002-02-02 00:00:00
6268
f104 2000-12-31 23:59:59
6302
f79 00000000000000000007.7
6303
f80 00000000000000000008.8
6321
f98 00000000000000000008.8
6323
f100 00000000000000000008.8
6326
f103 0002-02-02 00:00:00
6327
f104 2000-12-31 23:59:59
6361
f79 00000000000000000007.7
6362
f80 00000000000000000008.8
6380
f98 00000000000000000008.8
6382
f100 00000000000000000008.8
6385
f103 0002-02-02 00:00:00
6386
f104 2000-12-31 23:59:59
6420
f79 00000000000000000007.7
6421
f80 00000000000000000008.8
6439
f98 00000000000000000008.8
6441
f100 00000000000000000008.8
6444
f103 0002-02-02 00:00:00
6445
f104 2000-12-31 23:59:59
6479
f79 00000000000000000007.7
6480
f80 00000000000000000008.8
6498
f98 00000000000000000008.8
6500
f100 00000000000000000008.8
6503
f103 0002-02-02 00:00:00
6504
f104 2000-12-31 23:59:59
6538
f79 00000000000000000007.7
6539
f80 00000000000000000008.8
6557
f98 00000000000000000008.8
6559
f100 00000000000000000008.8
6562
f103 0002-02-02 00:00:00
6563
f104 2000-12-31 23:59:59
6597
f79 00000000000000000007.7
6598
f80 00000000000000000008.8
6616
f98 00000000000000000008.8
6618
f100 00000000000000000008.8
6621
f103 0002-02-02 00:00:00
6622
f104 2000-12-31 23:59:59
6656
f79 00000000000000000007.7
6657
f80 00000000000000000008.8
6675
f98 00000000000000000008.8
6677
f100 00000000000000000008.8
6680
f103 0002-02-02 00:00:00
6681
f104 2000-12-31 23:59:59
6715
f79 00000000000000000007.7
6716
f80 00000000000000000008.8
6734
f98 00000000000000000008.8
6736
f100 00000000000000000008.8
6739
f103 0002-02-02 00:00:00
6740
f104 2000-12-31 23:59:59
6774
f79 00000000000000000007.7
6775
f80 00000000000000000008.8
6793
f98 00000000000000000008.8
6795
f100 00000000000000000008.8
6798
f103 0002-02-02 00:00:00
6799
f104 2000-12-31 23:59:59
6833
f79 00000000000000000007.7
6834
f80 00000000000000000008.8
6852
f98 00000000000000000008.8
6854
f100 00000000000000000008.8
6857
f103 0002-02-02 00:00:00
6858
f104 2000-12-31 23:59:59
6892
f79 00000000000000000007.7
6893
f80 00000000000000000008.8
6911
f98 00000000000000000008.8
6913
f100 00000000000000000008.8
6916
f103 0002-02-02 00:00:00
6917
f104 2000-12-31 23:59:59
6951
f79 00000000000000000007.7
6952
f80 00000000000000000008.8
6970
f98 00000000000000000008.8
6972
f100 00000000000000000008.8
6975
f103 0002-02-02 00:00:00
6976
f104 2000-12-31 23:59:59
7010
f79 00000000000000000007.7
7011
f80 00000000000000000008.8
7029
f98 00000000000000000008.8
7031
f100 00000000000000000008.8
7034
f103 0002-02-02 00:00:00
7035
f104 2000-12-31 23:59:59
7069
f79 00000000000000000007.7
7070
f80 00000000000000000008.8
7088
f98 00000000000000000008.8
7090
f100 00000000000000000008.8
7093
f103 0002-02-02 00:00:00
7094
f104 2000-12-31 23:59:59
7128
f79 00000000000000000007.7
7129
f80 00000000000000000008.8
7147
f98 00000000000000000008.8
7149
f100 00000000000000000008.8
7152
f103 0002-02-02 00:00:00
7153
f104 2000-12-31 23:59:59
7187
f79 00000000000000000007.7
7188
f80 00000000000000000008.8
7206
f98 00000000000000000008.8
7208
f100 00000000000000000008.8
7211
f103 0002-02-02 00:00:00
7212
f104 2000-12-31 23:59:59
7246
f79 00000000000000000007.7
7247
f80 00000000000000000008.8
7265
f98 00000000000000000008.8
7267
f100 00000000000000000008.8
7270
f103 0002-02-02 00:00:00
7271
f104 2000-12-31 23:59:59
7305
f79 00000000000000000007.7
7306
f80 00000000000000000008.8
7324
f98 00000000000000000008.8
7326
f100 00000000000000000008.8
7329
f103 0002-02-02 00:00:00
7330
f104 2000-12-31 23:59:59
7364
f79 00000000000000000007.7
7365
f80 00000000000000000008.8
7383
f98 00000000000000000008.8
7385
f100 00000000000000000008.8
7388
f103 0002-02-02 00:00:00
7389
f104 2000-12-31 23:59:59
7423
f79 00000000000000000007.7
7424
f80 00000000000000000008.8
7442
f98 00000000000000000008.8
7444
f100 00000000000000000008.8
7447
f103 0002-02-02 00:00:00
7448
f104 2000-12-31 23:59:59
7482
f79 00000000000000000007.7
7483
f80 00000000000000000008.8
7501
f98 00000000000000000008.8
7503
f100 00000000000000000008.8
7506
f103 0002-02-02 00:00:00
7507
f104 2000-12-31 23:59:59
7541
f79 00000000000000000007.7
7542
f80 00000000000000000008.8
7560
f98 00000000000000000008.8
7562
f100 00000000000000000008.8
7565
f103 0002-02-02 00:00:00
7566
f104 2000-12-31 23:59:59
7600
f79 00000000000000000007.7
7601
f80 00000000000000000008.8
7619
f98 00000000000000000008.8
7621
f100 00000000000000000008.8
7624
f103 0002-02-02 00:00:00
7625
f104 2000-12-31 23:59:59
7659
f79 00000000000000000007.7
7660
f80 00000000000000000008.8
7678
f98 00000000000000000008.8
7680
f100 00000000000000000008.8
7683
f103 0002-02-02 00:00:00
7684
f104 2000-12-31 23:59:59
7718
f79 00000000000000000007.7
7719
f80 00000000000000000008.8
7737
f98 00000000000000000008.8
7739
f100 00000000000000000008.8
7742
f103 0002-02-02 00:00:00
7743
f104 2000-12-31 23:59:59
7777
f79 00000000000000000007.7
7778
f80 00000000000000000008.8
7796
f98 00000000000000000008.8
7798
f100 00000000000000000008.8
7801
f103 0002-02-02 00:00:00
7802
f104 2000-12-31 23:59:59
7816
Select * from test2.v2 ;
7817
f59 f60 f61 f62 f63 f64 f65 f66 f67 f68 f69 f70 f71 f72 f73 f74 f75 f76 f77 f78 f79 f80 f81 f82 f83 f84 f85 f86 f87 f88 f89 f90 f91 f92 f93 f94 f95 f96 f97 f98 f99 f100 f101 f102 f103 f104 f105 f106 f107 f108 f109 f110 f111 f112 f113 f114 f115 f116 f117
7818
Drop view if exists test2.v1 ;
7819
Drop view if exists test2.v2 ;
7820
Drop database test2 ;
7823
--------------------------------------------------------------------------------
7824
Drop database if exists test2 ;
7825
Drop view if exists test.v1 ;
7826
create database test2 ;
7828
Create view test.v1 AS Select * from test.tb2 limit 50 ;
7829
Create view test2.v2 AS Select F59 from test.v1 ;
7830
Drop view if exists test.v1 ;
7831
Drop view if exists test2.v2 ;
7834
--------------------------------------------------------------------------------
7835
Drop table if exists test.t1 ;
7836
CREATE TABLE test.t1 ( f59 int, f60 int );
7837
INSERT INTO test.t1 VALUES( 34, 654 );
7838
INSERT INTO test.t1 VALUES( 906, 434 );
7839
INSERT INTO test.t1 VALUES( 445, 765 );
7840
Create or replace view test.v1
7841
AS SELECT test.t1.F59, test.tb2.F60
7842
FROM test.tb2 JOIN test.t1 ON test.tb2.F59 = test.t1.F59 ;
7843
Select * from test.v1;
7849
--------------------------------------------------------------------------------
7850
Drop table if exists test.t1 ;
7851
Drop database if exists test2 ;
7852
Drop view if exists test.v1 ;
7853
create database test2 ;
7855
CREATE TABLE t1 ( f59 int, f60 int );
7856
INSERT INTO t1 VALUES( 34, 654 );
7857
INSERT INTO t1 VALUES( 906, 434 );
7858
INSERT INTO t1 VALUES( 445, 765 );
7859
CREATE VIEW test2.v1
7860
AS SELECT test.tb2.F59, test.tb2.F60
7861
FROM test.tb2 INNER JOIN test2.t1 ON tb2.f59 = t1.f59;
7862
Select * from test2.v1;
7868
--------------------------------------------------------------------------------
7869
Drop view if exists test.v1_firstview ;
7870
Drop view if exists test.v1_secondview ;
7871
Drop view if exists test.v1 ;
7872
CREATE VIEW test.v1_firstview AS SELECT * FROM test.tb2;
7873
CREATE VIEW test.v1_secondview AS SELECT * FROM test.tb2;
7875
AS SELECT test.v1_firstview.f59, test.v1_firstview.f60
7876
FROM test.v1_firstview INNER JOIN test.v1_secondview
7877
ON test.v1_firstview.f59 = test.v1_secondview.f59 ;
7878
SELECT * FROM test.v1 order by f59,f60 limit 0,10;
7890
Drop view if exists test.v1_firstview ;
7891
Drop view if exists test.v1_secondview ;
7892
Drop view if exists test.v1 ;
7895
--------------------------------------------------------------------------------
7896
Drop database if exists test2 ;
7897
Drop view if exists test.v1_firstview ;
7898
Drop view if exists test.v1_secondview ;
7899
create database test2 ;
7901
CREATE VIEW test.v1_firstview AS SELECT * FROM test.tb2 ;
7902
CREATE VIEW test.v1_secondview AS SELECT * FROM test.tb2 ;
7904
AS SELECT test.v1_firstview.F59, test.v1_firstview.F60
7905
FROM test.v1_firstview INNER JOIN test.v1_secondview
7906
ON test.v1_firstview.f59 = test.v1_secondview.f59 ;
7907
SELECT * FROM v1 order by f59,f60 limit 0,10;
7920
Drop view test.v1_firstview ;
7921
Drop view test.v1_secondview ;
7924
--------------------------------------------------------------------------------
7926
Drop view if exists test.v1;
7927
Drop view if exists test.v1_firstview;
7928
CREATE VIEW test.v1_firstview AS SELECT * FROM test.tb2;
7930
AS SELECT test.v1_firstview.f59, test.v1_firstview.f60
7931
FROM test.v1_firstview INNER JOIN test.tb2
7932
ON test.v1_firstview.f59 = test.tb2.f59;
7933
SELECT * FROM test.v1 order by f59,f60 limit 0,10;
7946
Drop view test.v1_firstview;
7949
--------------------------------------------------------------------------------
7950
Drop database if exists test2 ;
7951
create database test2 ;
7953
CREATE VIEW v1_firstview AS SELECT * FROM test.tb2 ;
7955
AS SELECT v1_firstview.f59, v1_firstview.f60
7956
FROM v1_firstview INNER JOIN test.tb2 ON v1_firstview.f59 = test.tb2.f59 ;
7957
SELECT * FROM v1 order by f59,f60 limit 0,10;
7969
Drop database test2 ;
7972
--------------------------------------------------------------------------------
7974
Drop table if exists t1;
7975
Drop view if exists test.v1 ;
7976
Drop view if exists test.v1_1 ;
7977
Drop view if exists test.v1_1 ;
7978
Drop view if exists test.v1_main ;
7979
Create view test.v1 as Select f59, f60 FROM test.tb2;
7980
Select * from test.v1 order by f59,f60 limit 0,10;
7992
Create table t1(f59 int, f60 int);
7993
Insert into t1 values (90,507) ;
7994
Create view v1_1 as Select f59,f60 from t1 ;
7995
Select * from v1_1 ;
7999
as SELECT test.tb2.f59 FROM test.tb2 JOIN test.v1
8000
ON test.tb2.f59 = test.v1.f59;
8001
Select * from v1_main order by f59 limit 0,10;
8015
Drop view test.v1_1 ;
8016
Drop view test.v1_main ;
8018
Testcase 3.3.1.31 - 3.3.1.37 New Implementation
8019
--------------------------------------------------------------------------------
8021
DROP DATABASE IF EXISTS test2;
8022
DROP TABLE IF EXISTS t0,t1;
8023
DROP VIEW IF EXISTS t3,t4;
8024
CREATE DATABASE test2;
8025
CREATE TABLE test1.t0 (f1 VARCHAR(20));
8026
CREATE TABLE test1.t1 (f1 VARCHAR(20));
8027
CREATE TABLE test2.t0 (f1 VARCHAR(20));
8028
CREATE TABLE test2.t1 (f1 VARCHAR(20));
8029
CREATE VIEW test1.t2 AS SELECT * FROM test1.t0;
8030
CREATE VIEW test1.t3 AS SELECT * FROM test2.t0;
8031
CREATE VIEW test2.t2 AS SELECT * FROM test2.t0;
8032
CREATE VIEW test2.t3 AS SELECT * FROM test1.t0;
8033
INSERT INTO test1.t0 VALUES('test1.t0');
8034
INSERT INTO test1.t1 VALUES('test1.t1');
8035
INSERT INTO test2.t0 VALUES('test2.t0');
8036
INSERT INTO test2.t1 VALUES('test2.t1');
8037
CREATE OR REPLACE VIEW test.v1 AS
8038
SELECT ta.f1 AS col1,
8040
FROM test2.t3 ta, test2.t3 tb;
8041
SELECT * FROM test.v1;
8044
CREATE OR REPLACE VIEW test.v1 AS
8045
SELECT ta.f1 AS col1,
8047
FROM test2.t3 ta, test1.t3 tb;
8048
SELECT * FROM test.v1;
8051
CREATE OR REPLACE VIEW test.v1 AS
8052
SELECT ta.f1 AS col1,
8054
FROM test1.t3 ta, test2.t3 tb;
8055
SELECT * FROM test.v1;
8058
CREATE OR REPLACE VIEW test.v1 AS
8059
SELECT ta.f1 AS col1,
8061
FROM test1.t3 ta, test1.t3 tb;
8062
SELECT * FROM test.v1;
8065
CREATE OR REPLACE VIEW test.v1 AS
8066
SELECT ta.f1 AS col1,
8068
FROM test2.t3 ta, test2.t2 tb;
8069
SELECT * FROM test.v1;
8072
CREATE OR REPLACE VIEW test.v1 AS
8073
SELECT ta.f1 AS col1,
8075
FROM test2.t3 ta, test1.t2 tb;
8076
SELECT * FROM test.v1;
8079
CREATE OR REPLACE VIEW test.v1 AS
8080
SELECT ta.f1 AS col1,
8082
FROM test1.t3 ta, test2.t2 tb;
8083
SELECT * FROM test.v1;
8086
CREATE OR REPLACE VIEW test.v1 AS
8087
SELECT ta.f1 AS col1,
8089
FROM test1.t3 ta, test1.t2 tb;
8090
SELECT * FROM test.v1;
8093
CREATE OR REPLACE VIEW test.v1 AS
8094
SELECT ta.f1 AS col1,
8096
FROM test2.t3 ta, test2.t1 tb;
8097
SELECT * FROM test.v1;
8100
CREATE OR REPLACE VIEW test.v1 AS
8101
SELECT ta.f1 AS col1,
8103
FROM test2.t3 ta, test1.t1 tb;
8104
SELECT * FROM test.v1;
8107
CREATE OR REPLACE VIEW test.v1 AS
8108
SELECT ta.f1 AS col1,
8110
FROM test1.t3 ta, test2.t1 tb;
8111
SELECT * FROM test.v1;
8114
CREATE OR REPLACE VIEW test.v1 AS
8115
SELECT ta.f1 AS col1,
8117
FROM test1.t3 ta, test1.t1 tb;
8118
SELECT * FROM test.v1;
8121
CREATE OR REPLACE VIEW test.v1 AS
8122
SELECT ta.f1 AS col1,
8124
FROM test2.t2 ta, test2.t3 tb;
8125
SELECT * FROM test.v1;
8128
CREATE OR REPLACE VIEW test.v1 AS
8129
SELECT ta.f1 AS col1,
8131
FROM test2.t2 ta, test1.t3 tb;
8132
SELECT * FROM test.v1;
8135
CREATE OR REPLACE VIEW test.v1 AS
8136
SELECT ta.f1 AS col1,
8138
FROM test1.t2 ta, test2.t3 tb;
8139
SELECT * FROM test.v1;
8142
CREATE OR REPLACE VIEW test.v1 AS
8143
SELECT ta.f1 AS col1,
8145
FROM test1.t2 ta, test1.t3 tb;
8146
SELECT * FROM test.v1;
8149
CREATE OR REPLACE VIEW test.v1 AS
8150
SELECT ta.f1 AS col1,
8152
FROM test2.t2 ta, test2.t2 tb;
8153
SELECT * FROM test.v1;
8156
CREATE OR REPLACE VIEW test.v1 AS
8157
SELECT ta.f1 AS col1,
8159
FROM test2.t2 ta, test1.t2 tb;
8160
SELECT * FROM test.v1;
8163
CREATE OR REPLACE VIEW test.v1 AS
8164
SELECT ta.f1 AS col1,
8166
FROM test1.t2 ta, test2.t2 tb;
8167
SELECT * FROM test.v1;
8170
CREATE OR REPLACE VIEW test.v1 AS
8171
SELECT ta.f1 AS col1,
8173
FROM test1.t2 ta, test1.t2 tb;
8174
SELECT * FROM test.v1;
8177
CREATE OR REPLACE VIEW test.v1 AS
8178
SELECT ta.f1 AS col1,
8180
FROM test2.t2 ta, test2.t1 tb;
8181
SELECT * FROM test.v1;
8184
CREATE OR REPLACE VIEW test.v1 AS
8185
SELECT ta.f1 AS col1,
8187
FROM test2.t2 ta, test1.t1 tb;
8188
SELECT * FROM test.v1;
8191
CREATE OR REPLACE VIEW test.v1 AS
8192
SELECT ta.f1 AS col1,
8194
FROM test1.t2 ta, test2.t1 tb;
8195
SELECT * FROM test.v1;
8198
CREATE OR REPLACE VIEW test.v1 AS
8199
SELECT ta.f1 AS col1,
8201
FROM test1.t2 ta, test1.t1 tb;
8202
SELECT * FROM test.v1;
8205
CREATE OR REPLACE VIEW test.v1 AS
8206
SELECT ta.f1 AS col1,
8208
FROM test2.t1 ta, test2.t3 tb;
8209
SELECT * FROM test.v1;
8212
CREATE OR REPLACE VIEW test.v1 AS
8213
SELECT ta.f1 AS col1,
8215
FROM test2.t1 ta, test1.t3 tb;
8216
SELECT * FROM test.v1;
8219
CREATE OR REPLACE VIEW test.v1 AS
8220
SELECT ta.f1 AS col1,
8222
FROM test1.t1 ta, test2.t3 tb;
8223
SELECT * FROM test.v1;
8226
CREATE OR REPLACE VIEW test.v1 AS
8227
SELECT ta.f1 AS col1,
8229
FROM test1.t1 ta, test1.t3 tb;
8230
SELECT * FROM test.v1;
8233
CREATE OR REPLACE VIEW test.v1 AS
8234
SELECT ta.f1 AS col1,
8236
FROM test2.t1 ta, test2.t2 tb;
8237
SELECT * FROM test.v1;
8240
CREATE OR REPLACE VIEW test.v1 AS
8241
SELECT ta.f1 AS col1,
8243
FROM test2.t1 ta, test1.t2 tb;
8244
SELECT * FROM test.v1;
8247
CREATE OR REPLACE VIEW test.v1 AS
8248
SELECT ta.f1 AS col1,
8250
FROM test1.t1 ta, test2.t2 tb;
8251
SELECT * FROM test.v1;
8254
CREATE OR REPLACE VIEW test.v1 AS
8255
SELECT ta.f1 AS col1,
8257
FROM test1.t1 ta, test1.t2 tb;
8258
SELECT * FROM test.v1;
8261
CREATE OR REPLACE VIEW test.v1 AS
8262
SELECT ta.f1 AS col1,
8264
FROM test2.t1 ta, test2.t1 tb;
8265
SELECT * FROM test.v1;
8268
CREATE OR REPLACE VIEW test.v1 AS
8269
SELECT ta.f1 AS col1,
8271
FROM test2.t1 ta, test1.t1 tb;
8272
SELECT * FROM test.v1;
8275
CREATE OR REPLACE VIEW test.v1 AS
8276
SELECT ta.f1 AS col1,
8278
FROM test1.t1 ta, test2.t1 tb;
8279
SELECT * FROM test.v1;
8282
CREATE OR REPLACE VIEW test.v1 AS
8283
SELECT ta.f1 AS col1,
8285
FROM test1.t1 ta, test1.t1 tb;
8286
SELECT * FROM test.v1;
8291
--------------------------------------------------------------------------------
8292
Drop table if exists test1.t1 ;
8293
Drop view if exists test.v1 ;
8294
Drop view if exists test.v1_main;
8295
Drop view if exists test1.v1_1 ;
8296
Drop database if exists test3 ;
8297
Create view test.v1 as Select f59, f60 FROM test.tb2;
8298
Select * from test.v1 order by f59,f60 limit 20;
8320
Create table test1.t1 (f59 int,f60 int) ;
8321
Insert into test1.t1 values (199,507) ;
8322
Create view test1.v1_1 as Select f59,f60 from test1.t1 ;
8323
Select * from test1.v1_1 ;
8326
Create database test3 ;
8327
Create table test3.t1(f59 int,f60 int) ;
8328
Insert into test3.t1 values (1023,7670) ;
8329
Create view test3.v1_2 as Select f59,f60 from test3.t1 ;
8330
Select * from test3.v1_2 ;
8335
as SELECT test.tb2.f59 as f1, test1.v1_1.f59 as f2,
8336
test3.v1_2.f59 as f3
8337
FROM (test.tb2,test1.v1_1,test.v1) JOIN test3.v1_2
8338
ON (test.v1.f59 = test1.v1_1.f59) ;
8339
Select * from v1_main ;
8342
DROP VIEW test1.v1_1 ;
8343
DROP VIEW test.v1_main ;
8344
DROP DATABASE test3;
8347
--------------------------------------------------------------------------------
8348
Drop view if exists test.v1 ;
8350
AS Select f59 from (Select * FROM tb2 limit 20) tx ;
8351
ERROR HY000: View's SELECT contains a subquery in the FROM clause
8352
SELECT * FROM test.v1 order by f59 ;
8353
ERROR 42S02: Table 'test.v1' doesn't exist
8354
Drop view if exists test.v1 ;
8357
--------------------------------------------------------------------------------
8358
Drop view if exists test.v1 ;
8361
CREATE VIEW test.v1 AS SELECT @var1, @var2 ;
8362
ERROR HY000: View's SELECT contains a variable or parameter
8363
CREATE VIEW test.v1 AS SELECT @@global.sort_buffer_size;
8364
ERROR HY000: View's SELECT contains a variable or parameter
8365
Drop view if exists test.v1 ;
8368
--------------------------------------------------------------------------------
8369
Drop view if exists test.v1 ;
8370
Drop procedure if exists sp1 ;
8371
Create procedure sp1() DETERMINISTIC
8375
Create view test.v1 as SELECT * FROM tb2 WHERE f59 = x ;
8377
ERROR HY000: View's SELECT contains a variable or parameter
8379
ERROR 42000: PROCEDURE test.sp1 does not exist
8380
Drop view if exists test.v1 ;
8382
Note 1051 Unknown table 'test.v1'
8383
Drop procedure sp1 ;
8384
ERROR 42000: PROCEDURE test.sp1 does not exist
8387
--------------------------------------------------------------------------------
8388
Drop VIEW if exists test.v1 ;
8389
CREATE TEMPORARY VIEW test.v1 AS
8390
SELECT * FROM test.tb2 limit 2 ;
8391
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VIEW test.v1 AS
8392
SELECT * FROM test.tb2 limit 2' at line 1
8393
CREATE OR REPLACE TEMPORARY VIEW test.v1 AS
8394
SELECT * FROM test.tb2 limit 2 ;
8395
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TEMPORARY VIEW test.v1 AS
8396
SELECT * FROM test.tb2 limit 2' at line 1
8397
Drop view if exists test.v1 ;
8401
--------------------------------------------------------------------------------
8402
Drop view if exists test.v1 ;
8403
CREATE VIEW test.v1 AS SELECT f59,f60 FROM test.tb2;
8404
INSERT INTO test.v1 values(122,432);
8405
SELECT * FROM test.tb2 where f59 = 122 and f60 = 432 limit 0,20;
8426
f79 00000000000000000007.7
8427
f80 00000000000000000008.8
8445
f98 00000000000000000008.8
8447
f100 00000000000000000008.8
8450
f103 0002-02-02 00:00:00
8451
f104 2000-12-31 23:59:59
8465
UPDATE test.v1 SET f59 = 3000 WHERE test.v1.f59 = 122 ;
8466
SELECT * FROM test.tb2 where f59 = 3000 limit 0,20;
8487
f79 00000000000000000007.7
8488
f80 00000000000000000008.8
8506
f98 00000000000000000008.8
8508
f100 00000000000000000008.8
8511
f103 0002-02-02 00:00:00
8512
f104 2000-12-31 23:59:59
8527
where test.v1.f59 = 3000 and test.v1.f60 = 432;
8528
SELECT * FROM test.tb2 where f59 = 3000 and f60 = 432;
8529
f59 f60 f61 f62 f63 f64 f65 f66 f67 f68 f69 f70 f71 f72 f73 f74 f75 f76 f77 f78 f79 f80 f81 f82 f83 f84 f85 f86 f87 f88 f89 f90 f91 f92 f93 f94 f95 f96 f97 f98 f99 f100 f101 f102 f103 f104 f105 f106 f107 f108 f109 f110 f111 f112 f113 f114 f115 f116 f117
8533
--------------------------------------------------------------------------------
8534
Drop view if exists test.v1 ;
8535
CREATE VIEW test.v1 AS SELECT f59,f60 FROM test.tb2 limit 100;
8536
INSERT INTO test.v1 values(31, 32, 33) ;
8537
ERROR HY000: The target table v1 of the INSERT is not insertable-into
8541
--------------------------------------------------------------------------------
8542
Drop view if exists test.v1 ;
8543
CREATE VIEW test.v1 AS SELECT * FROM test.tb2 where f59 = 04;
8544
UPDATE test.v1 SET f59 = 30 where F59 = 04 ;
8546
info: Rows matched: 2 Changed: 2 Warnings: 0
8547
SELECT * FROM test.v1 where f59 = 30 order by f59;
8548
f59 f60 f61 f62 f63 f64 f65 f66 f67 f68 f69 f70 f71 f72 f73 f74 f75 f76 f77 f78 f79 f80 f81 f82 f83 f84 f85 f86 f87 f88 f89 f90 f91 f92 f93 f94 f95 f96 f97 f98 f99 f100 f101 f102 f103 f104 f105 f106 f107 f108 f109 f110 f111 f112 f113 f114 f115 f116 f117
8549
SELECT * FROM test.tb2 where f59 = 30 ;
8553
f62 0000000000000000000000000000000000000000000000000000000000000004
8555
f64 0000000000000000000000000000000000000000000000000000000000000004
8557
f66 3.300000000000000000000000000000
8559
f68 3.300000000000000000000000000000
8561
f70 000000000000000000000000000000003.300000000000000000000000000000
8563
f72 000000000000000000000000000000003.300000000000000000000000000000
8564
f73 -1.175494347e-38
8566
f75 00000001.175494355e-38
8567
f76 00000001.175494355e-38
8568
f77 -1.175494347e-38
8570
f79 00000001.175494355e-38
8571
f80 00000001.175494355e-38
8585
f94 -1.175494347e-38
8589
f98 00000001.175494355e-38
8591
f100 00000001.175494355e-38
8594
f103 1970-01-05 00:00:04
8595
f104 1970-01-05 00:00:04
8604
f113 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
8605
f114 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
8629
f79 00000000000000000007.7
8630
f80 00000000000000000008.8
8648
f98 00000000000000000008.8
8650
f100 00000000000000000008.8
8653
f103 0002-02-02 00:00:00
8654
f104 2000-12-31 23:59:59
8668
UPDATE tb2 SET f59 = 100 where f59 = 30 ;
8670
info: Rows matched: 2 Changed: 2 Warnings: 0
8671
SELECT * FROM tb2 where f59 = 100 ;
8675
f62 0000000000000000000000000000000000000000000000000000000000000004
8677
f64 0000000000000000000000000000000000000000000000000000000000000004
8679
f66 3.300000000000000000000000000000
8681
f68 3.300000000000000000000000000000
8683
f70 000000000000000000000000000000003.300000000000000000000000000000
8685
f72 000000000000000000000000000000003.300000000000000000000000000000
8686
f73 -1.175494347e-38
8688
f75 00000001.175494355e-38
8689
f76 00000001.175494355e-38
8690
f77 -1.175494347e-38
8692
f79 00000001.175494355e-38
8693
f80 00000001.175494355e-38
8707
f94 -1.175494347e-38
8711
f98 00000001.175494355e-38
8713
f100 00000001.175494355e-38
8716
f103 1970-01-05 00:00:04
8717
f104 1970-01-05 00:00:04
8726
f113 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
8727
f114 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
8751
f79 00000000000000000007.7
8752
f80 00000000000000000008.8
8770
f98 00000000000000000008.8
8772
f100 00000000000000000008.8
8775
f103 0002-02-02 00:00:00
8776
f104 2000-12-31 23:59:59
8790
SELECT * FROM test.v1 order by f59 ;
8791
f59 f60 f61 f62 f63 f64 f65 f66 f67 f68 f69 f70 f71 f72 f73 f74 f75 f76 f77 f78 f79 f80 f81 f82 f83 f84 f85 f86 f87 f88 f89 f90 f91 f92 f93 f94 f95 f96 f97 f98 f99 f100 f101 f102 f103 f104 f105 f106 f107 f108 f109 f110 f111 f112 f113 f114 f115 f116 f117
8792
drop view if exists test.v1 ;
8793
Drop TABLE IF EXISTS test.t1 ;
8794
Drop VIEW IF EXISTS test.v1 ;
8795
CREATE TABLE t1 (f1 BIGINT, f2 VARCHAR(20), PRIMARY KEY(f1))
8797
INSERT INTO t1 VALUES(1,'one');
8798
INSERT INTO t1 VALUES(2,'two');
8799
INSERT INTO t1 VALUES(3,'three');
8800
INSERT INTO t1 VALUES(5,'five');
8801
CREATE VIEW v1 AS SELECT * FROM t1 WHERE f1 BETWEEN 2 AND 4;
8802
SELECT COUNT(*) FROM v1 WHERE f1 = 2;
8805
SELECT COUNT(*) FROM v1 WHERE f1 = 4;
8808
SELECT COUNT(*) FROM v1 WHERE f1 = 5;
8811
SELECT COUNT(*) FROM v1 WHERE f1 = 10;
8814
INSERT INTO t1 VALUES(4,'four');
8815
DELETE FROM v1 WHERE f1 = 3;
8817
DELETE FROM v1 WHERE f1 = 5;
8819
SELECT * FROM t1 ORDER BY f1;
8825
SELECT * FROM v1 ORDER BY f1;
8829
INSERT INTO v1 VALUES(2,'two');
8830
ERROR 23000: Duplicate entry '2' for key 'PRIMARY'
8831
INSERT INTO v1 VALUES(3,'three');
8833
INSERT INTO v1 VALUES(6,'six');
8835
SELECT * FROM t1 ORDER BY f1;
8843
SELECT * FROM v1 ORDER BY f1;
8848
UPDATE v1 SET f1 = 2 WHERE f1 = 3;
8849
ERROR 23000: Duplicate entry '2' for key 'PRIMARY'
8850
UPDATE v1 SET f2 = 'number' WHERE f1 = 3;
8852
info: Rows matched: 1 Changed: 1 Warnings: 0
8853
UPDATE v1 SET f1 = 10 WHERE f1 = 3;
8855
info: Rows matched: 1 Changed: 1 Warnings: 0
8856
UPDATE v1 SET f2 = 'number' WHERE f1 = 1;
8860
--------------------------------------------------------------------------------
8861
Drop view if exists test.v1 ;
8862
CREATE VIEW test.v1 AS SELECT f59,f60
8863
FROM test.tb2 where f59 = 195 WITH CHECK OPTION ;
8864
UPDATE test.v1 SET f59 = 198 where f59=195 ;
8865
ERROR HY000: CHECK OPTION failed 'test.v1'
8866
SELECT * FROM test.v1 order by f59 ;
8869
drop view if exists test.v1 ;
8872
--------------------------------------------------------------------------------
8873
Drop view if exists test.v1 ;
8874
Drop view if exists test.v2 ;
8875
CREATE VIEW test.v1 AS SELECT f59,f60
8876
FROM test.tb2 where F59 = 0987 WITH LOCAL CHECK OPTION ;
8877
CREATE VIEW test.v2 as SELECT * FROM test.v1 ;
8878
UPDATE test.v1 SET F59 = 919 where f59 = 0987 ;
8879
ERROR HY000: CHECK OPTION failed 'test.v1'
8880
SELECT * FROM test.v1 order by f59 ;
8883
UPDATE test.v2 SET F59 = 9879 where f59 = 919 ;
8884
SELECT * FROM tb2 where f59 = 9879 ;
8885
f59 f60 f61 f62 f63 f64 f65 f66 f67 f68 f69 f70 f71 f72 f73 f74 f75 f76 f77 f78 f79 f80 f81 f82 f83 f84 f85 f86 f87 f88 f89 f90 f91 f92 f93 f94 f95 f96 f97 f98 f99 f100 f101 f102 f103 f104 f105 f106 f107 f108 f109 f110 f111 f112 f113 f114 f115 f116 f117
8886
drop view if exists v1 ;
8887
drop view if exists v2 ;
8890
--------------------------------------------------------------------------------
8891
DROP TABLE IF EXISTS test.t1;
8892
DROP VIEW IF EXISTS test.v1;
8893
CREATE TABLE t1 (f1 ENUM('A', 'B', 'C') NOT NULL, f2 INTEGER)
8895
INSERT INTO t1 VALUES ('A', 1);
8896
SELECT * FROM t1 order by f1, f2;
8899
CREATE VIEW v1 AS SELECT * FROM t1 WHERE f2 BETWEEN 1 AND 2
8900
WITH CASCADED CHECK OPTION ;
8901
SELECT * FROM v1 order by f1, f2;
8904
UPDATE v1 SET f2 = 2 WHERE f2 = 1;
8906
info: Rows matched: 1 Changed: 1 Warnings: 0
8907
INSERT INTO v1 VALUES('B',2);
8909
SELECT * FROM v1 order by f1, f2;
8913
UPDATE v1 SET f2 = 4;
8914
ERROR HY000: CHECK OPTION failed 'test.v1'
8915
INSERT INTO v1 VALUES('B',3);
8916
ERROR HY000: CHECK OPTION failed 'test.v1'
8917
SELECT * FROM v1 order by f1, f2;
8923
--------------------------------------------------------------------------------
8924
Drop table if exists test.t1 ;
8925
Drop view if exists test.v1 ;
8926
Drop view if exists test.v2 ;
8927
Drop view if exists test.v3 ;
8928
Create table test.t1 (f59 INT, f60 INT) ;
8929
Insert into test.t1 values (100,4234);
8930
Insert into test.t1 values (290,6624);
8931
Insert into test.t1 values (410,765);
8932
Insert into test.t1 values (300,433334);
8933
Insert into test.t1 values (800,9788);
8934
Insert into test.t1 values (501,9866);
8935
Create view test.v1 as select f59
8936
FROM test.t1 where f59<500 with check option ;
8937
Create view test.v2 as select *
8938
from test.v1 where f59>0 with local check option ;
8939
Create view test.v3 as select *
8940
from test.v1 where f59>0 with cascaded check option ;
8941
Insert into test.v2 values(23) ;
8942
Insert into test.v3 values(24) ;
8943
drop view if exists test.v1 ;
8944
drop view if exists test.v2 ;
8945
drop view if exists test.v3 ;
8948
--------------------------------------------------------------------------------
8950
DROP TABLE IF EXISTS test.t1 ;
8951
DROP TABLE IF EXISTS test.t1_results ;
8952
DROP VIEW IF EXISTS test.v1;
8953
DROP VIEW IF EXISTS test.v2;
8954
DROP VIEW IF EXISTS test.v3;
8955
CREATE TABLE t1 (f1 INTEGER, f2 CHAR(20));
8956
CREATE TABLE t1_results (v3_to_v1_options VARCHAR(100), statement VARCHAR(10),
8957
v3_to_v1_violation VARCHAR(20), errno CHAR(10));
8958
CREATE VIEW v1 AS SELECT f1, f2
8959
FROM t1 WHERE f1 BETWEEN 0 AND 10 WITH LOCAL CHECK OPTION ;
8960
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
8961
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH LOCAL CHECK OPTION ;
8962
option_variant WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION
8963
option_variant --------------------------------------------------------------------------------
8964
INSERT INTO t1 VALUES(16, 'sixteen');
8965
INSERT INTO t1 VALUES(0, 'zero');
8966
INSERT INTO t1 VALUES(7, 'seven');
8967
INSERT INTO t1 VALUES(8, 'eight');
8987
INSERT INTO t1 VALUES(16, 'sixteen');
8988
INSERT INTO t1 VALUES(0, 'zero');
8989
INSERT INTO t1 VALUES(7, 'seven');
8990
INSERT INTO t1 VALUES(8, 'eight');
8991
DELETE FROM v3 WHERE my_col1 = 16;
8993
DELETE FROM v3 WHERE my_col1 = 0;
8995
DELETE FROM v3 WHERE my_col1 = 7;
8997
DELETE FROM v3 WHERE my_col1 = 8;
9005
INSERT INTO t1 VALUES(16, 'sixteen');
9006
INSERT INTO t1 VALUES(0, 'zero');
9007
INSERT INTO t1 VALUES(7, 'seven');
9008
INSERT INTO t1 VALUES(8, 'eight');
9009
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
9011
info: Rows matched: 0 Changed: 0 Warnings: 0
9012
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
9014
info: Rows matched: 0 Changed: 0 Warnings: 0
9015
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
9017
info: Rows matched: 0 Changed: 0 Warnings: 0
9018
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
9020
info: Rows matched: 1 Changed: 1 Warnings: 0
9028
INSERT INTO t1 VALUES(8, 'eight');
9029
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
9030
ERROR HY000: CHECK OPTION failed 'test.v3'
9035
INSERT INTO t1 VALUES(8, 'eight');
9036
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
9038
info: Rows matched: 1 Changed: 1 Warnings: 0
9043
INSERT INTO t1 VALUES(8, 'eight');
9044
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
9046
info: Rows matched: 1 Changed: 1 Warnings: 0
9051
INSERT INTO t1 VALUES(8, 'eight');
9052
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
9054
info: Rows matched: 1 Changed: 1 Warnings: 0
9059
INSERT INTO v3 VALUES(16, 'sixteen');
9061
INSERT INTO v3 VALUES(0, 'zero');
9063
INSERT INTO v3 VALUES(7, 'seven');
9064
ERROR HY000: CHECK OPTION failed 'test.v3'
9065
INSERT INTO v3 VALUES(8, 'eight');
9074
option_variant WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION
9075
option_variant --------------------------------------------------------------------------------
9076
INSERT INTO t1 VALUES(16, 'sixteen');
9077
INSERT INTO t1 VALUES(0, 'zero');
9078
INSERT INTO t1 VALUES(7, 'seven');
9079
INSERT INTO t1 VALUES(8, 'eight');
9099
INSERT INTO t1 VALUES(16, 'sixteen');
9100
INSERT INTO t1 VALUES(0, 'zero');
9101
INSERT INTO t1 VALUES(7, 'seven');
9102
INSERT INTO t1 VALUES(8, 'eight');
9103
DELETE FROM v3 WHERE my_col1 = 16;
9105
DELETE FROM v3 WHERE my_col1 = 0;
9107
DELETE FROM v3 WHERE my_col1 = 7;
9109
DELETE FROM v3 WHERE my_col1 = 8;
9117
INSERT INTO t1 VALUES(16, 'sixteen');
9118
INSERT INTO t1 VALUES(0, 'zero');
9119
INSERT INTO t1 VALUES(7, 'seven');
9120
INSERT INTO t1 VALUES(8, 'eight');
9121
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
9123
info: Rows matched: 0 Changed: 0 Warnings: 0
9124
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
9126
info: Rows matched: 0 Changed: 0 Warnings: 0
9127
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
9129
info: Rows matched: 0 Changed: 0 Warnings: 0
9130
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
9132
info: Rows matched: 1 Changed: 1 Warnings: 0
9140
INSERT INTO t1 VALUES(8, 'eight');
9141
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
9142
ERROR HY000: CHECK OPTION failed 'test.v3'
9147
INSERT INTO t1 VALUES(8, 'eight');
9148
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
9149
ERROR HY000: CHECK OPTION failed 'test.v3'
9154
INSERT INTO t1 VALUES(8, 'eight');
9155
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
9156
ERROR HY000: CHECK OPTION failed 'test.v3'
9161
INSERT INTO t1 VALUES(8, 'eight');
9162
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
9164
info: Rows matched: 1 Changed: 1 Warnings: 0
9169
INSERT INTO v3 VALUES(16, 'sixteen');
9170
ERROR HY000: CHECK OPTION failed 'test.v3'
9171
INSERT INTO v3 VALUES(0, 'zero');
9172
ERROR HY000: CHECK OPTION failed 'test.v3'
9173
INSERT INTO v3 VALUES(7, 'seven');
9174
ERROR HY000: CHECK OPTION failed 'test.v3'
9175
INSERT INTO v3 VALUES(8, 'eight');
9182
option_variant WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION
9183
option_variant --------------------------------------------------------------------------------
9184
INSERT INTO t1 VALUES(16, 'sixteen');
9185
INSERT INTO t1 VALUES(0, 'zero');
9186
INSERT INTO t1 VALUES(7, 'seven');
9187
INSERT INTO t1 VALUES(8, 'eight');
9207
INSERT INTO t1 VALUES(16, 'sixteen');
9208
INSERT INTO t1 VALUES(0, 'zero');
9209
INSERT INTO t1 VALUES(7, 'seven');
9210
INSERT INTO t1 VALUES(8, 'eight');
9211
DELETE FROM v3 WHERE my_col1 = 16;
9213
DELETE FROM v3 WHERE my_col1 = 0;
9215
DELETE FROM v3 WHERE my_col1 = 7;
9217
DELETE FROM v3 WHERE my_col1 = 8;
9225
INSERT INTO t1 VALUES(16, 'sixteen');
9226
INSERT INTO t1 VALUES(0, 'zero');
9227
INSERT INTO t1 VALUES(7, 'seven');
9228
INSERT INTO t1 VALUES(8, 'eight');
9229
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
9231
info: Rows matched: 0 Changed: 0 Warnings: 0
9232
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
9234
info: Rows matched: 0 Changed: 0 Warnings: 0
9235
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
9237
info: Rows matched: 0 Changed: 0 Warnings: 0
9238
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
9240
info: Rows matched: 1 Changed: 1 Warnings: 0
9248
INSERT INTO t1 VALUES(8, 'eight');
9249
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
9250
ERROR HY000: CHECK OPTION failed 'test.v3'
9255
INSERT INTO t1 VALUES(8, 'eight');
9256
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
9257
ERROR HY000: CHECK OPTION failed 'test.v3'
9262
INSERT INTO t1 VALUES(8, 'eight');
9263
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
9264
ERROR HY000: CHECK OPTION failed 'test.v3'
9269
INSERT INTO t1 VALUES(8, 'eight');
9270
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
9272
info: Rows matched: 1 Changed: 1 Warnings: 0
9277
INSERT INTO v3 VALUES(16, 'sixteen');
9278
ERROR HY000: CHECK OPTION failed 'test.v3'
9279
INSERT INTO v3 VALUES(0, 'zero');
9280
ERROR HY000: CHECK OPTION failed 'test.v3'
9281
INSERT INTO v3 VALUES(7, 'seven');
9282
ERROR HY000: CHECK OPTION failed 'test.v3'
9283
INSERT INTO v3 VALUES(8, 'eight');
9290
option_variant <nothing> - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION
9291
option_variant --------------------------------------------------------------------------------
9292
INSERT INTO t1 VALUES(16, 'sixteen');
9293
INSERT INTO t1 VALUES(0, 'zero');
9294
INSERT INTO t1 VALUES(7, 'seven');
9295
INSERT INTO t1 VALUES(8, 'eight');
9315
INSERT INTO t1 VALUES(16, 'sixteen');
9316
INSERT INTO t1 VALUES(0, 'zero');
9317
INSERT INTO t1 VALUES(7, 'seven');
9318
INSERT INTO t1 VALUES(8, 'eight');
9319
DELETE FROM v3 WHERE my_col1 = 16;
9321
DELETE FROM v3 WHERE my_col1 = 0;
9323
DELETE FROM v3 WHERE my_col1 = 7;
9325
DELETE FROM v3 WHERE my_col1 = 8;
9333
INSERT INTO t1 VALUES(16, 'sixteen');
9334
INSERT INTO t1 VALUES(0, 'zero');
9335
INSERT INTO t1 VALUES(7, 'seven');
9336
INSERT INTO t1 VALUES(8, 'eight');
9337
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
9339
info: Rows matched: 0 Changed: 0 Warnings: 0
9340
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
9342
info: Rows matched: 0 Changed: 0 Warnings: 0
9343
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
9345
info: Rows matched: 0 Changed: 0 Warnings: 0
9346
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
9348
info: Rows matched: 1 Changed: 1 Warnings: 0
9356
INSERT INTO t1 VALUES(8, 'eight');
9357
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
9359
info: Rows matched: 1 Changed: 1 Warnings: 0
9364
INSERT INTO t1 VALUES(8, 'eight');
9365
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
9367
info: Rows matched: 1 Changed: 1 Warnings: 0
9372
INSERT INTO t1 VALUES(8, 'eight');
9373
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
9375
info: Rows matched: 1 Changed: 1 Warnings: 0
9380
INSERT INTO t1 VALUES(8, 'eight');
9381
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
9383
info: Rows matched: 1 Changed: 1 Warnings: 0
9388
INSERT INTO v3 VALUES(16, 'sixteen');
9390
INSERT INTO v3 VALUES(0, 'zero');
9392
INSERT INTO v3 VALUES(7, 'seven');
9394
INSERT INTO v3 VALUES(8, 'eight');
9405
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
9406
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH CASCADED CHECK OPTION ;
9407
option_variant WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION
9408
option_variant --------------------------------------------------------------------------------
9409
INSERT INTO t1 VALUES(16, 'sixteen');
9410
INSERT INTO t1 VALUES(0, 'zero');
9411
INSERT INTO t1 VALUES(7, 'seven');
9412
INSERT INTO t1 VALUES(8, 'eight');
9432
INSERT INTO t1 VALUES(16, 'sixteen');
9433
INSERT INTO t1 VALUES(0, 'zero');
9434
INSERT INTO t1 VALUES(7, 'seven');
9435
INSERT INTO t1 VALUES(8, 'eight');
9436
DELETE FROM v3 WHERE my_col1 = 16;
9438
DELETE FROM v3 WHERE my_col1 = 0;
9440
DELETE FROM v3 WHERE my_col1 = 7;
9442
DELETE FROM v3 WHERE my_col1 = 8;
9450
INSERT INTO t1 VALUES(16, 'sixteen');
9451
INSERT INTO t1 VALUES(0, 'zero');
9452
INSERT INTO t1 VALUES(7, 'seven');
9453
INSERT INTO t1 VALUES(8, 'eight');
9454
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
9456
info: Rows matched: 0 Changed: 0 Warnings: 0
9457
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
9459
info: Rows matched: 0 Changed: 0 Warnings: 0
9460
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
9462
info: Rows matched: 0 Changed: 0 Warnings: 0
9463
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
9465
info: Rows matched: 1 Changed: 1 Warnings: 0
9473
INSERT INTO t1 VALUES(8, 'eight');
9474
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
9475
ERROR HY000: CHECK OPTION failed 'test.v3'
9480
INSERT INTO t1 VALUES(8, 'eight');
9481
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
9483
info: Rows matched: 1 Changed: 1 Warnings: 0
9488
INSERT INTO t1 VALUES(8, 'eight');
9489
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
9491
info: Rows matched: 1 Changed: 1 Warnings: 0
9496
INSERT INTO t1 VALUES(8, 'eight');
9497
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
9499
info: Rows matched: 1 Changed: 1 Warnings: 0
9504
INSERT INTO v3 VALUES(16, 'sixteen');
9506
INSERT INTO v3 VALUES(0, 'zero');
9508
INSERT INTO v3 VALUES(7, 'seven');
9509
ERROR HY000: CHECK OPTION failed 'test.v3'
9510
INSERT INTO v3 VALUES(8, 'eight');
9519
option_variant WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION
9520
option_variant --------------------------------------------------------------------------------
9521
INSERT INTO t1 VALUES(16, 'sixteen');
9522
INSERT INTO t1 VALUES(0, 'zero');
9523
INSERT INTO t1 VALUES(7, 'seven');
9524
INSERT INTO t1 VALUES(8, 'eight');
9544
INSERT INTO t1 VALUES(16, 'sixteen');
9545
INSERT INTO t1 VALUES(0, 'zero');
9546
INSERT INTO t1 VALUES(7, 'seven');
9547
INSERT INTO t1 VALUES(8, 'eight');
9548
DELETE FROM v3 WHERE my_col1 = 16;
9550
DELETE FROM v3 WHERE my_col1 = 0;
9552
DELETE FROM v3 WHERE my_col1 = 7;
9554
DELETE FROM v3 WHERE my_col1 = 8;
9562
INSERT INTO t1 VALUES(16, 'sixteen');
9563
INSERT INTO t1 VALUES(0, 'zero');
9564
INSERT INTO t1 VALUES(7, 'seven');
9565
INSERT INTO t1 VALUES(8, 'eight');
9566
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
9568
info: Rows matched: 0 Changed: 0 Warnings: 0
9569
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
9571
info: Rows matched: 0 Changed: 0 Warnings: 0
9572
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
9574
info: Rows matched: 0 Changed: 0 Warnings: 0
9575
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
9577
info: Rows matched: 1 Changed: 1 Warnings: 0
9585
INSERT INTO t1 VALUES(8, 'eight');
9586
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
9587
ERROR HY000: CHECK OPTION failed 'test.v3'
9592
INSERT INTO t1 VALUES(8, 'eight');
9593
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
9594
ERROR HY000: CHECK OPTION failed 'test.v3'
9599
INSERT INTO t1 VALUES(8, 'eight');
9600
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
9601
ERROR HY000: CHECK OPTION failed 'test.v3'
9606
INSERT INTO t1 VALUES(8, 'eight');
9607
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
9609
info: Rows matched: 1 Changed: 1 Warnings: 0
9614
INSERT INTO v3 VALUES(16, 'sixteen');
9615
ERROR HY000: CHECK OPTION failed 'test.v3'
9616
INSERT INTO v3 VALUES(0, 'zero');
9617
ERROR HY000: CHECK OPTION failed 'test.v3'
9618
INSERT INTO v3 VALUES(7, 'seven');
9619
ERROR HY000: CHECK OPTION failed 'test.v3'
9620
INSERT INTO v3 VALUES(8, 'eight');
9627
option_variant WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION
9628
option_variant --------------------------------------------------------------------------------
9629
INSERT INTO t1 VALUES(16, 'sixteen');
9630
INSERT INTO t1 VALUES(0, 'zero');
9631
INSERT INTO t1 VALUES(7, 'seven');
9632
INSERT INTO t1 VALUES(8, 'eight');
9652
INSERT INTO t1 VALUES(16, 'sixteen');
9653
INSERT INTO t1 VALUES(0, 'zero');
9654
INSERT INTO t1 VALUES(7, 'seven');
9655
INSERT INTO t1 VALUES(8, 'eight');
9656
DELETE FROM v3 WHERE my_col1 = 16;
9658
DELETE FROM v3 WHERE my_col1 = 0;
9660
DELETE FROM v3 WHERE my_col1 = 7;
9662
DELETE FROM v3 WHERE my_col1 = 8;
9670
INSERT INTO t1 VALUES(16, 'sixteen');
9671
INSERT INTO t1 VALUES(0, 'zero');
9672
INSERT INTO t1 VALUES(7, 'seven');
9673
INSERT INTO t1 VALUES(8, 'eight');
9674
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
9676
info: Rows matched: 0 Changed: 0 Warnings: 0
9677
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
9679
info: Rows matched: 0 Changed: 0 Warnings: 0
9680
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
9682
info: Rows matched: 0 Changed: 0 Warnings: 0
9683
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
9685
info: Rows matched: 1 Changed: 1 Warnings: 0
9693
INSERT INTO t1 VALUES(8, 'eight');
9694
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
9695
ERROR HY000: CHECK OPTION failed 'test.v3'
9700
INSERT INTO t1 VALUES(8, 'eight');
9701
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
9702
ERROR HY000: CHECK OPTION failed 'test.v3'
9707
INSERT INTO t1 VALUES(8, 'eight');
9708
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
9709
ERROR HY000: CHECK OPTION failed 'test.v3'
9714
INSERT INTO t1 VALUES(8, 'eight');
9715
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
9717
info: Rows matched: 1 Changed: 1 Warnings: 0
9722
INSERT INTO v3 VALUES(16, 'sixteen');
9723
ERROR HY000: CHECK OPTION failed 'test.v3'
9724
INSERT INTO v3 VALUES(0, 'zero');
9725
ERROR HY000: CHECK OPTION failed 'test.v3'
9726
INSERT INTO v3 VALUES(7, 'seven');
9727
ERROR HY000: CHECK OPTION failed 'test.v3'
9728
INSERT INTO v3 VALUES(8, 'eight');
9735
option_variant <nothing> - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION
9736
option_variant --------------------------------------------------------------------------------
9737
INSERT INTO t1 VALUES(16, 'sixteen');
9738
INSERT INTO t1 VALUES(0, 'zero');
9739
INSERT INTO t1 VALUES(7, 'seven');
9740
INSERT INTO t1 VALUES(8, 'eight');
9760
INSERT INTO t1 VALUES(16, 'sixteen');
9761
INSERT INTO t1 VALUES(0, 'zero');
9762
INSERT INTO t1 VALUES(7, 'seven');
9763
INSERT INTO t1 VALUES(8, 'eight');
9764
DELETE FROM v3 WHERE my_col1 = 16;
9766
DELETE FROM v3 WHERE my_col1 = 0;
9768
DELETE FROM v3 WHERE my_col1 = 7;
9770
DELETE FROM v3 WHERE my_col1 = 8;
9778
INSERT INTO t1 VALUES(16, 'sixteen');
9779
INSERT INTO t1 VALUES(0, 'zero');
9780
INSERT INTO t1 VALUES(7, 'seven');
9781
INSERT INTO t1 VALUES(8, 'eight');
9782
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
9784
info: Rows matched: 0 Changed: 0 Warnings: 0
9785
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
9787
info: Rows matched: 0 Changed: 0 Warnings: 0
9788
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
9790
info: Rows matched: 0 Changed: 0 Warnings: 0
9791
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
9793
info: Rows matched: 1 Changed: 1 Warnings: 0
9801
INSERT INTO t1 VALUES(8, 'eight');
9802
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
9804
info: Rows matched: 1 Changed: 1 Warnings: 0
9809
INSERT INTO t1 VALUES(8, 'eight');
9810
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
9812
info: Rows matched: 1 Changed: 1 Warnings: 0
9817
INSERT INTO t1 VALUES(8, 'eight');
9818
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
9820
info: Rows matched: 1 Changed: 1 Warnings: 0
9825
INSERT INTO t1 VALUES(8, 'eight');
9826
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
9828
info: Rows matched: 1 Changed: 1 Warnings: 0
9833
INSERT INTO v3 VALUES(16, 'sixteen');
9835
INSERT INTO v3 VALUES(0, 'zero');
9837
INSERT INTO v3 VALUES(7, 'seven');
9839
INSERT INTO v3 VALUES(8, 'eight');
9850
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
9851
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH CHECK OPTION ;
9852
option_variant WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION
9853
option_variant --------------------------------------------------------------------------------
9854
INSERT INTO t1 VALUES(16, 'sixteen');
9855
INSERT INTO t1 VALUES(0, 'zero');
9856
INSERT INTO t1 VALUES(7, 'seven');
9857
INSERT INTO t1 VALUES(8, 'eight');
9877
INSERT INTO t1 VALUES(16, 'sixteen');
9878
INSERT INTO t1 VALUES(0, 'zero');
9879
INSERT INTO t1 VALUES(7, 'seven');
9880
INSERT INTO t1 VALUES(8, 'eight');
9881
DELETE FROM v3 WHERE my_col1 = 16;
9883
DELETE FROM v3 WHERE my_col1 = 0;
9885
DELETE FROM v3 WHERE my_col1 = 7;
9887
DELETE FROM v3 WHERE my_col1 = 8;
9895
INSERT INTO t1 VALUES(16, 'sixteen');
9896
INSERT INTO t1 VALUES(0, 'zero');
9897
INSERT INTO t1 VALUES(7, 'seven');
9898
INSERT INTO t1 VALUES(8, 'eight');
9899
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
9901
info: Rows matched: 0 Changed: 0 Warnings: 0
9902
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
9904
info: Rows matched: 0 Changed: 0 Warnings: 0
9905
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
9907
info: Rows matched: 0 Changed: 0 Warnings: 0
9908
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
9910
info: Rows matched: 1 Changed: 1 Warnings: 0
9918
INSERT INTO t1 VALUES(8, 'eight');
9919
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
9920
ERROR HY000: CHECK OPTION failed 'test.v3'
9925
INSERT INTO t1 VALUES(8, 'eight');
9926
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
9928
info: Rows matched: 1 Changed: 1 Warnings: 0
9933
INSERT INTO t1 VALUES(8, 'eight');
9934
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
9936
info: Rows matched: 1 Changed: 1 Warnings: 0
9941
INSERT INTO t1 VALUES(8, 'eight');
9942
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
9944
info: Rows matched: 1 Changed: 1 Warnings: 0
9949
INSERT INTO v3 VALUES(16, 'sixteen');
9951
INSERT INTO v3 VALUES(0, 'zero');
9953
INSERT INTO v3 VALUES(7, 'seven');
9954
ERROR HY000: CHECK OPTION failed 'test.v3'
9955
INSERT INTO v3 VALUES(8, 'eight');
9964
option_variant WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION
9965
option_variant --------------------------------------------------------------------------------
9966
INSERT INTO t1 VALUES(16, 'sixteen');
9967
INSERT INTO t1 VALUES(0, 'zero');
9968
INSERT INTO t1 VALUES(7, 'seven');
9969
INSERT INTO t1 VALUES(8, 'eight');
9989
INSERT INTO t1 VALUES(16, 'sixteen');
9990
INSERT INTO t1 VALUES(0, 'zero');
9991
INSERT INTO t1 VALUES(7, 'seven');
9992
INSERT INTO t1 VALUES(8, 'eight');
9993
DELETE FROM v3 WHERE my_col1 = 16;
9995
DELETE FROM v3 WHERE my_col1 = 0;
9997
DELETE FROM v3 WHERE my_col1 = 7;
9999
DELETE FROM v3 WHERE my_col1 = 8;
10007
INSERT INTO t1 VALUES(16, 'sixteen');
10008
INSERT INTO t1 VALUES(0, 'zero');
10009
INSERT INTO t1 VALUES(7, 'seven');
10010
INSERT INTO t1 VALUES(8, 'eight');
10011
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
10013
info: Rows matched: 0 Changed: 0 Warnings: 0
10014
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
10016
info: Rows matched: 0 Changed: 0 Warnings: 0
10017
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
10019
info: Rows matched: 0 Changed: 0 Warnings: 0
10020
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
10022
info: Rows matched: 1 Changed: 1 Warnings: 0
10030
INSERT INTO t1 VALUES(8, 'eight');
10031
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
10032
ERROR HY000: CHECK OPTION failed 'test.v3'
10037
INSERT INTO t1 VALUES(8, 'eight');
10038
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
10039
ERROR HY000: CHECK OPTION failed 'test.v3'
10044
INSERT INTO t1 VALUES(8, 'eight');
10045
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
10046
ERROR HY000: CHECK OPTION failed 'test.v3'
10051
INSERT INTO t1 VALUES(8, 'eight');
10052
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
10054
info: Rows matched: 1 Changed: 1 Warnings: 0
10059
INSERT INTO v3 VALUES(16, 'sixteen');
10060
ERROR HY000: CHECK OPTION failed 'test.v3'
10061
INSERT INTO v3 VALUES(0, 'zero');
10062
ERROR HY000: CHECK OPTION failed 'test.v3'
10063
INSERT INTO v3 VALUES(7, 'seven');
10064
ERROR HY000: CHECK OPTION failed 'test.v3'
10065
INSERT INTO v3 VALUES(8, 'eight');
10072
option_variant WITH CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION
10073
option_variant --------------------------------------------------------------------------------
10074
INSERT INTO t1 VALUES(16, 'sixteen');
10075
INSERT INTO t1 VALUES(0, 'zero');
10076
INSERT INTO t1 VALUES(7, 'seven');
10077
INSERT INTO t1 VALUES(8, 'eight');
10097
INSERT INTO t1 VALUES(16, 'sixteen');
10098
INSERT INTO t1 VALUES(0, 'zero');
10099
INSERT INTO t1 VALUES(7, 'seven');
10100
INSERT INTO t1 VALUES(8, 'eight');
10101
DELETE FROM v3 WHERE my_col1 = 16;
10103
DELETE FROM v3 WHERE my_col1 = 0;
10105
DELETE FROM v3 WHERE my_col1 = 7;
10107
DELETE FROM v3 WHERE my_col1 = 8;
10115
INSERT INTO t1 VALUES(16, 'sixteen');
10116
INSERT INTO t1 VALUES(0, 'zero');
10117
INSERT INTO t1 VALUES(7, 'seven');
10118
INSERT INTO t1 VALUES(8, 'eight');
10119
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
10121
info: Rows matched: 0 Changed: 0 Warnings: 0
10122
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
10124
info: Rows matched: 0 Changed: 0 Warnings: 0
10125
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
10127
info: Rows matched: 0 Changed: 0 Warnings: 0
10128
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
10130
info: Rows matched: 1 Changed: 1 Warnings: 0
10138
INSERT INTO t1 VALUES(8, 'eight');
10139
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
10140
ERROR HY000: CHECK OPTION failed 'test.v3'
10145
INSERT INTO t1 VALUES(8, 'eight');
10146
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
10147
ERROR HY000: CHECK OPTION failed 'test.v3'
10152
INSERT INTO t1 VALUES(8, 'eight');
10153
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
10154
ERROR HY000: CHECK OPTION failed 'test.v3'
10159
INSERT INTO t1 VALUES(8, 'eight');
10160
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
10162
info: Rows matched: 1 Changed: 1 Warnings: 0
10167
INSERT INTO v3 VALUES(16, 'sixteen');
10168
ERROR HY000: CHECK OPTION failed 'test.v3'
10169
INSERT INTO v3 VALUES(0, 'zero');
10170
ERROR HY000: CHECK OPTION failed 'test.v3'
10171
INSERT INTO v3 VALUES(7, 'seven');
10172
ERROR HY000: CHECK OPTION failed 'test.v3'
10173
INSERT INTO v3 VALUES(8, 'eight');
10180
option_variant <nothing> - WITH CHECK OPTION - WITH LOCAL CHECK OPTION
10181
option_variant --------------------------------------------------------------------------------
10182
INSERT INTO t1 VALUES(16, 'sixteen');
10183
INSERT INTO t1 VALUES(0, 'zero');
10184
INSERT INTO t1 VALUES(7, 'seven');
10185
INSERT INTO t1 VALUES(8, 'eight');
10205
INSERT INTO t1 VALUES(16, 'sixteen');
10206
INSERT INTO t1 VALUES(0, 'zero');
10207
INSERT INTO t1 VALUES(7, 'seven');
10208
INSERT INTO t1 VALUES(8, 'eight');
10209
DELETE FROM v3 WHERE my_col1 = 16;
10211
DELETE FROM v3 WHERE my_col1 = 0;
10213
DELETE FROM v3 WHERE my_col1 = 7;
10215
DELETE FROM v3 WHERE my_col1 = 8;
10223
INSERT INTO t1 VALUES(16, 'sixteen');
10224
INSERT INTO t1 VALUES(0, 'zero');
10225
INSERT INTO t1 VALUES(7, 'seven');
10226
INSERT INTO t1 VALUES(8, 'eight');
10227
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
10229
info: Rows matched: 0 Changed: 0 Warnings: 0
10230
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
10232
info: Rows matched: 0 Changed: 0 Warnings: 0
10233
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
10235
info: Rows matched: 0 Changed: 0 Warnings: 0
10236
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
10238
info: Rows matched: 1 Changed: 1 Warnings: 0
10246
INSERT INTO t1 VALUES(8, 'eight');
10247
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
10249
info: Rows matched: 1 Changed: 1 Warnings: 0
10254
INSERT INTO t1 VALUES(8, 'eight');
10255
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
10257
info: Rows matched: 1 Changed: 1 Warnings: 0
10262
INSERT INTO t1 VALUES(8, 'eight');
10263
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
10265
info: Rows matched: 1 Changed: 1 Warnings: 0
10270
INSERT INTO t1 VALUES(8, 'eight');
10271
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
10273
info: Rows matched: 1 Changed: 1 Warnings: 0
10278
INSERT INTO v3 VALUES(16, 'sixteen');
10280
INSERT INTO v3 VALUES(0, 'zero');
10282
INSERT INTO v3 VALUES(7, 'seven');
10284
INSERT INTO v3 VALUES(8, 'eight');
10295
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
10296
FROM v1 WHERE f1 BETWEEN 6 AND 16 ;
10297
option_variant WITH LOCAL CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION
10298
option_variant --------------------------------------------------------------------------------
10299
INSERT INTO t1 VALUES(16, 'sixteen');
10300
INSERT INTO t1 VALUES(0, 'zero');
10301
INSERT INTO t1 VALUES(7, 'seven');
10302
INSERT INTO t1 VALUES(8, 'eight');
10322
INSERT INTO t1 VALUES(16, 'sixteen');
10323
INSERT INTO t1 VALUES(0, 'zero');
10324
INSERT INTO t1 VALUES(7, 'seven');
10325
INSERT INTO t1 VALUES(8, 'eight');
10326
DELETE FROM v3 WHERE my_col1 = 16;
10328
DELETE FROM v3 WHERE my_col1 = 0;
10330
DELETE FROM v3 WHERE my_col1 = 7;
10332
DELETE FROM v3 WHERE my_col1 = 8;
10340
INSERT INTO t1 VALUES(16, 'sixteen');
10341
INSERT INTO t1 VALUES(0, 'zero');
10342
INSERT INTO t1 VALUES(7, 'seven');
10343
INSERT INTO t1 VALUES(8, 'eight');
10344
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
10346
info: Rows matched: 0 Changed: 0 Warnings: 0
10347
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
10349
info: Rows matched: 0 Changed: 0 Warnings: 0
10350
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
10352
info: Rows matched: 0 Changed: 0 Warnings: 0
10353
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
10355
info: Rows matched: 1 Changed: 1 Warnings: 0
10363
INSERT INTO t1 VALUES(8, 'eight');
10364
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
10365
ERROR HY000: CHECK OPTION failed 'test.v3'
10370
INSERT INTO t1 VALUES(8, 'eight');
10371
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
10373
info: Rows matched: 1 Changed: 1 Warnings: 0
10378
INSERT INTO t1 VALUES(8, 'eight');
10379
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
10381
info: Rows matched: 1 Changed: 1 Warnings: 0
10386
INSERT INTO t1 VALUES(8, 'eight');
10387
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
10389
info: Rows matched: 1 Changed: 1 Warnings: 0
10394
INSERT INTO v3 VALUES(16, 'sixteen');
10396
INSERT INTO v3 VALUES(0, 'zero');
10398
INSERT INTO v3 VALUES(7, 'seven');
10399
ERROR HY000: CHECK OPTION failed 'test.v3'
10400
INSERT INTO v3 VALUES(8, 'eight');
10409
option_variant WITH CASCADED CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION
10410
option_variant --------------------------------------------------------------------------------
10411
INSERT INTO t1 VALUES(16, 'sixteen');
10412
INSERT INTO t1 VALUES(0, 'zero');
10413
INSERT INTO t1 VALUES(7, 'seven');
10414
INSERT INTO t1 VALUES(8, 'eight');
10434
INSERT INTO t1 VALUES(16, 'sixteen');
10435
INSERT INTO t1 VALUES(0, 'zero');
10436
INSERT INTO t1 VALUES(7, 'seven');
10437
INSERT INTO t1 VALUES(8, 'eight');
10438
DELETE FROM v3 WHERE my_col1 = 16;
10440
DELETE FROM v3 WHERE my_col1 = 0;
10442
DELETE FROM v3 WHERE my_col1 = 7;
10444
DELETE FROM v3 WHERE my_col1 = 8;
10452
INSERT INTO t1 VALUES(16, 'sixteen');
10453
INSERT INTO t1 VALUES(0, 'zero');
10454
INSERT INTO t1 VALUES(7, 'seven');
10455
INSERT INTO t1 VALUES(8, 'eight');
10456
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
10458
info: Rows matched: 0 Changed: 0 Warnings: 0
10459
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
10461
info: Rows matched: 0 Changed: 0 Warnings: 0
10462
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
10464
info: Rows matched: 0 Changed: 0 Warnings: 0
10465
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
10467
info: Rows matched: 1 Changed: 1 Warnings: 0
10475
INSERT INTO t1 VALUES(8, 'eight');
10476
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
10477
ERROR HY000: CHECK OPTION failed 'test.v3'
10482
INSERT INTO t1 VALUES(8, 'eight');
10483
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
10484
ERROR HY000: CHECK OPTION failed 'test.v3'
10489
INSERT INTO t1 VALUES(8, 'eight');
10490
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
10491
ERROR HY000: CHECK OPTION failed 'test.v3'
10496
INSERT INTO t1 VALUES(8, 'eight');
10497
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
10499
info: Rows matched: 1 Changed: 1 Warnings: 0
10504
INSERT INTO v3 VALUES(16, 'sixteen');
10505
ERROR HY000: CHECK OPTION failed 'test.v3'
10506
INSERT INTO v3 VALUES(0, 'zero');
10507
ERROR HY000: CHECK OPTION failed 'test.v3'
10508
INSERT INTO v3 VALUES(7, 'seven');
10509
ERROR HY000: CHECK OPTION failed 'test.v3'
10510
INSERT INTO v3 VALUES(8, 'eight');
10517
option_variant WITH CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION
10518
option_variant --------------------------------------------------------------------------------
10519
INSERT INTO t1 VALUES(16, 'sixteen');
10520
INSERT INTO t1 VALUES(0, 'zero');
10521
INSERT INTO t1 VALUES(7, 'seven');
10522
INSERT INTO t1 VALUES(8, 'eight');
10542
INSERT INTO t1 VALUES(16, 'sixteen');
10543
INSERT INTO t1 VALUES(0, 'zero');
10544
INSERT INTO t1 VALUES(7, 'seven');
10545
INSERT INTO t1 VALUES(8, 'eight');
10546
DELETE FROM v3 WHERE my_col1 = 16;
10548
DELETE FROM v3 WHERE my_col1 = 0;
10550
DELETE FROM v3 WHERE my_col1 = 7;
10552
DELETE FROM v3 WHERE my_col1 = 8;
10560
INSERT INTO t1 VALUES(16, 'sixteen');
10561
INSERT INTO t1 VALUES(0, 'zero');
10562
INSERT INTO t1 VALUES(7, 'seven');
10563
INSERT INTO t1 VALUES(8, 'eight');
10564
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
10566
info: Rows matched: 0 Changed: 0 Warnings: 0
10567
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
10569
info: Rows matched: 0 Changed: 0 Warnings: 0
10570
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
10572
info: Rows matched: 0 Changed: 0 Warnings: 0
10573
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
10575
info: Rows matched: 1 Changed: 1 Warnings: 0
10583
INSERT INTO t1 VALUES(8, 'eight');
10584
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
10585
ERROR HY000: CHECK OPTION failed 'test.v3'
10590
INSERT INTO t1 VALUES(8, 'eight');
10591
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
10592
ERROR HY000: CHECK OPTION failed 'test.v3'
10597
INSERT INTO t1 VALUES(8, 'eight');
10598
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
10599
ERROR HY000: CHECK OPTION failed 'test.v3'
10604
INSERT INTO t1 VALUES(8, 'eight');
10605
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
10607
info: Rows matched: 1 Changed: 1 Warnings: 0
10612
INSERT INTO v3 VALUES(16, 'sixteen');
10613
ERROR HY000: CHECK OPTION failed 'test.v3'
10614
INSERT INTO v3 VALUES(0, 'zero');
10615
ERROR HY000: CHECK OPTION failed 'test.v3'
10616
INSERT INTO v3 VALUES(7, 'seven');
10617
ERROR HY000: CHECK OPTION failed 'test.v3'
10618
INSERT INTO v3 VALUES(8, 'eight');
10625
option_variant <nothing> - <nothing> - WITH LOCAL CHECK OPTION
10626
option_variant --------------------------------------------------------------------------------
10627
INSERT INTO t1 VALUES(16, 'sixteen');
10628
INSERT INTO t1 VALUES(0, 'zero');
10629
INSERT INTO t1 VALUES(7, 'seven');
10630
INSERT INTO t1 VALUES(8, 'eight');
10650
INSERT INTO t1 VALUES(16, 'sixteen');
10651
INSERT INTO t1 VALUES(0, 'zero');
10652
INSERT INTO t1 VALUES(7, 'seven');
10653
INSERT INTO t1 VALUES(8, 'eight');
10654
DELETE FROM v3 WHERE my_col1 = 16;
10656
DELETE FROM v3 WHERE my_col1 = 0;
10658
DELETE FROM v3 WHERE my_col1 = 7;
10660
DELETE FROM v3 WHERE my_col1 = 8;
10668
INSERT INTO t1 VALUES(16, 'sixteen');
10669
INSERT INTO t1 VALUES(0, 'zero');
10670
INSERT INTO t1 VALUES(7, 'seven');
10671
INSERT INTO t1 VALUES(8, 'eight');
10672
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
10674
info: Rows matched: 0 Changed: 0 Warnings: 0
10675
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
10677
info: Rows matched: 0 Changed: 0 Warnings: 0
10678
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
10680
info: Rows matched: 0 Changed: 0 Warnings: 0
10681
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
10683
info: Rows matched: 1 Changed: 1 Warnings: 0
10691
INSERT INTO t1 VALUES(8, 'eight');
10692
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
10694
info: Rows matched: 1 Changed: 1 Warnings: 0
10699
INSERT INTO t1 VALUES(8, 'eight');
10700
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
10702
info: Rows matched: 1 Changed: 1 Warnings: 0
10707
INSERT INTO t1 VALUES(8, 'eight');
10708
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
10710
info: Rows matched: 1 Changed: 1 Warnings: 0
10715
INSERT INTO t1 VALUES(8, 'eight');
10716
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
10718
info: Rows matched: 1 Changed: 1 Warnings: 0
10723
INSERT INTO v3 VALUES(16, 'sixteen');
10725
INSERT INTO v3 VALUES(0, 'zero');
10727
INSERT INTO v3 VALUES(7, 'seven');
10729
INSERT INTO v3 VALUES(8, 'eight');
10741
CREATE VIEW v1 AS SELECT f1, f2
10742
FROM t1 WHERE f1 BETWEEN 0 AND 10 WITH CASCADED CHECK OPTION ;
10743
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
10744
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH LOCAL CHECK OPTION ;
10745
option_variant WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION
10746
option_variant --------------------------------------------------------------------------------
10747
INSERT INTO t1 VALUES(16, 'sixteen');
10748
INSERT INTO t1 VALUES(0, 'zero');
10749
INSERT INTO t1 VALUES(7, 'seven');
10750
INSERT INTO t1 VALUES(8, 'eight');
10770
INSERT INTO t1 VALUES(16, 'sixteen');
10771
INSERT INTO t1 VALUES(0, 'zero');
10772
INSERT INTO t1 VALUES(7, 'seven');
10773
INSERT INTO t1 VALUES(8, 'eight');
10774
DELETE FROM v3 WHERE my_col1 = 16;
10776
DELETE FROM v3 WHERE my_col1 = 0;
10778
DELETE FROM v3 WHERE my_col1 = 7;
10780
DELETE FROM v3 WHERE my_col1 = 8;
10788
INSERT INTO t1 VALUES(16, 'sixteen');
10789
INSERT INTO t1 VALUES(0, 'zero');
10790
INSERT INTO t1 VALUES(7, 'seven');
10791
INSERT INTO t1 VALUES(8, 'eight');
10792
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
10794
info: Rows matched: 0 Changed: 0 Warnings: 0
10795
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
10797
info: Rows matched: 0 Changed: 0 Warnings: 0
10798
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
10800
info: Rows matched: 0 Changed: 0 Warnings: 0
10801
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
10803
info: Rows matched: 1 Changed: 1 Warnings: 0
10811
INSERT INTO t1 VALUES(8, 'eight');
10812
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
10813
ERROR HY000: CHECK OPTION failed 'test.v3'
10818
INSERT INTO t1 VALUES(8, 'eight');
10819
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
10821
info: Rows matched: 1 Changed: 1 Warnings: 0
10826
INSERT INTO t1 VALUES(8, 'eight');
10827
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
10829
info: Rows matched: 1 Changed: 1 Warnings: 0
10834
INSERT INTO t1 VALUES(8, 'eight');
10835
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
10837
info: Rows matched: 1 Changed: 1 Warnings: 0
10842
INSERT INTO v3 VALUES(16, 'sixteen');
10844
INSERT INTO v3 VALUES(0, 'zero');
10846
INSERT INTO v3 VALUES(7, 'seven');
10847
ERROR HY000: CHECK OPTION failed 'test.v3'
10848
INSERT INTO v3 VALUES(8, 'eight');
10857
option_variant WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION
10858
option_variant --------------------------------------------------------------------------------
10859
INSERT INTO t1 VALUES(16, 'sixteen');
10860
INSERT INTO t1 VALUES(0, 'zero');
10861
INSERT INTO t1 VALUES(7, 'seven');
10862
INSERT INTO t1 VALUES(8, 'eight');
10882
INSERT INTO t1 VALUES(16, 'sixteen');
10883
INSERT INTO t1 VALUES(0, 'zero');
10884
INSERT INTO t1 VALUES(7, 'seven');
10885
INSERT INTO t1 VALUES(8, 'eight');
10886
DELETE FROM v3 WHERE my_col1 = 16;
10888
DELETE FROM v3 WHERE my_col1 = 0;
10890
DELETE FROM v3 WHERE my_col1 = 7;
10892
DELETE FROM v3 WHERE my_col1 = 8;
10900
INSERT INTO t1 VALUES(16, 'sixteen');
10901
INSERT INTO t1 VALUES(0, 'zero');
10902
INSERT INTO t1 VALUES(7, 'seven');
10903
INSERT INTO t1 VALUES(8, 'eight');
10904
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
10906
info: Rows matched: 0 Changed: 0 Warnings: 0
10907
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
10909
info: Rows matched: 0 Changed: 0 Warnings: 0
10910
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
10912
info: Rows matched: 0 Changed: 0 Warnings: 0
10913
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
10915
info: Rows matched: 1 Changed: 1 Warnings: 0
10923
INSERT INTO t1 VALUES(8, 'eight');
10924
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
10925
ERROR HY000: CHECK OPTION failed 'test.v3'
10930
INSERT INTO t1 VALUES(8, 'eight');
10931
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
10932
ERROR HY000: CHECK OPTION failed 'test.v3'
10937
INSERT INTO t1 VALUES(8, 'eight');
10938
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
10939
ERROR HY000: CHECK OPTION failed 'test.v3'
10944
INSERT INTO t1 VALUES(8, 'eight');
10945
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
10947
info: Rows matched: 1 Changed: 1 Warnings: 0
10952
INSERT INTO v3 VALUES(16, 'sixteen');
10953
ERROR HY000: CHECK OPTION failed 'test.v3'
10954
INSERT INTO v3 VALUES(0, 'zero');
10955
ERROR HY000: CHECK OPTION failed 'test.v3'
10956
INSERT INTO v3 VALUES(7, 'seven');
10957
ERROR HY000: CHECK OPTION failed 'test.v3'
10958
INSERT INTO v3 VALUES(8, 'eight');
10965
option_variant WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION
10966
option_variant --------------------------------------------------------------------------------
10967
INSERT INTO t1 VALUES(16, 'sixteen');
10968
INSERT INTO t1 VALUES(0, 'zero');
10969
INSERT INTO t1 VALUES(7, 'seven');
10970
INSERT INTO t1 VALUES(8, 'eight');
10990
INSERT INTO t1 VALUES(16, 'sixteen');
10991
INSERT INTO t1 VALUES(0, 'zero');
10992
INSERT INTO t1 VALUES(7, 'seven');
10993
INSERT INTO t1 VALUES(8, 'eight');
10994
DELETE FROM v3 WHERE my_col1 = 16;
10996
DELETE FROM v3 WHERE my_col1 = 0;
10998
DELETE FROM v3 WHERE my_col1 = 7;
11000
DELETE FROM v3 WHERE my_col1 = 8;
11008
INSERT INTO t1 VALUES(16, 'sixteen');
11009
INSERT INTO t1 VALUES(0, 'zero');
11010
INSERT INTO t1 VALUES(7, 'seven');
11011
INSERT INTO t1 VALUES(8, 'eight');
11012
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
11014
info: Rows matched: 0 Changed: 0 Warnings: 0
11015
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
11017
info: Rows matched: 0 Changed: 0 Warnings: 0
11018
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
11020
info: Rows matched: 0 Changed: 0 Warnings: 0
11021
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
11023
info: Rows matched: 1 Changed: 1 Warnings: 0
11031
INSERT INTO t1 VALUES(8, 'eight');
11032
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
11033
ERROR HY000: CHECK OPTION failed 'test.v3'
11038
INSERT INTO t1 VALUES(8, 'eight');
11039
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
11040
ERROR HY000: CHECK OPTION failed 'test.v3'
11045
INSERT INTO t1 VALUES(8, 'eight');
11046
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
11047
ERROR HY000: CHECK OPTION failed 'test.v3'
11052
INSERT INTO t1 VALUES(8, 'eight');
11053
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
11055
info: Rows matched: 1 Changed: 1 Warnings: 0
11060
INSERT INTO v3 VALUES(16, 'sixteen');
11061
ERROR HY000: CHECK OPTION failed 'test.v3'
11062
INSERT INTO v3 VALUES(0, 'zero');
11063
ERROR HY000: CHECK OPTION failed 'test.v3'
11064
INSERT INTO v3 VALUES(7, 'seven');
11065
ERROR HY000: CHECK OPTION failed 'test.v3'
11066
INSERT INTO v3 VALUES(8, 'eight');
11073
option_variant <nothing> - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION
11074
option_variant --------------------------------------------------------------------------------
11075
INSERT INTO t1 VALUES(16, 'sixteen');
11076
INSERT INTO t1 VALUES(0, 'zero');
11077
INSERT INTO t1 VALUES(7, 'seven');
11078
INSERT INTO t1 VALUES(8, 'eight');
11098
INSERT INTO t1 VALUES(16, 'sixteen');
11099
INSERT INTO t1 VALUES(0, 'zero');
11100
INSERT INTO t1 VALUES(7, 'seven');
11101
INSERT INTO t1 VALUES(8, 'eight');
11102
DELETE FROM v3 WHERE my_col1 = 16;
11104
DELETE FROM v3 WHERE my_col1 = 0;
11106
DELETE FROM v3 WHERE my_col1 = 7;
11108
DELETE FROM v3 WHERE my_col1 = 8;
11116
INSERT INTO t1 VALUES(16, 'sixteen');
11117
INSERT INTO t1 VALUES(0, 'zero');
11118
INSERT INTO t1 VALUES(7, 'seven');
11119
INSERT INTO t1 VALUES(8, 'eight');
11120
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
11122
info: Rows matched: 0 Changed: 0 Warnings: 0
11123
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
11125
info: Rows matched: 0 Changed: 0 Warnings: 0
11126
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
11128
info: Rows matched: 0 Changed: 0 Warnings: 0
11129
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
11131
info: Rows matched: 1 Changed: 1 Warnings: 0
11139
INSERT INTO t1 VALUES(8, 'eight');
11140
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
11142
info: Rows matched: 1 Changed: 1 Warnings: 0
11147
INSERT INTO t1 VALUES(8, 'eight');
11148
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
11150
info: Rows matched: 1 Changed: 1 Warnings: 0
11155
INSERT INTO t1 VALUES(8, 'eight');
11156
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
11158
info: Rows matched: 1 Changed: 1 Warnings: 0
11163
INSERT INTO t1 VALUES(8, 'eight');
11164
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
11166
info: Rows matched: 1 Changed: 1 Warnings: 0
11171
INSERT INTO v3 VALUES(16, 'sixteen');
11173
INSERT INTO v3 VALUES(0, 'zero');
11175
INSERT INTO v3 VALUES(7, 'seven');
11177
INSERT INTO v3 VALUES(8, 'eight');
11188
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
11189
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH CASCADED CHECK OPTION ;
11190
option_variant WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION
11191
option_variant --------------------------------------------------------------------------------
11192
INSERT INTO t1 VALUES(16, 'sixteen');
11193
INSERT INTO t1 VALUES(0, 'zero');
11194
INSERT INTO t1 VALUES(7, 'seven');
11195
INSERT INTO t1 VALUES(8, 'eight');
11215
INSERT INTO t1 VALUES(16, 'sixteen');
11216
INSERT INTO t1 VALUES(0, 'zero');
11217
INSERT INTO t1 VALUES(7, 'seven');
11218
INSERT INTO t1 VALUES(8, 'eight');
11219
DELETE FROM v3 WHERE my_col1 = 16;
11221
DELETE FROM v3 WHERE my_col1 = 0;
11223
DELETE FROM v3 WHERE my_col1 = 7;
11225
DELETE FROM v3 WHERE my_col1 = 8;
11233
INSERT INTO t1 VALUES(16, 'sixteen');
11234
INSERT INTO t1 VALUES(0, 'zero');
11235
INSERT INTO t1 VALUES(7, 'seven');
11236
INSERT INTO t1 VALUES(8, 'eight');
11237
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
11239
info: Rows matched: 0 Changed: 0 Warnings: 0
11240
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
11242
info: Rows matched: 0 Changed: 0 Warnings: 0
11243
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
11245
info: Rows matched: 0 Changed: 0 Warnings: 0
11246
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
11248
info: Rows matched: 1 Changed: 1 Warnings: 0
11256
INSERT INTO t1 VALUES(8, 'eight');
11257
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
11258
ERROR HY000: CHECK OPTION failed 'test.v3'
11263
INSERT INTO t1 VALUES(8, 'eight');
11264
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
11266
info: Rows matched: 1 Changed: 1 Warnings: 0
11271
INSERT INTO t1 VALUES(8, 'eight');
11272
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
11274
info: Rows matched: 1 Changed: 1 Warnings: 0
11279
INSERT INTO t1 VALUES(8, 'eight');
11280
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
11282
info: Rows matched: 1 Changed: 1 Warnings: 0
11287
INSERT INTO v3 VALUES(16, 'sixteen');
11289
INSERT INTO v3 VALUES(0, 'zero');
11291
INSERT INTO v3 VALUES(7, 'seven');
11292
ERROR HY000: CHECK OPTION failed 'test.v3'
11293
INSERT INTO v3 VALUES(8, 'eight');
11302
option_variant WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION
11303
option_variant --------------------------------------------------------------------------------
11304
INSERT INTO t1 VALUES(16, 'sixteen');
11305
INSERT INTO t1 VALUES(0, 'zero');
11306
INSERT INTO t1 VALUES(7, 'seven');
11307
INSERT INTO t1 VALUES(8, 'eight');
11327
INSERT INTO t1 VALUES(16, 'sixteen');
11328
INSERT INTO t1 VALUES(0, 'zero');
11329
INSERT INTO t1 VALUES(7, 'seven');
11330
INSERT INTO t1 VALUES(8, 'eight');
11331
DELETE FROM v3 WHERE my_col1 = 16;
11333
DELETE FROM v3 WHERE my_col1 = 0;
11335
DELETE FROM v3 WHERE my_col1 = 7;
11337
DELETE FROM v3 WHERE my_col1 = 8;
11345
INSERT INTO t1 VALUES(16, 'sixteen');
11346
INSERT INTO t1 VALUES(0, 'zero');
11347
INSERT INTO t1 VALUES(7, 'seven');
11348
INSERT INTO t1 VALUES(8, 'eight');
11349
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
11351
info: Rows matched: 0 Changed: 0 Warnings: 0
11352
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
11354
info: Rows matched: 0 Changed: 0 Warnings: 0
11355
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
11357
info: Rows matched: 0 Changed: 0 Warnings: 0
11358
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
11360
info: Rows matched: 1 Changed: 1 Warnings: 0
11368
INSERT INTO t1 VALUES(8, 'eight');
11369
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
11370
ERROR HY000: CHECK OPTION failed 'test.v3'
11375
INSERT INTO t1 VALUES(8, 'eight');
11376
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
11377
ERROR HY000: CHECK OPTION failed 'test.v3'
11382
INSERT INTO t1 VALUES(8, 'eight');
11383
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
11384
ERROR HY000: CHECK OPTION failed 'test.v3'
11389
INSERT INTO t1 VALUES(8, 'eight');
11390
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
11392
info: Rows matched: 1 Changed: 1 Warnings: 0
11397
INSERT INTO v3 VALUES(16, 'sixteen');
11398
ERROR HY000: CHECK OPTION failed 'test.v3'
11399
INSERT INTO v3 VALUES(0, 'zero');
11400
ERROR HY000: CHECK OPTION failed 'test.v3'
11401
INSERT INTO v3 VALUES(7, 'seven');
11402
ERROR HY000: CHECK OPTION failed 'test.v3'
11403
INSERT INTO v3 VALUES(8, 'eight');
11410
option_variant WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION
11411
option_variant --------------------------------------------------------------------------------
11412
INSERT INTO t1 VALUES(16, 'sixteen');
11413
INSERT INTO t1 VALUES(0, 'zero');
11414
INSERT INTO t1 VALUES(7, 'seven');
11415
INSERT INTO t1 VALUES(8, 'eight');
11435
INSERT INTO t1 VALUES(16, 'sixteen');
11436
INSERT INTO t1 VALUES(0, 'zero');
11437
INSERT INTO t1 VALUES(7, 'seven');
11438
INSERT INTO t1 VALUES(8, 'eight');
11439
DELETE FROM v3 WHERE my_col1 = 16;
11441
DELETE FROM v3 WHERE my_col1 = 0;
11443
DELETE FROM v3 WHERE my_col1 = 7;
11445
DELETE FROM v3 WHERE my_col1 = 8;
11453
INSERT INTO t1 VALUES(16, 'sixteen');
11454
INSERT INTO t1 VALUES(0, 'zero');
11455
INSERT INTO t1 VALUES(7, 'seven');
11456
INSERT INTO t1 VALUES(8, 'eight');
11457
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
11459
info: Rows matched: 0 Changed: 0 Warnings: 0
11460
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
11462
info: Rows matched: 0 Changed: 0 Warnings: 0
11463
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
11465
info: Rows matched: 0 Changed: 0 Warnings: 0
11466
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
11468
info: Rows matched: 1 Changed: 1 Warnings: 0
11476
INSERT INTO t1 VALUES(8, 'eight');
11477
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
11478
ERROR HY000: CHECK OPTION failed 'test.v3'
11483
INSERT INTO t1 VALUES(8, 'eight');
11484
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
11485
ERROR HY000: CHECK OPTION failed 'test.v3'
11490
INSERT INTO t1 VALUES(8, 'eight');
11491
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
11492
ERROR HY000: CHECK OPTION failed 'test.v3'
11497
INSERT INTO t1 VALUES(8, 'eight');
11498
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
11500
info: Rows matched: 1 Changed: 1 Warnings: 0
11505
INSERT INTO v3 VALUES(16, 'sixteen');
11506
ERROR HY000: CHECK OPTION failed 'test.v3'
11507
INSERT INTO v3 VALUES(0, 'zero');
11508
ERROR HY000: CHECK OPTION failed 'test.v3'
11509
INSERT INTO v3 VALUES(7, 'seven');
11510
ERROR HY000: CHECK OPTION failed 'test.v3'
11511
INSERT INTO v3 VALUES(8, 'eight');
11518
option_variant <nothing> - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION
11519
option_variant --------------------------------------------------------------------------------
11520
INSERT INTO t1 VALUES(16, 'sixteen');
11521
INSERT INTO t1 VALUES(0, 'zero');
11522
INSERT INTO t1 VALUES(7, 'seven');
11523
INSERT INTO t1 VALUES(8, 'eight');
11543
INSERT INTO t1 VALUES(16, 'sixteen');
11544
INSERT INTO t1 VALUES(0, 'zero');
11545
INSERT INTO t1 VALUES(7, 'seven');
11546
INSERT INTO t1 VALUES(8, 'eight');
11547
DELETE FROM v3 WHERE my_col1 = 16;
11549
DELETE FROM v3 WHERE my_col1 = 0;
11551
DELETE FROM v3 WHERE my_col1 = 7;
11553
DELETE FROM v3 WHERE my_col1 = 8;
11561
INSERT INTO t1 VALUES(16, 'sixteen');
11562
INSERT INTO t1 VALUES(0, 'zero');
11563
INSERT INTO t1 VALUES(7, 'seven');
11564
INSERT INTO t1 VALUES(8, 'eight');
11565
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
11567
info: Rows matched: 0 Changed: 0 Warnings: 0
11568
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
11570
info: Rows matched: 0 Changed: 0 Warnings: 0
11571
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
11573
info: Rows matched: 0 Changed: 0 Warnings: 0
11574
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
11576
info: Rows matched: 1 Changed: 1 Warnings: 0
11584
INSERT INTO t1 VALUES(8, 'eight');
11585
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
11587
info: Rows matched: 1 Changed: 1 Warnings: 0
11592
INSERT INTO t1 VALUES(8, 'eight');
11593
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
11595
info: Rows matched: 1 Changed: 1 Warnings: 0
11600
INSERT INTO t1 VALUES(8, 'eight');
11601
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
11603
info: Rows matched: 1 Changed: 1 Warnings: 0
11608
INSERT INTO t1 VALUES(8, 'eight');
11609
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
11611
info: Rows matched: 1 Changed: 1 Warnings: 0
11616
INSERT INTO v3 VALUES(16, 'sixteen');
11618
INSERT INTO v3 VALUES(0, 'zero');
11620
INSERT INTO v3 VALUES(7, 'seven');
11622
INSERT INTO v3 VALUES(8, 'eight');
11633
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
11634
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH CHECK OPTION ;
11635
option_variant WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION
11636
option_variant --------------------------------------------------------------------------------
11637
INSERT INTO t1 VALUES(16, 'sixteen');
11638
INSERT INTO t1 VALUES(0, 'zero');
11639
INSERT INTO t1 VALUES(7, 'seven');
11640
INSERT INTO t1 VALUES(8, 'eight');
11660
INSERT INTO t1 VALUES(16, 'sixteen');
11661
INSERT INTO t1 VALUES(0, 'zero');
11662
INSERT INTO t1 VALUES(7, 'seven');
11663
INSERT INTO t1 VALUES(8, 'eight');
11664
DELETE FROM v3 WHERE my_col1 = 16;
11666
DELETE FROM v3 WHERE my_col1 = 0;
11668
DELETE FROM v3 WHERE my_col1 = 7;
11670
DELETE FROM v3 WHERE my_col1 = 8;
11678
INSERT INTO t1 VALUES(16, 'sixteen');
11679
INSERT INTO t1 VALUES(0, 'zero');
11680
INSERT INTO t1 VALUES(7, 'seven');
11681
INSERT INTO t1 VALUES(8, 'eight');
11682
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
11684
info: Rows matched: 0 Changed: 0 Warnings: 0
11685
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
11687
info: Rows matched: 0 Changed: 0 Warnings: 0
11688
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
11690
info: Rows matched: 0 Changed: 0 Warnings: 0
11691
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
11693
info: Rows matched: 1 Changed: 1 Warnings: 0
11701
INSERT INTO t1 VALUES(8, 'eight');
11702
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
11703
ERROR HY000: CHECK OPTION failed 'test.v3'
11708
INSERT INTO t1 VALUES(8, 'eight');
11709
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
11711
info: Rows matched: 1 Changed: 1 Warnings: 0
11716
INSERT INTO t1 VALUES(8, 'eight');
11717
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
11719
info: Rows matched: 1 Changed: 1 Warnings: 0
11724
INSERT INTO t1 VALUES(8, 'eight');
11725
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
11727
info: Rows matched: 1 Changed: 1 Warnings: 0
11732
INSERT INTO v3 VALUES(16, 'sixteen');
11734
INSERT INTO v3 VALUES(0, 'zero');
11736
INSERT INTO v3 VALUES(7, 'seven');
11737
ERROR HY000: CHECK OPTION failed 'test.v3'
11738
INSERT INTO v3 VALUES(8, 'eight');
11747
option_variant WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION
11748
option_variant --------------------------------------------------------------------------------
11749
INSERT INTO t1 VALUES(16, 'sixteen');
11750
INSERT INTO t1 VALUES(0, 'zero');
11751
INSERT INTO t1 VALUES(7, 'seven');
11752
INSERT INTO t1 VALUES(8, 'eight');
11772
INSERT INTO t1 VALUES(16, 'sixteen');
11773
INSERT INTO t1 VALUES(0, 'zero');
11774
INSERT INTO t1 VALUES(7, 'seven');
11775
INSERT INTO t1 VALUES(8, 'eight');
11776
DELETE FROM v3 WHERE my_col1 = 16;
11778
DELETE FROM v3 WHERE my_col1 = 0;
11780
DELETE FROM v3 WHERE my_col1 = 7;
11782
DELETE FROM v3 WHERE my_col1 = 8;
11790
INSERT INTO t1 VALUES(16, 'sixteen');
11791
INSERT INTO t1 VALUES(0, 'zero');
11792
INSERT INTO t1 VALUES(7, 'seven');
11793
INSERT INTO t1 VALUES(8, 'eight');
11794
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
11796
info: Rows matched: 0 Changed: 0 Warnings: 0
11797
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
11799
info: Rows matched: 0 Changed: 0 Warnings: 0
11800
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
11802
info: Rows matched: 0 Changed: 0 Warnings: 0
11803
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
11805
info: Rows matched: 1 Changed: 1 Warnings: 0
11813
INSERT INTO t1 VALUES(8, 'eight');
11814
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
11815
ERROR HY000: CHECK OPTION failed 'test.v3'
11820
INSERT INTO t1 VALUES(8, 'eight');
11821
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
11822
ERROR HY000: CHECK OPTION failed 'test.v3'
11827
INSERT INTO t1 VALUES(8, 'eight');
11828
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
11829
ERROR HY000: CHECK OPTION failed 'test.v3'
11834
INSERT INTO t1 VALUES(8, 'eight');
11835
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
11837
info: Rows matched: 1 Changed: 1 Warnings: 0
11842
INSERT INTO v3 VALUES(16, 'sixteen');
11843
ERROR HY000: CHECK OPTION failed 'test.v3'
11844
INSERT INTO v3 VALUES(0, 'zero');
11845
ERROR HY000: CHECK OPTION failed 'test.v3'
11846
INSERT INTO v3 VALUES(7, 'seven');
11847
ERROR HY000: CHECK OPTION failed 'test.v3'
11848
INSERT INTO v3 VALUES(8, 'eight');
11855
option_variant WITH CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION
11856
option_variant --------------------------------------------------------------------------------
11857
INSERT INTO t1 VALUES(16, 'sixteen');
11858
INSERT INTO t1 VALUES(0, 'zero');
11859
INSERT INTO t1 VALUES(7, 'seven');
11860
INSERT INTO t1 VALUES(8, 'eight');
11880
INSERT INTO t1 VALUES(16, 'sixteen');
11881
INSERT INTO t1 VALUES(0, 'zero');
11882
INSERT INTO t1 VALUES(7, 'seven');
11883
INSERT INTO t1 VALUES(8, 'eight');
11884
DELETE FROM v3 WHERE my_col1 = 16;
11886
DELETE FROM v3 WHERE my_col1 = 0;
11888
DELETE FROM v3 WHERE my_col1 = 7;
11890
DELETE FROM v3 WHERE my_col1 = 8;
11898
INSERT INTO t1 VALUES(16, 'sixteen');
11899
INSERT INTO t1 VALUES(0, 'zero');
11900
INSERT INTO t1 VALUES(7, 'seven');
11901
INSERT INTO t1 VALUES(8, 'eight');
11902
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
11904
info: Rows matched: 0 Changed: 0 Warnings: 0
11905
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
11907
info: Rows matched: 0 Changed: 0 Warnings: 0
11908
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
11910
info: Rows matched: 0 Changed: 0 Warnings: 0
11911
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
11913
info: Rows matched: 1 Changed: 1 Warnings: 0
11921
INSERT INTO t1 VALUES(8, 'eight');
11922
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
11923
ERROR HY000: CHECK OPTION failed 'test.v3'
11928
INSERT INTO t1 VALUES(8, 'eight');
11929
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
11930
ERROR HY000: CHECK OPTION failed 'test.v3'
11935
INSERT INTO t1 VALUES(8, 'eight');
11936
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
11937
ERROR HY000: CHECK OPTION failed 'test.v3'
11942
INSERT INTO t1 VALUES(8, 'eight');
11943
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
11945
info: Rows matched: 1 Changed: 1 Warnings: 0
11950
INSERT INTO v3 VALUES(16, 'sixteen');
11951
ERROR HY000: CHECK OPTION failed 'test.v3'
11952
INSERT INTO v3 VALUES(0, 'zero');
11953
ERROR HY000: CHECK OPTION failed 'test.v3'
11954
INSERT INTO v3 VALUES(7, 'seven');
11955
ERROR HY000: CHECK OPTION failed 'test.v3'
11956
INSERT INTO v3 VALUES(8, 'eight');
11963
option_variant <nothing> - WITH CHECK OPTION - WITH CASCADED CHECK OPTION
11964
option_variant --------------------------------------------------------------------------------
11965
INSERT INTO t1 VALUES(16, 'sixteen');
11966
INSERT INTO t1 VALUES(0, 'zero');
11967
INSERT INTO t1 VALUES(7, 'seven');
11968
INSERT INTO t1 VALUES(8, 'eight');
11988
INSERT INTO t1 VALUES(16, 'sixteen');
11989
INSERT INTO t1 VALUES(0, 'zero');
11990
INSERT INTO t1 VALUES(7, 'seven');
11991
INSERT INTO t1 VALUES(8, 'eight');
11992
DELETE FROM v3 WHERE my_col1 = 16;
11994
DELETE FROM v3 WHERE my_col1 = 0;
11996
DELETE FROM v3 WHERE my_col1 = 7;
11998
DELETE FROM v3 WHERE my_col1 = 8;
12006
INSERT INTO t1 VALUES(16, 'sixteen');
12007
INSERT INTO t1 VALUES(0, 'zero');
12008
INSERT INTO t1 VALUES(7, 'seven');
12009
INSERT INTO t1 VALUES(8, 'eight');
12010
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
12012
info: Rows matched: 0 Changed: 0 Warnings: 0
12013
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
12015
info: Rows matched: 0 Changed: 0 Warnings: 0
12016
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
12018
info: Rows matched: 0 Changed: 0 Warnings: 0
12019
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
12021
info: Rows matched: 1 Changed: 1 Warnings: 0
12029
INSERT INTO t1 VALUES(8, 'eight');
12030
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
12032
info: Rows matched: 1 Changed: 1 Warnings: 0
12037
INSERT INTO t1 VALUES(8, 'eight');
12038
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
12040
info: Rows matched: 1 Changed: 1 Warnings: 0
12045
INSERT INTO t1 VALUES(8, 'eight');
12046
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
12048
info: Rows matched: 1 Changed: 1 Warnings: 0
12053
INSERT INTO t1 VALUES(8, 'eight');
12054
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
12056
info: Rows matched: 1 Changed: 1 Warnings: 0
12061
INSERT INTO v3 VALUES(16, 'sixteen');
12063
INSERT INTO v3 VALUES(0, 'zero');
12065
INSERT INTO v3 VALUES(7, 'seven');
12067
INSERT INTO v3 VALUES(8, 'eight');
12078
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
12079
FROM v1 WHERE f1 BETWEEN 6 AND 16 ;
12080
option_variant WITH LOCAL CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION
12081
option_variant --------------------------------------------------------------------------------
12082
INSERT INTO t1 VALUES(16, 'sixteen');
12083
INSERT INTO t1 VALUES(0, 'zero');
12084
INSERT INTO t1 VALUES(7, 'seven');
12085
INSERT INTO t1 VALUES(8, 'eight');
12105
INSERT INTO t1 VALUES(16, 'sixteen');
12106
INSERT INTO t1 VALUES(0, 'zero');
12107
INSERT INTO t1 VALUES(7, 'seven');
12108
INSERT INTO t1 VALUES(8, 'eight');
12109
DELETE FROM v3 WHERE my_col1 = 16;
12111
DELETE FROM v3 WHERE my_col1 = 0;
12113
DELETE FROM v3 WHERE my_col1 = 7;
12115
DELETE FROM v3 WHERE my_col1 = 8;
12123
INSERT INTO t1 VALUES(16, 'sixteen');
12124
INSERT INTO t1 VALUES(0, 'zero');
12125
INSERT INTO t1 VALUES(7, 'seven');
12126
INSERT INTO t1 VALUES(8, 'eight');
12127
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
12129
info: Rows matched: 0 Changed: 0 Warnings: 0
12130
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
12132
info: Rows matched: 0 Changed: 0 Warnings: 0
12133
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
12135
info: Rows matched: 0 Changed: 0 Warnings: 0
12136
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
12138
info: Rows matched: 1 Changed: 1 Warnings: 0
12146
INSERT INTO t1 VALUES(8, 'eight');
12147
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
12148
ERROR HY000: CHECK OPTION failed 'test.v3'
12153
INSERT INTO t1 VALUES(8, 'eight');
12154
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
12156
info: Rows matched: 1 Changed: 1 Warnings: 0
12161
INSERT INTO t1 VALUES(8, 'eight');
12162
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
12164
info: Rows matched: 1 Changed: 1 Warnings: 0
12169
INSERT INTO t1 VALUES(8, 'eight');
12170
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
12172
info: Rows matched: 1 Changed: 1 Warnings: 0
12177
INSERT INTO v3 VALUES(16, 'sixteen');
12179
INSERT INTO v3 VALUES(0, 'zero');
12181
INSERT INTO v3 VALUES(7, 'seven');
12182
ERROR HY000: CHECK OPTION failed 'test.v3'
12183
INSERT INTO v3 VALUES(8, 'eight');
12192
option_variant WITH CASCADED CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION
12193
option_variant --------------------------------------------------------------------------------
12194
INSERT INTO t1 VALUES(16, 'sixteen');
12195
INSERT INTO t1 VALUES(0, 'zero');
12196
INSERT INTO t1 VALUES(7, 'seven');
12197
INSERT INTO t1 VALUES(8, 'eight');
12217
INSERT INTO t1 VALUES(16, 'sixteen');
12218
INSERT INTO t1 VALUES(0, 'zero');
12219
INSERT INTO t1 VALUES(7, 'seven');
12220
INSERT INTO t1 VALUES(8, 'eight');
12221
DELETE FROM v3 WHERE my_col1 = 16;
12223
DELETE FROM v3 WHERE my_col1 = 0;
12225
DELETE FROM v3 WHERE my_col1 = 7;
12227
DELETE FROM v3 WHERE my_col1 = 8;
12235
INSERT INTO t1 VALUES(16, 'sixteen');
12236
INSERT INTO t1 VALUES(0, 'zero');
12237
INSERT INTO t1 VALUES(7, 'seven');
12238
INSERT INTO t1 VALUES(8, 'eight');
12239
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
12241
info: Rows matched: 0 Changed: 0 Warnings: 0
12242
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
12244
info: Rows matched: 0 Changed: 0 Warnings: 0
12245
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
12247
info: Rows matched: 0 Changed: 0 Warnings: 0
12248
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
12250
info: Rows matched: 1 Changed: 1 Warnings: 0
12258
INSERT INTO t1 VALUES(8, 'eight');
12259
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
12260
ERROR HY000: CHECK OPTION failed 'test.v3'
12265
INSERT INTO t1 VALUES(8, 'eight');
12266
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
12267
ERROR HY000: CHECK OPTION failed 'test.v3'
12272
INSERT INTO t1 VALUES(8, 'eight');
12273
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
12274
ERROR HY000: CHECK OPTION failed 'test.v3'
12279
INSERT INTO t1 VALUES(8, 'eight');
12280
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
12282
info: Rows matched: 1 Changed: 1 Warnings: 0
12287
INSERT INTO v3 VALUES(16, 'sixteen');
12288
ERROR HY000: CHECK OPTION failed 'test.v3'
12289
INSERT INTO v3 VALUES(0, 'zero');
12290
ERROR HY000: CHECK OPTION failed 'test.v3'
12291
INSERT INTO v3 VALUES(7, 'seven');
12292
ERROR HY000: CHECK OPTION failed 'test.v3'
12293
INSERT INTO v3 VALUES(8, 'eight');
12300
option_variant WITH CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION
12301
option_variant --------------------------------------------------------------------------------
12302
INSERT INTO t1 VALUES(16, 'sixteen');
12303
INSERT INTO t1 VALUES(0, 'zero');
12304
INSERT INTO t1 VALUES(7, 'seven');
12305
INSERT INTO t1 VALUES(8, 'eight');
12325
INSERT INTO t1 VALUES(16, 'sixteen');
12326
INSERT INTO t1 VALUES(0, 'zero');
12327
INSERT INTO t1 VALUES(7, 'seven');
12328
INSERT INTO t1 VALUES(8, 'eight');
12329
DELETE FROM v3 WHERE my_col1 = 16;
12331
DELETE FROM v3 WHERE my_col1 = 0;
12333
DELETE FROM v3 WHERE my_col1 = 7;
12335
DELETE FROM v3 WHERE my_col1 = 8;
12343
INSERT INTO t1 VALUES(16, 'sixteen');
12344
INSERT INTO t1 VALUES(0, 'zero');
12345
INSERT INTO t1 VALUES(7, 'seven');
12346
INSERT INTO t1 VALUES(8, 'eight');
12347
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
12349
info: Rows matched: 0 Changed: 0 Warnings: 0
12350
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
12352
info: Rows matched: 0 Changed: 0 Warnings: 0
12353
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
12355
info: Rows matched: 0 Changed: 0 Warnings: 0
12356
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
12358
info: Rows matched: 1 Changed: 1 Warnings: 0
12366
INSERT INTO t1 VALUES(8, 'eight');
12367
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
12368
ERROR HY000: CHECK OPTION failed 'test.v3'
12373
INSERT INTO t1 VALUES(8, 'eight');
12374
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
12375
ERROR HY000: CHECK OPTION failed 'test.v3'
12380
INSERT INTO t1 VALUES(8, 'eight');
12381
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
12382
ERROR HY000: CHECK OPTION failed 'test.v3'
12387
INSERT INTO t1 VALUES(8, 'eight');
12388
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
12390
info: Rows matched: 1 Changed: 1 Warnings: 0
12395
INSERT INTO v3 VALUES(16, 'sixteen');
12396
ERROR HY000: CHECK OPTION failed 'test.v3'
12397
INSERT INTO v3 VALUES(0, 'zero');
12398
ERROR HY000: CHECK OPTION failed 'test.v3'
12399
INSERT INTO v3 VALUES(7, 'seven');
12400
ERROR HY000: CHECK OPTION failed 'test.v3'
12401
INSERT INTO v3 VALUES(8, 'eight');
12408
option_variant <nothing> - <nothing> - WITH CASCADED CHECK OPTION
12409
option_variant --------------------------------------------------------------------------------
12410
INSERT INTO t1 VALUES(16, 'sixteen');
12411
INSERT INTO t1 VALUES(0, 'zero');
12412
INSERT INTO t1 VALUES(7, 'seven');
12413
INSERT INTO t1 VALUES(8, 'eight');
12433
INSERT INTO t1 VALUES(16, 'sixteen');
12434
INSERT INTO t1 VALUES(0, 'zero');
12435
INSERT INTO t1 VALUES(7, 'seven');
12436
INSERT INTO t1 VALUES(8, 'eight');
12437
DELETE FROM v3 WHERE my_col1 = 16;
12439
DELETE FROM v3 WHERE my_col1 = 0;
12441
DELETE FROM v3 WHERE my_col1 = 7;
12443
DELETE FROM v3 WHERE my_col1 = 8;
12451
INSERT INTO t1 VALUES(16, 'sixteen');
12452
INSERT INTO t1 VALUES(0, 'zero');
12453
INSERT INTO t1 VALUES(7, 'seven');
12454
INSERT INTO t1 VALUES(8, 'eight');
12455
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
12457
info: Rows matched: 0 Changed: 0 Warnings: 0
12458
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
12460
info: Rows matched: 0 Changed: 0 Warnings: 0
12461
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
12463
info: Rows matched: 0 Changed: 0 Warnings: 0
12464
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
12466
info: Rows matched: 1 Changed: 1 Warnings: 0
12474
INSERT INTO t1 VALUES(8, 'eight');
12475
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
12477
info: Rows matched: 1 Changed: 1 Warnings: 0
12482
INSERT INTO t1 VALUES(8, 'eight');
12483
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
12485
info: Rows matched: 1 Changed: 1 Warnings: 0
12490
INSERT INTO t1 VALUES(8, 'eight');
12491
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
12493
info: Rows matched: 1 Changed: 1 Warnings: 0
12498
INSERT INTO t1 VALUES(8, 'eight');
12499
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
12501
info: Rows matched: 1 Changed: 1 Warnings: 0
12506
INSERT INTO v3 VALUES(16, 'sixteen');
12508
INSERT INTO v3 VALUES(0, 'zero');
12510
INSERT INTO v3 VALUES(7, 'seven');
12512
INSERT INTO v3 VALUES(8, 'eight');
12524
CREATE VIEW v1 AS SELECT f1, f2
12525
FROM t1 WHERE f1 BETWEEN 0 AND 10 WITH CHECK OPTION ;
12526
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
12527
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH LOCAL CHECK OPTION ;
12528
option_variant WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION
12529
option_variant --------------------------------------------------------------------------------
12530
INSERT INTO t1 VALUES(16, 'sixteen');
12531
INSERT INTO t1 VALUES(0, 'zero');
12532
INSERT INTO t1 VALUES(7, 'seven');
12533
INSERT INTO t1 VALUES(8, 'eight');
12553
INSERT INTO t1 VALUES(16, 'sixteen');
12554
INSERT INTO t1 VALUES(0, 'zero');
12555
INSERT INTO t1 VALUES(7, 'seven');
12556
INSERT INTO t1 VALUES(8, 'eight');
12557
DELETE FROM v3 WHERE my_col1 = 16;
12559
DELETE FROM v3 WHERE my_col1 = 0;
12561
DELETE FROM v3 WHERE my_col1 = 7;
12563
DELETE FROM v3 WHERE my_col1 = 8;
12571
INSERT INTO t1 VALUES(16, 'sixteen');
12572
INSERT INTO t1 VALUES(0, 'zero');
12573
INSERT INTO t1 VALUES(7, 'seven');
12574
INSERT INTO t1 VALUES(8, 'eight');
12575
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
12577
info: Rows matched: 0 Changed: 0 Warnings: 0
12578
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
12580
info: Rows matched: 0 Changed: 0 Warnings: 0
12581
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
12583
info: Rows matched: 0 Changed: 0 Warnings: 0
12584
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
12586
info: Rows matched: 1 Changed: 1 Warnings: 0
12594
INSERT INTO t1 VALUES(8, 'eight');
12595
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
12596
ERROR HY000: CHECK OPTION failed 'test.v3'
12601
INSERT INTO t1 VALUES(8, 'eight');
12602
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
12604
info: Rows matched: 1 Changed: 1 Warnings: 0
12609
INSERT INTO t1 VALUES(8, 'eight');
12610
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
12612
info: Rows matched: 1 Changed: 1 Warnings: 0
12617
INSERT INTO t1 VALUES(8, 'eight');
12618
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
12620
info: Rows matched: 1 Changed: 1 Warnings: 0
12625
INSERT INTO v3 VALUES(16, 'sixteen');
12627
INSERT INTO v3 VALUES(0, 'zero');
12629
INSERT INTO v3 VALUES(7, 'seven');
12630
ERROR HY000: CHECK OPTION failed 'test.v3'
12631
INSERT INTO v3 VALUES(8, 'eight');
12640
option_variant WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION
12641
option_variant --------------------------------------------------------------------------------
12642
INSERT INTO t1 VALUES(16, 'sixteen');
12643
INSERT INTO t1 VALUES(0, 'zero');
12644
INSERT INTO t1 VALUES(7, 'seven');
12645
INSERT INTO t1 VALUES(8, 'eight');
12665
INSERT INTO t1 VALUES(16, 'sixteen');
12666
INSERT INTO t1 VALUES(0, 'zero');
12667
INSERT INTO t1 VALUES(7, 'seven');
12668
INSERT INTO t1 VALUES(8, 'eight');
12669
DELETE FROM v3 WHERE my_col1 = 16;
12671
DELETE FROM v3 WHERE my_col1 = 0;
12673
DELETE FROM v3 WHERE my_col1 = 7;
12675
DELETE FROM v3 WHERE my_col1 = 8;
12683
INSERT INTO t1 VALUES(16, 'sixteen');
12684
INSERT INTO t1 VALUES(0, 'zero');
12685
INSERT INTO t1 VALUES(7, 'seven');
12686
INSERT INTO t1 VALUES(8, 'eight');
12687
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
12689
info: Rows matched: 0 Changed: 0 Warnings: 0
12690
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
12692
info: Rows matched: 0 Changed: 0 Warnings: 0
12693
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
12695
info: Rows matched: 0 Changed: 0 Warnings: 0
12696
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
12698
info: Rows matched: 1 Changed: 1 Warnings: 0
12706
INSERT INTO t1 VALUES(8, 'eight');
12707
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
12708
ERROR HY000: CHECK OPTION failed 'test.v3'
12713
INSERT INTO t1 VALUES(8, 'eight');
12714
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
12715
ERROR HY000: CHECK OPTION failed 'test.v3'
12720
INSERT INTO t1 VALUES(8, 'eight');
12721
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
12722
ERROR HY000: CHECK OPTION failed 'test.v3'
12727
INSERT INTO t1 VALUES(8, 'eight');
12728
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
12730
info: Rows matched: 1 Changed: 1 Warnings: 0
12735
INSERT INTO v3 VALUES(16, 'sixteen');
12736
ERROR HY000: CHECK OPTION failed 'test.v3'
12737
INSERT INTO v3 VALUES(0, 'zero');
12738
ERROR HY000: CHECK OPTION failed 'test.v3'
12739
INSERT INTO v3 VALUES(7, 'seven');
12740
ERROR HY000: CHECK OPTION failed 'test.v3'
12741
INSERT INTO v3 VALUES(8, 'eight');
12748
option_variant WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION
12749
option_variant --------------------------------------------------------------------------------
12750
INSERT INTO t1 VALUES(16, 'sixteen');
12751
INSERT INTO t1 VALUES(0, 'zero');
12752
INSERT INTO t1 VALUES(7, 'seven');
12753
INSERT INTO t1 VALUES(8, 'eight');
12773
INSERT INTO t1 VALUES(16, 'sixteen');
12774
INSERT INTO t1 VALUES(0, 'zero');
12775
INSERT INTO t1 VALUES(7, 'seven');
12776
INSERT INTO t1 VALUES(8, 'eight');
12777
DELETE FROM v3 WHERE my_col1 = 16;
12779
DELETE FROM v3 WHERE my_col1 = 0;
12781
DELETE FROM v3 WHERE my_col1 = 7;
12783
DELETE FROM v3 WHERE my_col1 = 8;
12791
INSERT INTO t1 VALUES(16, 'sixteen');
12792
INSERT INTO t1 VALUES(0, 'zero');
12793
INSERT INTO t1 VALUES(7, 'seven');
12794
INSERT INTO t1 VALUES(8, 'eight');
12795
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
12797
info: Rows matched: 0 Changed: 0 Warnings: 0
12798
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
12800
info: Rows matched: 0 Changed: 0 Warnings: 0
12801
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
12803
info: Rows matched: 0 Changed: 0 Warnings: 0
12804
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
12806
info: Rows matched: 1 Changed: 1 Warnings: 0
12814
INSERT INTO t1 VALUES(8, 'eight');
12815
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
12816
ERROR HY000: CHECK OPTION failed 'test.v3'
12821
INSERT INTO t1 VALUES(8, 'eight');
12822
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
12823
ERROR HY000: CHECK OPTION failed 'test.v3'
12828
INSERT INTO t1 VALUES(8, 'eight');
12829
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
12830
ERROR HY000: CHECK OPTION failed 'test.v3'
12835
INSERT INTO t1 VALUES(8, 'eight');
12836
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
12838
info: Rows matched: 1 Changed: 1 Warnings: 0
12843
INSERT INTO v3 VALUES(16, 'sixteen');
12844
ERROR HY000: CHECK OPTION failed 'test.v3'
12845
INSERT INTO v3 VALUES(0, 'zero');
12846
ERROR HY000: CHECK OPTION failed 'test.v3'
12847
INSERT INTO v3 VALUES(7, 'seven');
12848
ERROR HY000: CHECK OPTION failed 'test.v3'
12849
INSERT INTO v3 VALUES(8, 'eight');
12856
option_variant <nothing> - WITH LOCAL CHECK OPTION - WITH CHECK OPTION
12857
option_variant --------------------------------------------------------------------------------
12858
INSERT INTO t1 VALUES(16, 'sixteen');
12859
INSERT INTO t1 VALUES(0, 'zero');
12860
INSERT INTO t1 VALUES(7, 'seven');
12861
INSERT INTO t1 VALUES(8, 'eight');
12881
INSERT INTO t1 VALUES(16, 'sixteen');
12882
INSERT INTO t1 VALUES(0, 'zero');
12883
INSERT INTO t1 VALUES(7, 'seven');
12884
INSERT INTO t1 VALUES(8, 'eight');
12885
DELETE FROM v3 WHERE my_col1 = 16;
12887
DELETE FROM v3 WHERE my_col1 = 0;
12889
DELETE FROM v3 WHERE my_col1 = 7;
12891
DELETE FROM v3 WHERE my_col1 = 8;
12899
INSERT INTO t1 VALUES(16, 'sixteen');
12900
INSERT INTO t1 VALUES(0, 'zero');
12901
INSERT INTO t1 VALUES(7, 'seven');
12902
INSERT INTO t1 VALUES(8, 'eight');
12903
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
12905
info: Rows matched: 0 Changed: 0 Warnings: 0
12906
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
12908
info: Rows matched: 0 Changed: 0 Warnings: 0
12909
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
12911
info: Rows matched: 0 Changed: 0 Warnings: 0
12912
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
12914
info: Rows matched: 1 Changed: 1 Warnings: 0
12922
INSERT INTO t1 VALUES(8, 'eight');
12923
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
12925
info: Rows matched: 1 Changed: 1 Warnings: 0
12930
INSERT INTO t1 VALUES(8, 'eight');
12931
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
12933
info: Rows matched: 1 Changed: 1 Warnings: 0
12938
INSERT INTO t1 VALUES(8, 'eight');
12939
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
12941
info: Rows matched: 1 Changed: 1 Warnings: 0
12946
INSERT INTO t1 VALUES(8, 'eight');
12947
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
12949
info: Rows matched: 1 Changed: 1 Warnings: 0
12954
INSERT INTO v3 VALUES(16, 'sixteen');
12956
INSERT INTO v3 VALUES(0, 'zero');
12958
INSERT INTO v3 VALUES(7, 'seven');
12960
INSERT INTO v3 VALUES(8, 'eight');
12971
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
12972
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH CASCADED CHECK OPTION ;
12973
option_variant WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION
12974
option_variant --------------------------------------------------------------------------------
12975
INSERT INTO t1 VALUES(16, 'sixteen');
12976
INSERT INTO t1 VALUES(0, 'zero');
12977
INSERT INTO t1 VALUES(7, 'seven');
12978
INSERT INTO t1 VALUES(8, 'eight');
12998
INSERT INTO t1 VALUES(16, 'sixteen');
12999
INSERT INTO t1 VALUES(0, 'zero');
13000
INSERT INTO t1 VALUES(7, 'seven');
13001
INSERT INTO t1 VALUES(8, 'eight');
13002
DELETE FROM v3 WHERE my_col1 = 16;
13004
DELETE FROM v3 WHERE my_col1 = 0;
13006
DELETE FROM v3 WHERE my_col1 = 7;
13008
DELETE FROM v3 WHERE my_col1 = 8;
13016
INSERT INTO t1 VALUES(16, 'sixteen');
13017
INSERT INTO t1 VALUES(0, 'zero');
13018
INSERT INTO t1 VALUES(7, 'seven');
13019
INSERT INTO t1 VALUES(8, 'eight');
13020
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
13022
info: Rows matched: 0 Changed: 0 Warnings: 0
13023
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
13025
info: Rows matched: 0 Changed: 0 Warnings: 0
13026
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
13028
info: Rows matched: 0 Changed: 0 Warnings: 0
13029
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
13031
info: Rows matched: 1 Changed: 1 Warnings: 0
13039
INSERT INTO t1 VALUES(8, 'eight');
13040
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
13041
ERROR HY000: CHECK OPTION failed 'test.v3'
13046
INSERT INTO t1 VALUES(8, 'eight');
13047
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
13049
info: Rows matched: 1 Changed: 1 Warnings: 0
13054
INSERT INTO t1 VALUES(8, 'eight');
13055
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
13057
info: Rows matched: 1 Changed: 1 Warnings: 0
13062
INSERT INTO t1 VALUES(8, 'eight');
13063
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
13065
info: Rows matched: 1 Changed: 1 Warnings: 0
13070
INSERT INTO v3 VALUES(16, 'sixteen');
13072
INSERT INTO v3 VALUES(0, 'zero');
13074
INSERT INTO v3 VALUES(7, 'seven');
13075
ERROR HY000: CHECK OPTION failed 'test.v3'
13076
INSERT INTO v3 VALUES(8, 'eight');
13085
option_variant WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION
13086
option_variant --------------------------------------------------------------------------------
13087
INSERT INTO t1 VALUES(16, 'sixteen');
13088
INSERT INTO t1 VALUES(0, 'zero');
13089
INSERT INTO t1 VALUES(7, 'seven');
13090
INSERT INTO t1 VALUES(8, 'eight');
13110
INSERT INTO t1 VALUES(16, 'sixteen');
13111
INSERT INTO t1 VALUES(0, 'zero');
13112
INSERT INTO t1 VALUES(7, 'seven');
13113
INSERT INTO t1 VALUES(8, 'eight');
13114
DELETE FROM v3 WHERE my_col1 = 16;
13116
DELETE FROM v3 WHERE my_col1 = 0;
13118
DELETE FROM v3 WHERE my_col1 = 7;
13120
DELETE FROM v3 WHERE my_col1 = 8;
13128
INSERT INTO t1 VALUES(16, 'sixteen');
13129
INSERT INTO t1 VALUES(0, 'zero');
13130
INSERT INTO t1 VALUES(7, 'seven');
13131
INSERT INTO t1 VALUES(8, 'eight');
13132
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
13134
info: Rows matched: 0 Changed: 0 Warnings: 0
13135
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
13137
info: Rows matched: 0 Changed: 0 Warnings: 0
13138
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
13140
info: Rows matched: 0 Changed: 0 Warnings: 0
13141
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
13143
info: Rows matched: 1 Changed: 1 Warnings: 0
13151
INSERT INTO t1 VALUES(8, 'eight');
13152
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
13153
ERROR HY000: CHECK OPTION failed 'test.v3'
13158
INSERT INTO t1 VALUES(8, 'eight');
13159
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
13160
ERROR HY000: CHECK OPTION failed 'test.v3'
13165
INSERT INTO t1 VALUES(8, 'eight');
13166
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
13167
ERROR HY000: CHECK OPTION failed 'test.v3'
13172
INSERT INTO t1 VALUES(8, 'eight');
13173
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
13175
info: Rows matched: 1 Changed: 1 Warnings: 0
13180
INSERT INTO v3 VALUES(16, 'sixteen');
13181
ERROR HY000: CHECK OPTION failed 'test.v3'
13182
INSERT INTO v3 VALUES(0, 'zero');
13183
ERROR HY000: CHECK OPTION failed 'test.v3'
13184
INSERT INTO v3 VALUES(7, 'seven');
13185
ERROR HY000: CHECK OPTION failed 'test.v3'
13186
INSERT INTO v3 VALUES(8, 'eight');
13193
option_variant WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION
13194
option_variant --------------------------------------------------------------------------------
13195
INSERT INTO t1 VALUES(16, 'sixteen');
13196
INSERT INTO t1 VALUES(0, 'zero');
13197
INSERT INTO t1 VALUES(7, 'seven');
13198
INSERT INTO t1 VALUES(8, 'eight');
13218
INSERT INTO t1 VALUES(16, 'sixteen');
13219
INSERT INTO t1 VALUES(0, 'zero');
13220
INSERT INTO t1 VALUES(7, 'seven');
13221
INSERT INTO t1 VALUES(8, 'eight');
13222
DELETE FROM v3 WHERE my_col1 = 16;
13224
DELETE FROM v3 WHERE my_col1 = 0;
13226
DELETE FROM v3 WHERE my_col1 = 7;
13228
DELETE FROM v3 WHERE my_col1 = 8;
13236
INSERT INTO t1 VALUES(16, 'sixteen');
13237
INSERT INTO t1 VALUES(0, 'zero');
13238
INSERT INTO t1 VALUES(7, 'seven');
13239
INSERT INTO t1 VALUES(8, 'eight');
13240
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
13242
info: Rows matched: 0 Changed: 0 Warnings: 0
13243
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
13245
info: Rows matched: 0 Changed: 0 Warnings: 0
13246
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
13248
info: Rows matched: 0 Changed: 0 Warnings: 0
13249
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
13251
info: Rows matched: 1 Changed: 1 Warnings: 0
13259
INSERT INTO t1 VALUES(8, 'eight');
13260
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
13261
ERROR HY000: CHECK OPTION failed 'test.v3'
13266
INSERT INTO t1 VALUES(8, 'eight');
13267
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
13268
ERROR HY000: CHECK OPTION failed 'test.v3'
13273
INSERT INTO t1 VALUES(8, 'eight');
13274
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
13275
ERROR HY000: CHECK OPTION failed 'test.v3'
13280
INSERT INTO t1 VALUES(8, 'eight');
13281
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
13283
info: Rows matched: 1 Changed: 1 Warnings: 0
13288
INSERT INTO v3 VALUES(16, 'sixteen');
13289
ERROR HY000: CHECK OPTION failed 'test.v3'
13290
INSERT INTO v3 VALUES(0, 'zero');
13291
ERROR HY000: CHECK OPTION failed 'test.v3'
13292
INSERT INTO v3 VALUES(7, 'seven');
13293
ERROR HY000: CHECK OPTION failed 'test.v3'
13294
INSERT INTO v3 VALUES(8, 'eight');
13301
option_variant <nothing> - WITH CASCADED CHECK OPTION - WITH CHECK OPTION
13302
option_variant --------------------------------------------------------------------------------
13303
INSERT INTO t1 VALUES(16, 'sixteen');
13304
INSERT INTO t1 VALUES(0, 'zero');
13305
INSERT INTO t1 VALUES(7, 'seven');
13306
INSERT INTO t1 VALUES(8, 'eight');
13326
INSERT INTO t1 VALUES(16, 'sixteen');
13327
INSERT INTO t1 VALUES(0, 'zero');
13328
INSERT INTO t1 VALUES(7, 'seven');
13329
INSERT INTO t1 VALUES(8, 'eight');
13330
DELETE FROM v3 WHERE my_col1 = 16;
13332
DELETE FROM v3 WHERE my_col1 = 0;
13334
DELETE FROM v3 WHERE my_col1 = 7;
13336
DELETE FROM v3 WHERE my_col1 = 8;
13344
INSERT INTO t1 VALUES(16, 'sixteen');
13345
INSERT INTO t1 VALUES(0, 'zero');
13346
INSERT INTO t1 VALUES(7, 'seven');
13347
INSERT INTO t1 VALUES(8, 'eight');
13348
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
13350
info: Rows matched: 0 Changed: 0 Warnings: 0
13351
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
13353
info: Rows matched: 0 Changed: 0 Warnings: 0
13354
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
13356
info: Rows matched: 0 Changed: 0 Warnings: 0
13357
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
13359
info: Rows matched: 1 Changed: 1 Warnings: 0
13367
INSERT INTO t1 VALUES(8, 'eight');
13368
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
13370
info: Rows matched: 1 Changed: 1 Warnings: 0
13375
INSERT INTO t1 VALUES(8, 'eight');
13376
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
13378
info: Rows matched: 1 Changed: 1 Warnings: 0
13383
INSERT INTO t1 VALUES(8, 'eight');
13384
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
13386
info: Rows matched: 1 Changed: 1 Warnings: 0
13391
INSERT INTO t1 VALUES(8, 'eight');
13392
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
13394
info: Rows matched: 1 Changed: 1 Warnings: 0
13399
INSERT INTO v3 VALUES(16, 'sixteen');
13401
INSERT INTO v3 VALUES(0, 'zero');
13403
INSERT INTO v3 VALUES(7, 'seven');
13405
INSERT INTO v3 VALUES(8, 'eight');
13416
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
13417
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH CHECK OPTION ;
13418
option_variant WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION
13419
option_variant --------------------------------------------------------------------------------
13420
INSERT INTO t1 VALUES(16, 'sixteen');
13421
INSERT INTO t1 VALUES(0, 'zero');
13422
INSERT INTO t1 VALUES(7, 'seven');
13423
INSERT INTO t1 VALUES(8, 'eight');
13443
INSERT INTO t1 VALUES(16, 'sixteen');
13444
INSERT INTO t1 VALUES(0, 'zero');
13445
INSERT INTO t1 VALUES(7, 'seven');
13446
INSERT INTO t1 VALUES(8, 'eight');
13447
DELETE FROM v3 WHERE my_col1 = 16;
13449
DELETE FROM v3 WHERE my_col1 = 0;
13451
DELETE FROM v3 WHERE my_col1 = 7;
13453
DELETE FROM v3 WHERE my_col1 = 8;
13461
INSERT INTO t1 VALUES(16, 'sixteen');
13462
INSERT INTO t1 VALUES(0, 'zero');
13463
INSERT INTO t1 VALUES(7, 'seven');
13464
INSERT INTO t1 VALUES(8, 'eight');
13465
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
13467
info: Rows matched: 0 Changed: 0 Warnings: 0
13468
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
13470
info: Rows matched: 0 Changed: 0 Warnings: 0
13471
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
13473
info: Rows matched: 0 Changed: 0 Warnings: 0
13474
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
13476
info: Rows matched: 1 Changed: 1 Warnings: 0
13484
INSERT INTO t1 VALUES(8, 'eight');
13485
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
13486
ERROR HY000: CHECK OPTION failed 'test.v3'
13491
INSERT INTO t1 VALUES(8, 'eight');
13492
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
13494
info: Rows matched: 1 Changed: 1 Warnings: 0
13499
INSERT INTO t1 VALUES(8, 'eight');
13500
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
13502
info: Rows matched: 1 Changed: 1 Warnings: 0
13507
INSERT INTO t1 VALUES(8, 'eight');
13508
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
13510
info: Rows matched: 1 Changed: 1 Warnings: 0
13515
INSERT INTO v3 VALUES(16, 'sixteen');
13517
INSERT INTO v3 VALUES(0, 'zero');
13519
INSERT INTO v3 VALUES(7, 'seven');
13520
ERROR HY000: CHECK OPTION failed 'test.v3'
13521
INSERT INTO v3 VALUES(8, 'eight');
13530
option_variant WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION
13531
option_variant --------------------------------------------------------------------------------
13532
INSERT INTO t1 VALUES(16, 'sixteen');
13533
INSERT INTO t1 VALUES(0, 'zero');
13534
INSERT INTO t1 VALUES(7, 'seven');
13535
INSERT INTO t1 VALUES(8, 'eight');
13555
INSERT INTO t1 VALUES(16, 'sixteen');
13556
INSERT INTO t1 VALUES(0, 'zero');
13557
INSERT INTO t1 VALUES(7, 'seven');
13558
INSERT INTO t1 VALUES(8, 'eight');
13559
DELETE FROM v3 WHERE my_col1 = 16;
13561
DELETE FROM v3 WHERE my_col1 = 0;
13563
DELETE FROM v3 WHERE my_col1 = 7;
13565
DELETE FROM v3 WHERE my_col1 = 8;
13573
INSERT INTO t1 VALUES(16, 'sixteen');
13574
INSERT INTO t1 VALUES(0, 'zero');
13575
INSERT INTO t1 VALUES(7, 'seven');
13576
INSERT INTO t1 VALUES(8, 'eight');
13577
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
13579
info: Rows matched: 0 Changed: 0 Warnings: 0
13580
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
13582
info: Rows matched: 0 Changed: 0 Warnings: 0
13583
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
13585
info: Rows matched: 0 Changed: 0 Warnings: 0
13586
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
13588
info: Rows matched: 1 Changed: 1 Warnings: 0
13596
INSERT INTO t1 VALUES(8, 'eight');
13597
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
13598
ERROR HY000: CHECK OPTION failed 'test.v3'
13603
INSERT INTO t1 VALUES(8, 'eight');
13604
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
13605
ERROR HY000: CHECK OPTION failed 'test.v3'
13610
INSERT INTO t1 VALUES(8, 'eight');
13611
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
13612
ERROR HY000: CHECK OPTION failed 'test.v3'
13617
INSERT INTO t1 VALUES(8, 'eight');
13618
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
13620
info: Rows matched: 1 Changed: 1 Warnings: 0
13625
INSERT INTO v3 VALUES(16, 'sixteen');
13626
ERROR HY000: CHECK OPTION failed 'test.v3'
13627
INSERT INTO v3 VALUES(0, 'zero');
13628
ERROR HY000: CHECK OPTION failed 'test.v3'
13629
INSERT INTO v3 VALUES(7, 'seven');
13630
ERROR HY000: CHECK OPTION failed 'test.v3'
13631
INSERT INTO v3 VALUES(8, 'eight');
13638
option_variant WITH CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION
13639
option_variant --------------------------------------------------------------------------------
13640
INSERT INTO t1 VALUES(16, 'sixteen');
13641
INSERT INTO t1 VALUES(0, 'zero');
13642
INSERT INTO t1 VALUES(7, 'seven');
13643
INSERT INTO t1 VALUES(8, 'eight');
13663
INSERT INTO t1 VALUES(16, 'sixteen');
13664
INSERT INTO t1 VALUES(0, 'zero');
13665
INSERT INTO t1 VALUES(7, 'seven');
13666
INSERT INTO t1 VALUES(8, 'eight');
13667
DELETE FROM v3 WHERE my_col1 = 16;
13669
DELETE FROM v3 WHERE my_col1 = 0;
13671
DELETE FROM v3 WHERE my_col1 = 7;
13673
DELETE FROM v3 WHERE my_col1 = 8;
13681
INSERT INTO t1 VALUES(16, 'sixteen');
13682
INSERT INTO t1 VALUES(0, 'zero');
13683
INSERT INTO t1 VALUES(7, 'seven');
13684
INSERT INTO t1 VALUES(8, 'eight');
13685
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
13687
info: Rows matched: 0 Changed: 0 Warnings: 0
13688
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
13690
info: Rows matched: 0 Changed: 0 Warnings: 0
13691
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
13693
info: Rows matched: 0 Changed: 0 Warnings: 0
13694
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
13696
info: Rows matched: 1 Changed: 1 Warnings: 0
13704
INSERT INTO t1 VALUES(8, 'eight');
13705
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
13706
ERROR HY000: CHECK OPTION failed 'test.v3'
13711
INSERT INTO t1 VALUES(8, 'eight');
13712
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
13713
ERROR HY000: CHECK OPTION failed 'test.v3'
13718
INSERT INTO t1 VALUES(8, 'eight');
13719
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
13720
ERROR HY000: CHECK OPTION failed 'test.v3'
13725
INSERT INTO t1 VALUES(8, 'eight');
13726
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
13728
info: Rows matched: 1 Changed: 1 Warnings: 0
13733
INSERT INTO v3 VALUES(16, 'sixteen');
13734
ERROR HY000: CHECK OPTION failed 'test.v3'
13735
INSERT INTO v3 VALUES(0, 'zero');
13736
ERROR HY000: CHECK OPTION failed 'test.v3'
13737
INSERT INTO v3 VALUES(7, 'seven');
13738
ERROR HY000: CHECK OPTION failed 'test.v3'
13739
INSERT INTO v3 VALUES(8, 'eight');
13746
option_variant <nothing> - WITH CHECK OPTION - WITH CHECK OPTION
13747
option_variant --------------------------------------------------------------------------------
13748
INSERT INTO t1 VALUES(16, 'sixteen');
13749
INSERT INTO t1 VALUES(0, 'zero');
13750
INSERT INTO t1 VALUES(7, 'seven');
13751
INSERT INTO t1 VALUES(8, 'eight');
13771
INSERT INTO t1 VALUES(16, 'sixteen');
13772
INSERT INTO t1 VALUES(0, 'zero');
13773
INSERT INTO t1 VALUES(7, 'seven');
13774
INSERT INTO t1 VALUES(8, 'eight');
13775
DELETE FROM v3 WHERE my_col1 = 16;
13777
DELETE FROM v3 WHERE my_col1 = 0;
13779
DELETE FROM v3 WHERE my_col1 = 7;
13781
DELETE FROM v3 WHERE my_col1 = 8;
13789
INSERT INTO t1 VALUES(16, 'sixteen');
13790
INSERT INTO t1 VALUES(0, 'zero');
13791
INSERT INTO t1 VALUES(7, 'seven');
13792
INSERT INTO t1 VALUES(8, 'eight');
13793
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
13795
info: Rows matched: 0 Changed: 0 Warnings: 0
13796
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
13798
info: Rows matched: 0 Changed: 0 Warnings: 0
13799
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
13801
info: Rows matched: 0 Changed: 0 Warnings: 0
13802
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
13804
info: Rows matched: 1 Changed: 1 Warnings: 0
13812
INSERT INTO t1 VALUES(8, 'eight');
13813
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
13815
info: Rows matched: 1 Changed: 1 Warnings: 0
13820
INSERT INTO t1 VALUES(8, 'eight');
13821
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
13823
info: Rows matched: 1 Changed: 1 Warnings: 0
13828
INSERT INTO t1 VALUES(8, 'eight');
13829
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
13831
info: Rows matched: 1 Changed: 1 Warnings: 0
13836
INSERT INTO t1 VALUES(8, 'eight');
13837
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
13839
info: Rows matched: 1 Changed: 1 Warnings: 0
13844
INSERT INTO v3 VALUES(16, 'sixteen');
13846
INSERT INTO v3 VALUES(0, 'zero');
13848
INSERT INTO v3 VALUES(7, 'seven');
13850
INSERT INTO v3 VALUES(8, 'eight');
13861
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
13862
FROM v1 WHERE f1 BETWEEN 6 AND 16 ;
13863
option_variant WITH LOCAL CHECK OPTION - <nothing> - WITH CHECK OPTION
13864
option_variant --------------------------------------------------------------------------------
13865
INSERT INTO t1 VALUES(16, 'sixteen');
13866
INSERT INTO t1 VALUES(0, 'zero');
13867
INSERT INTO t1 VALUES(7, 'seven');
13868
INSERT INTO t1 VALUES(8, 'eight');
13888
INSERT INTO t1 VALUES(16, 'sixteen');
13889
INSERT INTO t1 VALUES(0, 'zero');
13890
INSERT INTO t1 VALUES(7, 'seven');
13891
INSERT INTO t1 VALUES(8, 'eight');
13892
DELETE FROM v3 WHERE my_col1 = 16;
13894
DELETE FROM v3 WHERE my_col1 = 0;
13896
DELETE FROM v3 WHERE my_col1 = 7;
13898
DELETE FROM v3 WHERE my_col1 = 8;
13906
INSERT INTO t1 VALUES(16, 'sixteen');
13907
INSERT INTO t1 VALUES(0, 'zero');
13908
INSERT INTO t1 VALUES(7, 'seven');
13909
INSERT INTO t1 VALUES(8, 'eight');
13910
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
13912
info: Rows matched: 0 Changed: 0 Warnings: 0
13913
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
13915
info: Rows matched: 0 Changed: 0 Warnings: 0
13916
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
13918
info: Rows matched: 0 Changed: 0 Warnings: 0
13919
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
13921
info: Rows matched: 1 Changed: 1 Warnings: 0
13929
INSERT INTO t1 VALUES(8, 'eight');
13930
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
13931
ERROR HY000: CHECK OPTION failed 'test.v3'
13936
INSERT INTO t1 VALUES(8, 'eight');
13937
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
13939
info: Rows matched: 1 Changed: 1 Warnings: 0
13944
INSERT INTO t1 VALUES(8, 'eight');
13945
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
13947
info: Rows matched: 1 Changed: 1 Warnings: 0
13952
INSERT INTO t1 VALUES(8, 'eight');
13953
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
13955
info: Rows matched: 1 Changed: 1 Warnings: 0
13960
INSERT INTO v3 VALUES(16, 'sixteen');
13962
INSERT INTO v3 VALUES(0, 'zero');
13964
INSERT INTO v3 VALUES(7, 'seven');
13965
ERROR HY000: CHECK OPTION failed 'test.v3'
13966
INSERT INTO v3 VALUES(8, 'eight');
13975
option_variant WITH CASCADED CHECK OPTION - <nothing> - WITH CHECK OPTION
13976
option_variant --------------------------------------------------------------------------------
13977
INSERT INTO t1 VALUES(16, 'sixteen');
13978
INSERT INTO t1 VALUES(0, 'zero');
13979
INSERT INTO t1 VALUES(7, 'seven');
13980
INSERT INTO t1 VALUES(8, 'eight');
14000
INSERT INTO t1 VALUES(16, 'sixteen');
14001
INSERT INTO t1 VALUES(0, 'zero');
14002
INSERT INTO t1 VALUES(7, 'seven');
14003
INSERT INTO t1 VALUES(8, 'eight');
14004
DELETE FROM v3 WHERE my_col1 = 16;
14006
DELETE FROM v3 WHERE my_col1 = 0;
14008
DELETE FROM v3 WHERE my_col1 = 7;
14010
DELETE FROM v3 WHERE my_col1 = 8;
14018
INSERT INTO t1 VALUES(16, 'sixteen');
14019
INSERT INTO t1 VALUES(0, 'zero');
14020
INSERT INTO t1 VALUES(7, 'seven');
14021
INSERT INTO t1 VALUES(8, 'eight');
14022
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
14024
info: Rows matched: 0 Changed: 0 Warnings: 0
14025
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
14027
info: Rows matched: 0 Changed: 0 Warnings: 0
14028
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
14030
info: Rows matched: 0 Changed: 0 Warnings: 0
14031
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
14033
info: Rows matched: 1 Changed: 1 Warnings: 0
14041
INSERT INTO t1 VALUES(8, 'eight');
14042
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
14043
ERROR HY000: CHECK OPTION failed 'test.v3'
14048
INSERT INTO t1 VALUES(8, 'eight');
14049
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
14050
ERROR HY000: CHECK OPTION failed 'test.v3'
14055
INSERT INTO t1 VALUES(8, 'eight');
14056
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
14057
ERROR HY000: CHECK OPTION failed 'test.v3'
14062
INSERT INTO t1 VALUES(8, 'eight');
14063
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
14065
info: Rows matched: 1 Changed: 1 Warnings: 0
14070
INSERT INTO v3 VALUES(16, 'sixteen');
14071
ERROR HY000: CHECK OPTION failed 'test.v3'
14072
INSERT INTO v3 VALUES(0, 'zero');
14073
ERROR HY000: CHECK OPTION failed 'test.v3'
14074
INSERT INTO v3 VALUES(7, 'seven');
14075
ERROR HY000: CHECK OPTION failed 'test.v3'
14076
INSERT INTO v3 VALUES(8, 'eight');
14083
option_variant WITH CHECK OPTION - <nothing> - WITH CHECK OPTION
14084
option_variant --------------------------------------------------------------------------------
14085
INSERT INTO t1 VALUES(16, 'sixteen');
14086
INSERT INTO t1 VALUES(0, 'zero');
14087
INSERT INTO t1 VALUES(7, 'seven');
14088
INSERT INTO t1 VALUES(8, 'eight');
14108
INSERT INTO t1 VALUES(16, 'sixteen');
14109
INSERT INTO t1 VALUES(0, 'zero');
14110
INSERT INTO t1 VALUES(7, 'seven');
14111
INSERT INTO t1 VALUES(8, 'eight');
14112
DELETE FROM v3 WHERE my_col1 = 16;
14114
DELETE FROM v3 WHERE my_col1 = 0;
14116
DELETE FROM v3 WHERE my_col1 = 7;
14118
DELETE FROM v3 WHERE my_col1 = 8;
14126
INSERT INTO t1 VALUES(16, 'sixteen');
14127
INSERT INTO t1 VALUES(0, 'zero');
14128
INSERT INTO t1 VALUES(7, 'seven');
14129
INSERT INTO t1 VALUES(8, 'eight');
14130
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
14132
info: Rows matched: 0 Changed: 0 Warnings: 0
14133
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
14135
info: Rows matched: 0 Changed: 0 Warnings: 0
14136
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
14138
info: Rows matched: 0 Changed: 0 Warnings: 0
14139
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
14141
info: Rows matched: 1 Changed: 1 Warnings: 0
14149
INSERT INTO t1 VALUES(8, 'eight');
14150
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
14151
ERROR HY000: CHECK OPTION failed 'test.v3'
14156
INSERT INTO t1 VALUES(8, 'eight');
14157
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
14158
ERROR HY000: CHECK OPTION failed 'test.v3'
14163
INSERT INTO t1 VALUES(8, 'eight');
14164
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
14165
ERROR HY000: CHECK OPTION failed 'test.v3'
14170
INSERT INTO t1 VALUES(8, 'eight');
14171
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
14173
info: Rows matched: 1 Changed: 1 Warnings: 0
14178
INSERT INTO v3 VALUES(16, 'sixteen');
14179
ERROR HY000: CHECK OPTION failed 'test.v3'
14180
INSERT INTO v3 VALUES(0, 'zero');
14181
ERROR HY000: CHECK OPTION failed 'test.v3'
14182
INSERT INTO v3 VALUES(7, 'seven');
14183
ERROR HY000: CHECK OPTION failed 'test.v3'
14184
INSERT INTO v3 VALUES(8, 'eight');
14191
option_variant <nothing> - <nothing> - WITH CHECK OPTION
14192
option_variant --------------------------------------------------------------------------------
14193
INSERT INTO t1 VALUES(16, 'sixteen');
14194
INSERT INTO t1 VALUES(0, 'zero');
14195
INSERT INTO t1 VALUES(7, 'seven');
14196
INSERT INTO t1 VALUES(8, 'eight');
14216
INSERT INTO t1 VALUES(16, 'sixteen');
14217
INSERT INTO t1 VALUES(0, 'zero');
14218
INSERT INTO t1 VALUES(7, 'seven');
14219
INSERT INTO t1 VALUES(8, 'eight');
14220
DELETE FROM v3 WHERE my_col1 = 16;
14222
DELETE FROM v3 WHERE my_col1 = 0;
14224
DELETE FROM v3 WHERE my_col1 = 7;
14226
DELETE FROM v3 WHERE my_col1 = 8;
14234
INSERT INTO t1 VALUES(16, 'sixteen');
14235
INSERT INTO t1 VALUES(0, 'zero');
14236
INSERT INTO t1 VALUES(7, 'seven');
14237
INSERT INTO t1 VALUES(8, 'eight');
14238
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
14240
info: Rows matched: 0 Changed: 0 Warnings: 0
14241
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
14243
info: Rows matched: 0 Changed: 0 Warnings: 0
14244
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
14246
info: Rows matched: 0 Changed: 0 Warnings: 0
14247
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
14249
info: Rows matched: 1 Changed: 1 Warnings: 0
14257
INSERT INTO t1 VALUES(8, 'eight');
14258
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
14260
info: Rows matched: 1 Changed: 1 Warnings: 0
14265
INSERT INTO t1 VALUES(8, 'eight');
14266
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
14268
info: Rows matched: 1 Changed: 1 Warnings: 0
14273
INSERT INTO t1 VALUES(8, 'eight');
14274
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
14276
info: Rows matched: 1 Changed: 1 Warnings: 0
14281
INSERT INTO t1 VALUES(8, 'eight');
14282
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
14284
info: Rows matched: 1 Changed: 1 Warnings: 0
14289
INSERT INTO v3 VALUES(16, 'sixteen');
14291
INSERT INTO v3 VALUES(0, 'zero');
14293
INSERT INTO v3 VALUES(7, 'seven');
14295
INSERT INTO v3 VALUES(8, 'eight');
14307
CREATE VIEW v1 AS SELECT f1, f2
14308
FROM t1 WHERE f1 BETWEEN 0 AND 10 ;
14309
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
14310
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH LOCAL CHECK OPTION ;
14311
option_variant WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing>
14312
option_variant --------------------------------------------------------------------------------
14313
INSERT INTO t1 VALUES(16, 'sixteen');
14314
INSERT INTO t1 VALUES(0, 'zero');
14315
INSERT INTO t1 VALUES(7, 'seven');
14316
INSERT INTO t1 VALUES(8, 'eight');
14336
INSERT INTO t1 VALUES(16, 'sixteen');
14337
INSERT INTO t1 VALUES(0, 'zero');
14338
INSERT INTO t1 VALUES(7, 'seven');
14339
INSERT INTO t1 VALUES(8, 'eight');
14340
DELETE FROM v3 WHERE my_col1 = 16;
14342
DELETE FROM v3 WHERE my_col1 = 0;
14344
DELETE FROM v3 WHERE my_col1 = 7;
14346
DELETE FROM v3 WHERE my_col1 = 8;
14354
INSERT INTO t1 VALUES(16, 'sixteen');
14355
INSERT INTO t1 VALUES(0, 'zero');
14356
INSERT INTO t1 VALUES(7, 'seven');
14357
INSERT INTO t1 VALUES(8, 'eight');
14358
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
14360
info: Rows matched: 0 Changed: 0 Warnings: 0
14361
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
14363
info: Rows matched: 0 Changed: 0 Warnings: 0
14364
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
14366
info: Rows matched: 0 Changed: 0 Warnings: 0
14367
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
14369
info: Rows matched: 1 Changed: 1 Warnings: 0
14377
INSERT INTO t1 VALUES(8, 'eight');
14378
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
14379
ERROR HY000: CHECK OPTION failed 'test.v3'
14384
INSERT INTO t1 VALUES(8, 'eight');
14385
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
14387
info: Rows matched: 1 Changed: 1 Warnings: 0
14392
INSERT INTO t1 VALUES(8, 'eight');
14393
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
14395
info: Rows matched: 1 Changed: 1 Warnings: 0
14400
INSERT INTO t1 VALUES(8, 'eight');
14401
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
14403
info: Rows matched: 1 Changed: 1 Warnings: 0
14408
INSERT INTO v3 VALUES(16, 'sixteen');
14410
INSERT INTO v3 VALUES(0, 'zero');
14412
INSERT INTO v3 VALUES(7, 'seven');
14413
ERROR HY000: CHECK OPTION failed 'test.v3'
14414
INSERT INTO v3 VALUES(8, 'eight');
14423
option_variant WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing>
14424
option_variant --------------------------------------------------------------------------------
14425
INSERT INTO t1 VALUES(16, 'sixteen');
14426
INSERT INTO t1 VALUES(0, 'zero');
14427
INSERT INTO t1 VALUES(7, 'seven');
14428
INSERT INTO t1 VALUES(8, 'eight');
14448
INSERT INTO t1 VALUES(16, 'sixteen');
14449
INSERT INTO t1 VALUES(0, 'zero');
14450
INSERT INTO t1 VALUES(7, 'seven');
14451
INSERT INTO t1 VALUES(8, 'eight');
14452
DELETE FROM v3 WHERE my_col1 = 16;
14454
DELETE FROM v3 WHERE my_col1 = 0;
14456
DELETE FROM v3 WHERE my_col1 = 7;
14458
DELETE FROM v3 WHERE my_col1 = 8;
14466
INSERT INTO t1 VALUES(16, 'sixteen');
14467
INSERT INTO t1 VALUES(0, 'zero');
14468
INSERT INTO t1 VALUES(7, 'seven');
14469
INSERT INTO t1 VALUES(8, 'eight');
14470
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
14472
info: Rows matched: 0 Changed: 0 Warnings: 0
14473
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
14475
info: Rows matched: 0 Changed: 0 Warnings: 0
14476
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
14478
info: Rows matched: 0 Changed: 0 Warnings: 0
14479
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
14481
info: Rows matched: 1 Changed: 1 Warnings: 0
14489
INSERT INTO t1 VALUES(8, 'eight');
14490
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
14491
ERROR HY000: CHECK OPTION failed 'test.v3'
14496
INSERT INTO t1 VALUES(8, 'eight');
14497
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
14498
ERROR HY000: CHECK OPTION failed 'test.v3'
14503
INSERT INTO t1 VALUES(8, 'eight');
14504
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
14505
ERROR HY000: CHECK OPTION failed 'test.v3'
14510
INSERT INTO t1 VALUES(8, 'eight');
14511
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
14513
info: Rows matched: 1 Changed: 1 Warnings: 0
14518
INSERT INTO v3 VALUES(16, 'sixteen');
14519
ERROR HY000: CHECK OPTION failed 'test.v3'
14520
INSERT INTO v3 VALUES(0, 'zero');
14521
ERROR HY000: CHECK OPTION failed 'test.v3'
14522
INSERT INTO v3 VALUES(7, 'seven');
14523
ERROR HY000: CHECK OPTION failed 'test.v3'
14524
INSERT INTO v3 VALUES(8, 'eight');
14531
option_variant WITH CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing>
14532
option_variant --------------------------------------------------------------------------------
14533
INSERT INTO t1 VALUES(16, 'sixteen');
14534
INSERT INTO t1 VALUES(0, 'zero');
14535
INSERT INTO t1 VALUES(7, 'seven');
14536
INSERT INTO t1 VALUES(8, 'eight');
14556
INSERT INTO t1 VALUES(16, 'sixteen');
14557
INSERT INTO t1 VALUES(0, 'zero');
14558
INSERT INTO t1 VALUES(7, 'seven');
14559
INSERT INTO t1 VALUES(8, 'eight');
14560
DELETE FROM v3 WHERE my_col1 = 16;
14562
DELETE FROM v3 WHERE my_col1 = 0;
14564
DELETE FROM v3 WHERE my_col1 = 7;
14566
DELETE FROM v3 WHERE my_col1 = 8;
14574
INSERT INTO t1 VALUES(16, 'sixteen');
14575
INSERT INTO t1 VALUES(0, 'zero');
14576
INSERT INTO t1 VALUES(7, 'seven');
14577
INSERT INTO t1 VALUES(8, 'eight');
14578
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
14580
info: Rows matched: 0 Changed: 0 Warnings: 0
14581
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
14583
info: Rows matched: 0 Changed: 0 Warnings: 0
14584
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
14586
info: Rows matched: 0 Changed: 0 Warnings: 0
14587
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
14589
info: Rows matched: 1 Changed: 1 Warnings: 0
14597
INSERT INTO t1 VALUES(8, 'eight');
14598
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
14599
ERROR HY000: CHECK OPTION failed 'test.v3'
14604
INSERT INTO t1 VALUES(8, 'eight');
14605
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
14606
ERROR HY000: CHECK OPTION failed 'test.v3'
14611
INSERT INTO t1 VALUES(8, 'eight');
14612
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
14613
ERROR HY000: CHECK OPTION failed 'test.v3'
14618
INSERT INTO t1 VALUES(8, 'eight');
14619
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
14621
info: Rows matched: 1 Changed: 1 Warnings: 0
14626
INSERT INTO v3 VALUES(16, 'sixteen');
14627
ERROR HY000: CHECK OPTION failed 'test.v3'
14628
INSERT INTO v3 VALUES(0, 'zero');
14629
ERROR HY000: CHECK OPTION failed 'test.v3'
14630
INSERT INTO v3 VALUES(7, 'seven');
14631
ERROR HY000: CHECK OPTION failed 'test.v3'
14632
INSERT INTO v3 VALUES(8, 'eight');
14639
option_variant <nothing> - WITH LOCAL CHECK OPTION - <nothing>
14640
option_variant --------------------------------------------------------------------------------
14641
INSERT INTO t1 VALUES(16, 'sixteen');
14642
INSERT INTO t1 VALUES(0, 'zero');
14643
INSERT INTO t1 VALUES(7, 'seven');
14644
INSERT INTO t1 VALUES(8, 'eight');
14664
INSERT INTO t1 VALUES(16, 'sixteen');
14665
INSERT INTO t1 VALUES(0, 'zero');
14666
INSERT INTO t1 VALUES(7, 'seven');
14667
INSERT INTO t1 VALUES(8, 'eight');
14668
DELETE FROM v3 WHERE my_col1 = 16;
14670
DELETE FROM v3 WHERE my_col1 = 0;
14672
DELETE FROM v3 WHERE my_col1 = 7;
14674
DELETE FROM v3 WHERE my_col1 = 8;
14682
INSERT INTO t1 VALUES(16, 'sixteen');
14683
INSERT INTO t1 VALUES(0, 'zero');
14684
INSERT INTO t1 VALUES(7, 'seven');
14685
INSERT INTO t1 VALUES(8, 'eight');
14686
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
14688
info: Rows matched: 0 Changed: 0 Warnings: 0
14689
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
14691
info: Rows matched: 0 Changed: 0 Warnings: 0
14692
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
14694
info: Rows matched: 0 Changed: 0 Warnings: 0
14695
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
14697
info: Rows matched: 1 Changed: 1 Warnings: 0
14705
INSERT INTO t1 VALUES(8, 'eight');
14706
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
14708
info: Rows matched: 1 Changed: 1 Warnings: 0
14713
INSERT INTO t1 VALUES(8, 'eight');
14714
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
14716
info: Rows matched: 1 Changed: 1 Warnings: 0
14721
INSERT INTO t1 VALUES(8, 'eight');
14722
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
14724
info: Rows matched: 1 Changed: 1 Warnings: 0
14729
INSERT INTO t1 VALUES(8, 'eight');
14730
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
14732
info: Rows matched: 1 Changed: 1 Warnings: 0
14737
INSERT INTO v3 VALUES(16, 'sixteen');
14739
INSERT INTO v3 VALUES(0, 'zero');
14741
INSERT INTO v3 VALUES(7, 'seven');
14743
INSERT INTO v3 VALUES(8, 'eight');
14754
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
14755
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH CASCADED CHECK OPTION ;
14756
option_variant WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing>
14757
option_variant --------------------------------------------------------------------------------
14758
INSERT INTO t1 VALUES(16, 'sixteen');
14759
INSERT INTO t1 VALUES(0, 'zero');
14760
INSERT INTO t1 VALUES(7, 'seven');
14761
INSERT INTO t1 VALUES(8, 'eight');
14781
INSERT INTO t1 VALUES(16, 'sixteen');
14782
INSERT INTO t1 VALUES(0, 'zero');
14783
INSERT INTO t1 VALUES(7, 'seven');
14784
INSERT INTO t1 VALUES(8, 'eight');
14785
DELETE FROM v3 WHERE my_col1 = 16;
14787
DELETE FROM v3 WHERE my_col1 = 0;
14789
DELETE FROM v3 WHERE my_col1 = 7;
14791
DELETE FROM v3 WHERE my_col1 = 8;
14799
INSERT INTO t1 VALUES(16, 'sixteen');
14800
INSERT INTO t1 VALUES(0, 'zero');
14801
INSERT INTO t1 VALUES(7, 'seven');
14802
INSERT INTO t1 VALUES(8, 'eight');
14803
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
14805
info: Rows matched: 0 Changed: 0 Warnings: 0
14806
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
14808
info: Rows matched: 0 Changed: 0 Warnings: 0
14809
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
14811
info: Rows matched: 0 Changed: 0 Warnings: 0
14812
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
14814
info: Rows matched: 1 Changed: 1 Warnings: 0
14822
INSERT INTO t1 VALUES(8, 'eight');
14823
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
14824
ERROR HY000: CHECK OPTION failed 'test.v3'
14829
INSERT INTO t1 VALUES(8, 'eight');
14830
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
14832
info: Rows matched: 1 Changed: 1 Warnings: 0
14837
INSERT INTO t1 VALUES(8, 'eight');
14838
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
14840
info: Rows matched: 1 Changed: 1 Warnings: 0
14845
INSERT INTO t1 VALUES(8, 'eight');
14846
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
14848
info: Rows matched: 1 Changed: 1 Warnings: 0
14853
INSERT INTO v3 VALUES(16, 'sixteen');
14855
INSERT INTO v3 VALUES(0, 'zero');
14857
INSERT INTO v3 VALUES(7, 'seven');
14858
ERROR HY000: CHECK OPTION failed 'test.v3'
14859
INSERT INTO v3 VALUES(8, 'eight');
14868
option_variant WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing>
14869
option_variant --------------------------------------------------------------------------------
14870
INSERT INTO t1 VALUES(16, 'sixteen');
14871
INSERT INTO t1 VALUES(0, 'zero');
14872
INSERT INTO t1 VALUES(7, 'seven');
14873
INSERT INTO t1 VALUES(8, 'eight');
14893
INSERT INTO t1 VALUES(16, 'sixteen');
14894
INSERT INTO t1 VALUES(0, 'zero');
14895
INSERT INTO t1 VALUES(7, 'seven');
14896
INSERT INTO t1 VALUES(8, 'eight');
14897
DELETE FROM v3 WHERE my_col1 = 16;
14899
DELETE FROM v3 WHERE my_col1 = 0;
14901
DELETE FROM v3 WHERE my_col1 = 7;
14903
DELETE FROM v3 WHERE my_col1 = 8;
14911
INSERT INTO t1 VALUES(16, 'sixteen');
14912
INSERT INTO t1 VALUES(0, 'zero');
14913
INSERT INTO t1 VALUES(7, 'seven');
14914
INSERT INTO t1 VALUES(8, 'eight');
14915
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
14917
info: Rows matched: 0 Changed: 0 Warnings: 0
14918
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
14920
info: Rows matched: 0 Changed: 0 Warnings: 0
14921
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
14923
info: Rows matched: 0 Changed: 0 Warnings: 0
14924
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
14926
info: Rows matched: 1 Changed: 1 Warnings: 0
14934
INSERT INTO t1 VALUES(8, 'eight');
14935
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
14936
ERROR HY000: CHECK OPTION failed 'test.v3'
14941
INSERT INTO t1 VALUES(8, 'eight');
14942
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
14943
ERROR HY000: CHECK OPTION failed 'test.v3'
14948
INSERT INTO t1 VALUES(8, 'eight');
14949
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
14950
ERROR HY000: CHECK OPTION failed 'test.v3'
14955
INSERT INTO t1 VALUES(8, 'eight');
14956
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
14958
info: Rows matched: 1 Changed: 1 Warnings: 0
14963
INSERT INTO v3 VALUES(16, 'sixteen');
14964
ERROR HY000: CHECK OPTION failed 'test.v3'
14965
INSERT INTO v3 VALUES(0, 'zero');
14966
ERROR HY000: CHECK OPTION failed 'test.v3'
14967
INSERT INTO v3 VALUES(7, 'seven');
14968
ERROR HY000: CHECK OPTION failed 'test.v3'
14969
INSERT INTO v3 VALUES(8, 'eight');
14976
option_variant WITH CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing>
14977
option_variant --------------------------------------------------------------------------------
14978
INSERT INTO t1 VALUES(16, 'sixteen');
14979
INSERT INTO t1 VALUES(0, 'zero');
14980
INSERT INTO t1 VALUES(7, 'seven');
14981
INSERT INTO t1 VALUES(8, 'eight');
15001
INSERT INTO t1 VALUES(16, 'sixteen');
15002
INSERT INTO t1 VALUES(0, 'zero');
15003
INSERT INTO t1 VALUES(7, 'seven');
15004
INSERT INTO t1 VALUES(8, 'eight');
15005
DELETE FROM v3 WHERE my_col1 = 16;
15007
DELETE FROM v3 WHERE my_col1 = 0;
15009
DELETE FROM v3 WHERE my_col1 = 7;
15011
DELETE FROM v3 WHERE my_col1 = 8;
15019
INSERT INTO t1 VALUES(16, 'sixteen');
15020
INSERT INTO t1 VALUES(0, 'zero');
15021
INSERT INTO t1 VALUES(7, 'seven');
15022
INSERT INTO t1 VALUES(8, 'eight');
15023
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
15025
info: Rows matched: 0 Changed: 0 Warnings: 0
15026
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
15028
info: Rows matched: 0 Changed: 0 Warnings: 0
15029
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
15031
info: Rows matched: 0 Changed: 0 Warnings: 0
15032
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
15034
info: Rows matched: 1 Changed: 1 Warnings: 0
15042
INSERT INTO t1 VALUES(8, 'eight');
15043
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
15044
ERROR HY000: CHECK OPTION failed 'test.v3'
15049
INSERT INTO t1 VALUES(8, 'eight');
15050
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
15051
ERROR HY000: CHECK OPTION failed 'test.v3'
15056
INSERT INTO t1 VALUES(8, 'eight');
15057
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
15058
ERROR HY000: CHECK OPTION failed 'test.v3'
15063
INSERT INTO t1 VALUES(8, 'eight');
15064
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
15066
info: Rows matched: 1 Changed: 1 Warnings: 0
15071
INSERT INTO v3 VALUES(16, 'sixteen');
15072
ERROR HY000: CHECK OPTION failed 'test.v3'
15073
INSERT INTO v3 VALUES(0, 'zero');
15074
ERROR HY000: CHECK OPTION failed 'test.v3'
15075
INSERT INTO v3 VALUES(7, 'seven');
15076
ERROR HY000: CHECK OPTION failed 'test.v3'
15077
INSERT INTO v3 VALUES(8, 'eight');
15084
option_variant <nothing> - WITH CASCADED CHECK OPTION - <nothing>
15085
option_variant --------------------------------------------------------------------------------
15086
INSERT INTO t1 VALUES(16, 'sixteen');
15087
INSERT INTO t1 VALUES(0, 'zero');
15088
INSERT INTO t1 VALUES(7, 'seven');
15089
INSERT INTO t1 VALUES(8, 'eight');
15109
INSERT INTO t1 VALUES(16, 'sixteen');
15110
INSERT INTO t1 VALUES(0, 'zero');
15111
INSERT INTO t1 VALUES(7, 'seven');
15112
INSERT INTO t1 VALUES(8, 'eight');
15113
DELETE FROM v3 WHERE my_col1 = 16;
15115
DELETE FROM v3 WHERE my_col1 = 0;
15117
DELETE FROM v3 WHERE my_col1 = 7;
15119
DELETE FROM v3 WHERE my_col1 = 8;
15127
INSERT INTO t1 VALUES(16, 'sixteen');
15128
INSERT INTO t1 VALUES(0, 'zero');
15129
INSERT INTO t1 VALUES(7, 'seven');
15130
INSERT INTO t1 VALUES(8, 'eight');
15131
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
15133
info: Rows matched: 0 Changed: 0 Warnings: 0
15134
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
15136
info: Rows matched: 0 Changed: 0 Warnings: 0
15137
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
15139
info: Rows matched: 0 Changed: 0 Warnings: 0
15140
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
15142
info: Rows matched: 1 Changed: 1 Warnings: 0
15150
INSERT INTO t1 VALUES(8, 'eight');
15151
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
15153
info: Rows matched: 1 Changed: 1 Warnings: 0
15158
INSERT INTO t1 VALUES(8, 'eight');
15159
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
15161
info: Rows matched: 1 Changed: 1 Warnings: 0
15166
INSERT INTO t1 VALUES(8, 'eight');
15167
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
15169
info: Rows matched: 1 Changed: 1 Warnings: 0
15174
INSERT INTO t1 VALUES(8, 'eight');
15175
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
15177
info: Rows matched: 1 Changed: 1 Warnings: 0
15182
INSERT INTO v3 VALUES(16, 'sixteen');
15184
INSERT INTO v3 VALUES(0, 'zero');
15186
INSERT INTO v3 VALUES(7, 'seven');
15188
INSERT INTO v3 VALUES(8, 'eight');
15199
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
15200
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH CHECK OPTION ;
15201
option_variant WITH LOCAL CHECK OPTION - WITH CHECK OPTION - <nothing>
15202
option_variant --------------------------------------------------------------------------------
15203
INSERT INTO t1 VALUES(16, 'sixteen');
15204
INSERT INTO t1 VALUES(0, 'zero');
15205
INSERT INTO t1 VALUES(7, 'seven');
15206
INSERT INTO t1 VALUES(8, 'eight');
15226
INSERT INTO t1 VALUES(16, 'sixteen');
15227
INSERT INTO t1 VALUES(0, 'zero');
15228
INSERT INTO t1 VALUES(7, 'seven');
15229
INSERT INTO t1 VALUES(8, 'eight');
15230
DELETE FROM v3 WHERE my_col1 = 16;
15232
DELETE FROM v3 WHERE my_col1 = 0;
15234
DELETE FROM v3 WHERE my_col1 = 7;
15236
DELETE FROM v3 WHERE my_col1 = 8;
15244
INSERT INTO t1 VALUES(16, 'sixteen');
15245
INSERT INTO t1 VALUES(0, 'zero');
15246
INSERT INTO t1 VALUES(7, 'seven');
15247
INSERT INTO t1 VALUES(8, 'eight');
15248
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
15250
info: Rows matched: 0 Changed: 0 Warnings: 0
15251
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
15253
info: Rows matched: 0 Changed: 0 Warnings: 0
15254
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
15256
info: Rows matched: 0 Changed: 0 Warnings: 0
15257
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
15259
info: Rows matched: 1 Changed: 1 Warnings: 0
15267
INSERT INTO t1 VALUES(8, 'eight');
15268
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
15269
ERROR HY000: CHECK OPTION failed 'test.v3'
15274
INSERT INTO t1 VALUES(8, 'eight');
15275
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
15277
info: Rows matched: 1 Changed: 1 Warnings: 0
15282
INSERT INTO t1 VALUES(8, 'eight');
15283
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
15285
info: Rows matched: 1 Changed: 1 Warnings: 0
15290
INSERT INTO t1 VALUES(8, 'eight');
15291
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
15293
info: Rows matched: 1 Changed: 1 Warnings: 0
15298
INSERT INTO v3 VALUES(16, 'sixteen');
15300
INSERT INTO v3 VALUES(0, 'zero');
15302
INSERT INTO v3 VALUES(7, 'seven');
15303
ERROR HY000: CHECK OPTION failed 'test.v3'
15304
INSERT INTO v3 VALUES(8, 'eight');
15313
option_variant WITH CASCADED CHECK OPTION - WITH CHECK OPTION - <nothing>
15314
option_variant --------------------------------------------------------------------------------
15315
INSERT INTO t1 VALUES(16, 'sixteen');
15316
INSERT INTO t1 VALUES(0, 'zero');
15317
INSERT INTO t1 VALUES(7, 'seven');
15318
INSERT INTO t1 VALUES(8, 'eight');
15338
INSERT INTO t1 VALUES(16, 'sixteen');
15339
INSERT INTO t1 VALUES(0, 'zero');
15340
INSERT INTO t1 VALUES(7, 'seven');
15341
INSERT INTO t1 VALUES(8, 'eight');
15342
DELETE FROM v3 WHERE my_col1 = 16;
15344
DELETE FROM v3 WHERE my_col1 = 0;
15346
DELETE FROM v3 WHERE my_col1 = 7;
15348
DELETE FROM v3 WHERE my_col1 = 8;
15356
INSERT INTO t1 VALUES(16, 'sixteen');
15357
INSERT INTO t1 VALUES(0, 'zero');
15358
INSERT INTO t1 VALUES(7, 'seven');
15359
INSERT INTO t1 VALUES(8, 'eight');
15360
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
15362
info: Rows matched: 0 Changed: 0 Warnings: 0
15363
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
15365
info: Rows matched: 0 Changed: 0 Warnings: 0
15366
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
15368
info: Rows matched: 0 Changed: 0 Warnings: 0
15369
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
15371
info: Rows matched: 1 Changed: 1 Warnings: 0
15379
INSERT INTO t1 VALUES(8, 'eight');
15380
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
15381
ERROR HY000: CHECK OPTION failed 'test.v3'
15386
INSERT INTO t1 VALUES(8, 'eight');
15387
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
15388
ERROR HY000: CHECK OPTION failed 'test.v3'
15393
INSERT INTO t1 VALUES(8, 'eight');
15394
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
15395
ERROR HY000: CHECK OPTION failed 'test.v3'
15400
INSERT INTO t1 VALUES(8, 'eight');
15401
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
15403
info: Rows matched: 1 Changed: 1 Warnings: 0
15408
INSERT INTO v3 VALUES(16, 'sixteen');
15409
ERROR HY000: CHECK OPTION failed 'test.v3'
15410
INSERT INTO v3 VALUES(0, 'zero');
15411
ERROR HY000: CHECK OPTION failed 'test.v3'
15412
INSERT INTO v3 VALUES(7, 'seven');
15413
ERROR HY000: CHECK OPTION failed 'test.v3'
15414
INSERT INTO v3 VALUES(8, 'eight');
15421
option_variant WITH CHECK OPTION - WITH CHECK OPTION - <nothing>
15422
option_variant --------------------------------------------------------------------------------
15423
INSERT INTO t1 VALUES(16, 'sixteen');
15424
INSERT INTO t1 VALUES(0, 'zero');
15425
INSERT INTO t1 VALUES(7, 'seven');
15426
INSERT INTO t1 VALUES(8, 'eight');
15446
INSERT INTO t1 VALUES(16, 'sixteen');
15447
INSERT INTO t1 VALUES(0, 'zero');
15448
INSERT INTO t1 VALUES(7, 'seven');
15449
INSERT INTO t1 VALUES(8, 'eight');
15450
DELETE FROM v3 WHERE my_col1 = 16;
15452
DELETE FROM v3 WHERE my_col1 = 0;
15454
DELETE FROM v3 WHERE my_col1 = 7;
15456
DELETE FROM v3 WHERE my_col1 = 8;
15464
INSERT INTO t1 VALUES(16, 'sixteen');
15465
INSERT INTO t1 VALUES(0, 'zero');
15466
INSERT INTO t1 VALUES(7, 'seven');
15467
INSERT INTO t1 VALUES(8, 'eight');
15468
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
15470
info: Rows matched: 0 Changed: 0 Warnings: 0
15471
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
15473
info: Rows matched: 0 Changed: 0 Warnings: 0
15474
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
15476
info: Rows matched: 0 Changed: 0 Warnings: 0
15477
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
15479
info: Rows matched: 1 Changed: 1 Warnings: 0
15487
INSERT INTO t1 VALUES(8, 'eight');
15488
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
15489
ERROR HY000: CHECK OPTION failed 'test.v3'
15494
INSERT INTO t1 VALUES(8, 'eight');
15495
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
15496
ERROR HY000: CHECK OPTION failed 'test.v3'
15501
INSERT INTO t1 VALUES(8, 'eight');
15502
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
15503
ERROR HY000: CHECK OPTION failed 'test.v3'
15508
INSERT INTO t1 VALUES(8, 'eight');
15509
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
15511
info: Rows matched: 1 Changed: 1 Warnings: 0
15516
INSERT INTO v3 VALUES(16, 'sixteen');
15517
ERROR HY000: CHECK OPTION failed 'test.v3'
15518
INSERT INTO v3 VALUES(0, 'zero');
15519
ERROR HY000: CHECK OPTION failed 'test.v3'
15520
INSERT INTO v3 VALUES(7, 'seven');
15521
ERROR HY000: CHECK OPTION failed 'test.v3'
15522
INSERT INTO v3 VALUES(8, 'eight');
15529
option_variant <nothing> - WITH CHECK OPTION - <nothing>
15530
option_variant --------------------------------------------------------------------------------
15531
INSERT INTO t1 VALUES(16, 'sixteen');
15532
INSERT INTO t1 VALUES(0, 'zero');
15533
INSERT INTO t1 VALUES(7, 'seven');
15534
INSERT INTO t1 VALUES(8, 'eight');
15554
INSERT INTO t1 VALUES(16, 'sixteen');
15555
INSERT INTO t1 VALUES(0, 'zero');
15556
INSERT INTO t1 VALUES(7, 'seven');
15557
INSERT INTO t1 VALUES(8, 'eight');
15558
DELETE FROM v3 WHERE my_col1 = 16;
15560
DELETE FROM v3 WHERE my_col1 = 0;
15562
DELETE FROM v3 WHERE my_col1 = 7;
15564
DELETE FROM v3 WHERE my_col1 = 8;
15572
INSERT INTO t1 VALUES(16, 'sixteen');
15573
INSERT INTO t1 VALUES(0, 'zero');
15574
INSERT INTO t1 VALUES(7, 'seven');
15575
INSERT INTO t1 VALUES(8, 'eight');
15576
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
15578
info: Rows matched: 0 Changed: 0 Warnings: 0
15579
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
15581
info: Rows matched: 0 Changed: 0 Warnings: 0
15582
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
15584
info: Rows matched: 0 Changed: 0 Warnings: 0
15585
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
15587
info: Rows matched: 1 Changed: 1 Warnings: 0
15595
INSERT INTO t1 VALUES(8, 'eight');
15596
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
15598
info: Rows matched: 1 Changed: 1 Warnings: 0
15603
INSERT INTO t1 VALUES(8, 'eight');
15604
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
15606
info: Rows matched: 1 Changed: 1 Warnings: 0
15611
INSERT INTO t1 VALUES(8, 'eight');
15612
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
15614
info: Rows matched: 1 Changed: 1 Warnings: 0
15619
INSERT INTO t1 VALUES(8, 'eight');
15620
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
15622
info: Rows matched: 1 Changed: 1 Warnings: 0
15627
INSERT INTO v3 VALUES(16, 'sixteen');
15629
INSERT INTO v3 VALUES(0, 'zero');
15631
INSERT INTO v3 VALUES(7, 'seven');
15633
INSERT INTO v3 VALUES(8, 'eight');
15644
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
15645
FROM v1 WHERE f1 BETWEEN 6 AND 16 ;
15646
option_variant WITH LOCAL CHECK OPTION - <nothing> - <nothing>
15647
option_variant --------------------------------------------------------------------------------
15648
INSERT INTO t1 VALUES(16, 'sixteen');
15649
INSERT INTO t1 VALUES(0, 'zero');
15650
INSERT INTO t1 VALUES(7, 'seven');
15651
INSERT INTO t1 VALUES(8, 'eight');
15671
INSERT INTO t1 VALUES(16, 'sixteen');
15672
INSERT INTO t1 VALUES(0, 'zero');
15673
INSERT INTO t1 VALUES(7, 'seven');
15674
INSERT INTO t1 VALUES(8, 'eight');
15675
DELETE FROM v3 WHERE my_col1 = 16;
15677
DELETE FROM v3 WHERE my_col1 = 0;
15679
DELETE FROM v3 WHERE my_col1 = 7;
15681
DELETE FROM v3 WHERE my_col1 = 8;
15689
INSERT INTO t1 VALUES(16, 'sixteen');
15690
INSERT INTO t1 VALUES(0, 'zero');
15691
INSERT INTO t1 VALUES(7, 'seven');
15692
INSERT INTO t1 VALUES(8, 'eight');
15693
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
15695
info: Rows matched: 0 Changed: 0 Warnings: 0
15696
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
15698
info: Rows matched: 0 Changed: 0 Warnings: 0
15699
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
15701
info: Rows matched: 0 Changed: 0 Warnings: 0
15702
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
15704
info: Rows matched: 1 Changed: 1 Warnings: 0
15712
INSERT INTO t1 VALUES(8, 'eight');
15713
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
15714
ERROR HY000: CHECK OPTION failed 'test.v3'
15719
INSERT INTO t1 VALUES(8, 'eight');
15720
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
15722
info: Rows matched: 1 Changed: 1 Warnings: 0
15727
INSERT INTO t1 VALUES(8, 'eight');
15728
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
15730
info: Rows matched: 1 Changed: 1 Warnings: 0
15735
INSERT INTO t1 VALUES(8, 'eight');
15736
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
15738
info: Rows matched: 1 Changed: 1 Warnings: 0
15743
INSERT INTO v3 VALUES(16, 'sixteen');
15745
INSERT INTO v3 VALUES(0, 'zero');
15747
INSERT INTO v3 VALUES(7, 'seven');
15748
ERROR HY000: CHECK OPTION failed 'test.v3'
15749
INSERT INTO v3 VALUES(8, 'eight');
15758
option_variant WITH CASCADED CHECK OPTION - <nothing> - <nothing>
15759
option_variant --------------------------------------------------------------------------------
15760
INSERT INTO t1 VALUES(16, 'sixteen');
15761
INSERT INTO t1 VALUES(0, 'zero');
15762
INSERT INTO t1 VALUES(7, 'seven');
15763
INSERT INTO t1 VALUES(8, 'eight');
15783
INSERT INTO t1 VALUES(16, 'sixteen');
15784
INSERT INTO t1 VALUES(0, 'zero');
15785
INSERT INTO t1 VALUES(7, 'seven');
15786
INSERT INTO t1 VALUES(8, 'eight');
15787
DELETE FROM v3 WHERE my_col1 = 16;
15789
DELETE FROM v3 WHERE my_col1 = 0;
15791
DELETE FROM v3 WHERE my_col1 = 7;
15793
DELETE FROM v3 WHERE my_col1 = 8;
15801
INSERT INTO t1 VALUES(16, 'sixteen');
15802
INSERT INTO t1 VALUES(0, 'zero');
15803
INSERT INTO t1 VALUES(7, 'seven');
15804
INSERT INTO t1 VALUES(8, 'eight');
15805
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
15807
info: Rows matched: 0 Changed: 0 Warnings: 0
15808
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
15810
info: Rows matched: 0 Changed: 0 Warnings: 0
15811
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
15813
info: Rows matched: 0 Changed: 0 Warnings: 0
15814
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
15816
info: Rows matched: 1 Changed: 1 Warnings: 0
15824
INSERT INTO t1 VALUES(8, 'eight');
15825
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
15826
ERROR HY000: CHECK OPTION failed 'test.v3'
15831
INSERT INTO t1 VALUES(8, 'eight');
15832
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
15833
ERROR HY000: CHECK OPTION failed 'test.v3'
15838
INSERT INTO t1 VALUES(8, 'eight');
15839
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
15840
ERROR HY000: CHECK OPTION failed 'test.v3'
15845
INSERT INTO t1 VALUES(8, 'eight');
15846
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
15848
info: Rows matched: 1 Changed: 1 Warnings: 0
15853
INSERT INTO v3 VALUES(16, 'sixteen');
15854
ERROR HY000: CHECK OPTION failed 'test.v3'
15855
INSERT INTO v3 VALUES(0, 'zero');
15856
ERROR HY000: CHECK OPTION failed 'test.v3'
15857
INSERT INTO v3 VALUES(7, 'seven');
15858
ERROR HY000: CHECK OPTION failed 'test.v3'
15859
INSERT INTO v3 VALUES(8, 'eight');
15866
option_variant WITH CHECK OPTION - <nothing> - <nothing>
15867
option_variant --------------------------------------------------------------------------------
15868
INSERT INTO t1 VALUES(16, 'sixteen');
15869
INSERT INTO t1 VALUES(0, 'zero');
15870
INSERT INTO t1 VALUES(7, 'seven');
15871
INSERT INTO t1 VALUES(8, 'eight');
15891
INSERT INTO t1 VALUES(16, 'sixteen');
15892
INSERT INTO t1 VALUES(0, 'zero');
15893
INSERT INTO t1 VALUES(7, 'seven');
15894
INSERT INTO t1 VALUES(8, 'eight');
15895
DELETE FROM v3 WHERE my_col1 = 16;
15897
DELETE FROM v3 WHERE my_col1 = 0;
15899
DELETE FROM v3 WHERE my_col1 = 7;
15901
DELETE FROM v3 WHERE my_col1 = 8;
15909
INSERT INTO t1 VALUES(16, 'sixteen');
15910
INSERT INTO t1 VALUES(0, 'zero');
15911
INSERT INTO t1 VALUES(7, 'seven');
15912
INSERT INTO t1 VALUES(8, 'eight');
15913
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
15915
info: Rows matched: 0 Changed: 0 Warnings: 0
15916
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
15918
info: Rows matched: 0 Changed: 0 Warnings: 0
15919
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
15921
info: Rows matched: 0 Changed: 0 Warnings: 0
15922
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
15924
info: Rows matched: 1 Changed: 1 Warnings: 0
15932
INSERT INTO t1 VALUES(8, 'eight');
15933
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
15934
ERROR HY000: CHECK OPTION failed 'test.v3'
15939
INSERT INTO t1 VALUES(8, 'eight');
15940
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
15941
ERROR HY000: CHECK OPTION failed 'test.v3'
15946
INSERT INTO t1 VALUES(8, 'eight');
15947
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
15948
ERROR HY000: CHECK OPTION failed 'test.v3'
15953
INSERT INTO t1 VALUES(8, 'eight');
15954
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
15956
info: Rows matched: 1 Changed: 1 Warnings: 0
15961
INSERT INTO v3 VALUES(16, 'sixteen');
15962
ERROR HY000: CHECK OPTION failed 'test.v3'
15963
INSERT INTO v3 VALUES(0, 'zero');
15964
ERROR HY000: CHECK OPTION failed 'test.v3'
15965
INSERT INTO v3 VALUES(7, 'seven');
15966
ERROR HY000: CHECK OPTION failed 'test.v3'
15967
INSERT INTO v3 VALUES(8, 'eight');
15974
option_variant <nothing> - <nothing> - <nothing>
15975
option_variant --------------------------------------------------------------------------------
15976
INSERT INTO t1 VALUES(16, 'sixteen');
15977
INSERT INTO t1 VALUES(0, 'zero');
15978
INSERT INTO t1 VALUES(7, 'seven');
15979
INSERT INTO t1 VALUES(8, 'eight');
15999
INSERT INTO t1 VALUES(16, 'sixteen');
16000
INSERT INTO t1 VALUES(0, 'zero');
16001
INSERT INTO t1 VALUES(7, 'seven');
16002
INSERT INTO t1 VALUES(8, 'eight');
16003
DELETE FROM v3 WHERE my_col1 = 16;
16005
DELETE FROM v3 WHERE my_col1 = 0;
16007
DELETE FROM v3 WHERE my_col1 = 7;
16009
DELETE FROM v3 WHERE my_col1 = 8;
16017
INSERT INTO t1 VALUES(16, 'sixteen');
16018
INSERT INTO t1 VALUES(0, 'zero');
16019
INSERT INTO t1 VALUES(7, 'seven');
16020
INSERT INTO t1 VALUES(8, 'eight');
16021
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
16023
info: Rows matched: 0 Changed: 0 Warnings: 0
16024
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
16026
info: Rows matched: 0 Changed: 0 Warnings: 0
16027
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
16029
info: Rows matched: 0 Changed: 0 Warnings: 0
16030
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
16032
info: Rows matched: 1 Changed: 1 Warnings: 0
16040
INSERT INTO t1 VALUES(8, 'eight');
16041
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
16043
info: Rows matched: 1 Changed: 1 Warnings: 0
16048
INSERT INTO t1 VALUES(8, 'eight');
16049
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
16051
info: Rows matched: 1 Changed: 1 Warnings: 0
16056
INSERT INTO t1 VALUES(8, 'eight');
16057
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
16059
info: Rows matched: 1 Changed: 1 Warnings: 0
16064
INSERT INTO t1 VALUES(8, 'eight');
16065
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
16067
info: Rows matched: 1 Changed: 1 Warnings: 0
16072
INSERT INTO v3 VALUES(16, 'sixteen');
16074
INSERT INTO v3 VALUES(0, 'zero');
16076
INSERT INTO v3 VALUES(7, 'seven');
16078
INSERT INTO v3 VALUES(8, 'eight');
16090
SELECT * FROM t1_results ORDER BY v3_to_v1_options;
16091
v3_to_v1_options statement v3_to_v1_violation errno
16092
<nothing> - <nothing> - <nothing> UPDATE _v2_ 0
16093
<nothing> - <nothing> - <nothing> INSERT _v2_ 0
16094
<nothing> - <nothing> - <nothing> INSERT _ _v1 0
16095
<nothing> - <nothing> - <nothing> UPDATE _ _ 0
16096
<nothing> - <nothing> - <nothing> UPDATE _ _v1 0
16097
<nothing> - <nothing> - <nothing> UPDATE v3_ _ 0
16098
<nothing> - <nothing> - <nothing> INSERT _ _ 0
16099
<nothing> - <nothing> - WITH CHECK OPTION UPDATE _v2_ 0
16100
<nothing> - <nothing> - WITH CHECK OPTION INSERT _ _ 0
16101
<nothing> - <nothing> - WITH CHECK OPTION UPDATE _ _v1 0
16102
<nothing> - <nothing> - WITH CHECK OPTION UPDATE _ _ 0
16103
<nothing> - <nothing> - WITH CHECK OPTION UPDATE v3_ _ 0
16104
<nothing> - <nothing> - WITH CHECK OPTION INSERT _v2_ 0
16105
<nothing> - <nothing> - WITH CHECK OPTION INSERT _ _v1 0
16106
<nothing> - <nothing> - WITH CASCADED CHECK OPTION INSERT _v2_ 0
16107
<nothing> - <nothing> - WITH CASCADED CHECK OPTION INSERT _ _ 0
16108
<nothing> - <nothing> - WITH CASCADED CHECK OPTION INSERT _ _v1 0
16109
<nothing> - <nothing> - WITH CASCADED CHECK OPTION UPDATE _ _ 0
16110
<nothing> - <nothing> - WITH CASCADED CHECK OPTION UPDATE _ _v1 0
16111
<nothing> - <nothing> - WITH CASCADED CHECK OPTION UPDATE _v2_ 0
16112
<nothing> - <nothing> - WITH CASCADED CHECK OPTION UPDATE v3_ _ 0
16113
<nothing> - <nothing> - WITH LOCAL CHECK OPTION UPDATE _ _v1 0
16114
<nothing> - <nothing> - WITH LOCAL CHECK OPTION INSERT _v2_ 0
16115
<nothing> - <nothing> - WITH LOCAL CHECK OPTION INSERT _ _v1 0
16116
<nothing> - <nothing> - WITH LOCAL CHECK OPTION INSERT _ _ 0
16117
<nothing> - <nothing> - WITH LOCAL CHECK OPTION UPDATE v3_ _ 0
16118
<nothing> - <nothing> - WITH LOCAL CHECK OPTION UPDATE _v2_ 0
16119
<nothing> - <nothing> - WITH LOCAL CHECK OPTION UPDATE _ _ 0
16120
<nothing> - WITH CHECK OPTION - <nothing> UPDATE _v2_ 0
16121
<nothing> - WITH CHECK OPTION - <nothing> INSERT _v2_ 0
16122
<nothing> - WITH CHECK OPTION - <nothing> UPDATE v3_ _ 0
16123
<nothing> - WITH CHECK OPTION - <nothing> UPDATE _ _v1 0
16124
<nothing> - WITH CHECK OPTION - <nothing> UPDATE _ _ 0
16125
<nothing> - WITH CHECK OPTION - <nothing> INSERT _ _v1 0
16126
<nothing> - WITH CHECK OPTION - <nothing> INSERT _ _ 0
16127
<nothing> - WITH CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 0
16128
<nothing> - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 0
16129
<nothing> - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
16130
<nothing> - WITH CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 0
16131
<nothing> - WITH CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 0
16132
<nothing> - WITH CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
16133
<nothing> - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 0
16134
<nothing> - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
16135
<nothing> - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 0
16136
<nothing> - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 0
16137
<nothing> - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
16138
<nothing> - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 0
16139
<nothing> - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 0
16140
<nothing> - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 0
16141
<nothing> - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 0
16142
<nothing> - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
16143
<nothing> - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 0
16144
<nothing> - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 0
16145
<nothing> - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
16146
<nothing> - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 0
16147
<nothing> - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 0
16148
<nothing> - WITH CASCADED CHECK OPTION - <nothing> INSERT _ _v1 0
16149
<nothing> - WITH CASCADED CHECK OPTION - <nothing> UPDATE _ _v1 0
16150
<nothing> - WITH CASCADED CHECK OPTION - <nothing> UPDATE _v2_ 0
16151
<nothing> - WITH CASCADED CHECK OPTION - <nothing> UPDATE _ _ 0
16152
<nothing> - WITH CASCADED CHECK OPTION - <nothing> UPDATE v3_ _ 0
16153
<nothing> - WITH CASCADED CHECK OPTION - <nothing> INSERT _ _ 0
16154
<nothing> - WITH CASCADED CHECK OPTION - <nothing> INSERT _v2_ 0
16155
<nothing> - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 0
16156
<nothing> - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 0
16157
<nothing> - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
16158
<nothing> - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 0
16159
<nothing> - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 0
16160
<nothing> - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
16161
<nothing> - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 0
16162
<nothing> - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 0
16163
<nothing> - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 0
16164
<nothing> - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 0
16165
<nothing> - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
16166
<nothing> - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
16167
<nothing> - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 0
16168
<nothing> - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 0
16169
<nothing> - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 0
16170
<nothing> - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
16171
<nothing> - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
16172
<nothing> - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 0
16173
<nothing> - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 0
16174
<nothing> - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 0
16175
<nothing> - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 0
16176
<nothing> - WITH LOCAL CHECK OPTION - <nothing> UPDATE v3_ _ 0
16177
<nothing> - WITH LOCAL CHECK OPTION - <nothing> INSERT _ _ 0
16178
<nothing> - WITH LOCAL CHECK OPTION - <nothing> INSERT _v2_ 0
16179
<nothing> - WITH LOCAL CHECK OPTION - <nothing> INSERT _ _v1 0
16180
<nothing> - WITH LOCAL CHECK OPTION - <nothing> UPDATE _ _ 0
16181
<nothing> - WITH LOCAL CHECK OPTION - <nothing> UPDATE _ _v1 0
16182
<nothing> - WITH LOCAL CHECK OPTION - <nothing> UPDATE _v2_ 0
16183
<nothing> - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 0
16184
<nothing> - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 0
16185
<nothing> - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
16186
<nothing> - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 0
16187
<nothing> - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 0
16188
<nothing> - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
16189
<nothing> - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 0
16190
<nothing> - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 0
16191
<nothing> - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
16192
<nothing> - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 0
16193
<nothing> - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
16194
<nothing> - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 0
16195
<nothing> - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 0
16196
<nothing> - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 0
16197
<nothing> - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 0
16198
<nothing> - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 0
16199
<nothing> - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
16200
<nothing> - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 0
16201
<nothing> - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 0
16202
<nothing> - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
16203
<nothing> - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 0
16204
WITH CHECK OPTION - <nothing> - <nothing> UPDATE v3_ _ 1369
16205
WITH CHECK OPTION - <nothing> - <nothing> INSERT _ _ 0
16206
WITH CHECK OPTION - <nothing> - <nothing> INSERT _v2_ 1369
16207
WITH CHECK OPTION - <nothing> - <nothing> INSERT _ _v1 1369
16208
WITH CHECK OPTION - <nothing> - <nothing> UPDATE _v2_ 1369
16209
WITH CHECK OPTION - <nothing> - <nothing> UPDATE _ _v1 1369
16210
WITH CHECK OPTION - <nothing> - <nothing> UPDATE _ _ 0
16211
WITH CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE _v2_ 1369
16212
WITH CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE v3_ _ 1369
16213
WITH CHECK OPTION - <nothing> - WITH CHECK OPTION INSERT _v2_ 1369
16214
WITH CHECK OPTION - <nothing> - WITH CHECK OPTION INSERT _ _v1 1369
16215
WITH CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE _ _ 0
16216
WITH CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE _ _v1 1369
16217
WITH CHECK OPTION - <nothing> - WITH CHECK OPTION INSERT _ _ 0
16218
WITH CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
16219
WITH CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION INSERT _ _ 0
16220
WITH CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE _v2_ 1369
16221
WITH CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION INSERT _v2_ 1369
16222
WITH CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION INSERT _ _v1 1369
16223
WITH CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE _ _ 0
16224
WITH CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE _ _v1 1369
16225
WITH CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION INSERT _ _ 0
16226
WITH CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE _v2_ 1369
16227
WITH CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE _ _v1 1369
16228
WITH CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE _ _ 0
16229
WITH CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION INSERT _ _v1 1369
16230
WITH CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION INSERT _v2_ 1369
16231
WITH CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
16232
WITH CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE _ _ 0
16233
WITH CHECK OPTION - WITH CHECK OPTION - <nothing> INSERT _ _v1 1369
16234
WITH CHECK OPTION - WITH CHECK OPTION - <nothing> INSERT _v2_ 1369
16235
WITH CHECK OPTION - WITH CHECK OPTION - <nothing> INSERT _ _ 0
16236
WITH CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE _ _v1 1369
16237
WITH CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE v3_ _ 1369
16238
WITH CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE _v2_ 1369
16239
WITH CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 1369
16240
WITH CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 1369
16241
WITH CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 1369
16242
WITH CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 1369
16243
WITH CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
16244
WITH CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 1369
16245
WITH CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
16246
WITH CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 1369
16247
WITH CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 1369
16248
WITH CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
16249
WITH CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
16250
WITH CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 1369
16251
WITH CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
16252
WITH CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 1369
16253
WITH CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 1369
16254
WITH CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 1369
16255
WITH CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 1369
16256
WITH CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
16257
WITH CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 1369
16258
WITH CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
16259
WITH CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
16260
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE v3_ _ 1369
16261
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE _v2_ 1369
16262
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE _ _v1 1369
16263
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE _ _ 0
16264
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> INSERT _ _v1 1369
16265
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> INSERT _v2_ 1369
16266
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> INSERT _ _ 0
16267
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 1369
16268
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 1369
16269
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 1369
16270
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
16271
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 1369
16272
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 1369
16273
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
16274
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
16275
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 1369
16276
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 1369
16277
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
16278
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 1369
16279
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 1369
16280
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
16281
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 1369
16282
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
16283
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 1369
16284
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 1369
16285
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
16286
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 1369
16287
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
16288
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> INSERT _ _v1 1369
16289
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE _ _ 0
16290
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE _ _v1 1369
16291
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> INSERT _ _ 0
16292
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> INSERT _v2_ 1369
16293
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE _v2_ 1369
16294
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE v3_ _ 1369
16295
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
16296
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 1369
16297
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 1369
16298
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 1369
16299
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 1369
16300
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
16301
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 1369
16302
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 1369
16303
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 1369
16304
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
16305
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 1369
16306
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
16307
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
16308
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 1369
16309
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
16310
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 1369
16311
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
16312
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 1369
16313
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 1369
16314
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
16315
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 1369
16316
WITH CASCADED CHECK OPTION - <nothing> - <nothing> INSERT _v2_ 1369
16317
WITH CASCADED CHECK OPTION - <nothing> - <nothing> INSERT _ _ 0
16318
WITH CASCADED CHECK OPTION - <nothing> - <nothing> UPDATE _ _ 0
16319
WITH CASCADED CHECK OPTION - <nothing> - <nothing> UPDATE _ _v1 1369
16320
WITH CASCADED CHECK OPTION - <nothing> - <nothing> UPDATE _v2_ 1369
16321
WITH CASCADED CHECK OPTION - <nothing> - <nothing> UPDATE v3_ _ 1369
16322
WITH CASCADED CHECK OPTION - <nothing> - <nothing> INSERT _ _v1 1369
16323
WITH CASCADED CHECK OPTION - <nothing> - WITH CHECK OPTION INSERT _v2_ 1369
16324
WITH CASCADED CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE v3_ _ 1369
16325
WITH CASCADED CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE _v2_ 1369
16326
WITH CASCADED CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE _ _v1 1369
16327
WITH CASCADED CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE _ _ 0
16328
WITH CASCADED CHECK OPTION - <nothing> - WITH CHECK OPTION INSERT _ _v1 1369
16329
WITH CASCADED CHECK OPTION - <nothing> - WITH CHECK OPTION INSERT _ _ 0
16330
WITH CASCADED CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
16331
WITH CASCADED CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE _v2_ 1369
16332
WITH CASCADED CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE _ _v1 1369
16333
WITH CASCADED CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE _ _ 0
16334
WITH CASCADED CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION INSERT _v2_ 1369
16335
WITH CASCADED CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION INSERT _ _ 0
16336
WITH CASCADED CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION INSERT _ _v1 1369
16337
WITH CASCADED CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE _v2_ 1369
16338
WITH CASCADED CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION INSERT _ _ 0
16339
WITH CASCADED CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION INSERT _v2_ 1369
16340
WITH CASCADED CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE _ _ 0
16341
WITH CASCADED CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE _ _v1 1369
16342
WITH CASCADED CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
16343
WITH CASCADED CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION INSERT _ _v1 1369
16344
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE _v2_ 1369
16345
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE v3_ _ 1369
16346
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE _ _v1 1369
16347
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - <nothing> INSERT _v2_ 1369
16348
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE _ _ 0
16349
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - <nothing> INSERT _ _v1 1369
16350
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - <nothing> INSERT _ _ 0
16351
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 1369
16352
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
16353
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 1369
16354
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 1369
16355
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
16356
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 1369
16357
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 1369
16358
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
16359
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
16360
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 1369
16361
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 1369
16362
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 1369
16363
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
16364
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 1369
16365
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 1369
16366
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
16367
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 1369
16368
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
16369
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 1369
16370
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 1369
16371
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
16372
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE _v2_ 1369
16373
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE v3_ _ 1369
16374
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> INSERT _v2_ 1369
16375
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> INSERT _ _v1 1369
16376
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE _ _ 0
16377
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE _ _v1 1369
16378
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> INSERT _ _ 0
16379
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
16380
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
16381
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 1369
16382
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 1369
16383
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 1369
16384
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 1369
16385
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 1369
16386
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 1369
16387
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 1369
16388
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 1369
16389
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
16390
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 1369
16391
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
16392
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
16393
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 1369
16394
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
16395
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 1369
16396
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
16397
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 1369
16398
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 1369
16399
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
16400
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE _v2_ 1369
16401
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE v3_ _ 1369
16402
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE _ _v1 1369
16403
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE _ _ 0
16404
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> INSERT _ _v1 1369
16405
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> INSERT _v2_ 1369
16406
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> INSERT _ _ 0
16407
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
16408
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 1369
16409
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 1369
16410
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 1369
16411
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 1369
16412
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 1369
16413
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
16414
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
16415
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 1369
16416
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
16417
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 1369
16418
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 1369
16419
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 1369
16420
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
16421
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 1369
16422
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
16423
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 1369
16424
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
16425
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 1369
16426
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 1369
16427
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
16428
WITH LOCAL CHECK OPTION - <nothing> - <nothing> INSERT _ _ 0
16429
WITH LOCAL CHECK OPTION - <nothing> - <nothing> UPDATE _v2_ 0
16430
WITH LOCAL CHECK OPTION - <nothing> - <nothing> UPDATE _ _v1 0
16431
WITH LOCAL CHECK OPTION - <nothing> - <nothing> UPDATE _ _ 0
16432
WITH LOCAL CHECK OPTION - <nothing> - <nothing> INSERT _ _v1 0
16433
WITH LOCAL CHECK OPTION - <nothing> - <nothing> INSERT _v2_ 0
16434
WITH LOCAL CHECK OPTION - <nothing> - <nothing> UPDATE v3_ _ 1369
16435
WITH LOCAL CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE _ _ 0
16436
WITH LOCAL CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE v3_ _ 1369
16437
WITH LOCAL CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE _v2_ 0
16438
WITH LOCAL CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE _ _v1 0
16439
WITH LOCAL CHECK OPTION - <nothing> - WITH CHECK OPTION INSERT _ _v1 0
16440
WITH LOCAL CHECK OPTION - <nothing> - WITH CHECK OPTION INSERT _v2_ 0
16441
WITH LOCAL CHECK OPTION - <nothing> - WITH CHECK OPTION INSERT _ _ 0
16442
WITH LOCAL CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION INSERT _v2_ 0
16443
WITH LOCAL CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION INSERT _ _ 0
16444
WITH LOCAL CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION INSERT _ _v1 0
16445
WITH LOCAL CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
16446
WITH LOCAL CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE _v2_ 0
16447
WITH LOCAL CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE _ _v1 0
16448
WITH LOCAL CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE _ _ 0
16449
WITH LOCAL CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION INSERT _ _ 0
16450
WITH LOCAL CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION INSERT _v2_ 0
16451
WITH LOCAL CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION INSERT _ _v1 0
16452
WITH LOCAL CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE _ _ 0
16453
WITH LOCAL CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE _ _v1 0
16454
WITH LOCAL CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE _v2_ 0
16455
WITH LOCAL CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
16456
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE _v2_ 0
16457
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE v3_ _ 1369
16458
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE _ _ 0
16459
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - <nothing> INSERT _ _ 0
16460
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - <nothing> INSERT _v2_ 0
16461
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - <nothing> INSERT _ _v1 0
16462
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE _ _v1 0
16463
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 0
16464
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 1369
16465
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
16466
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 0
16467
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 0
16468
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 0
16469
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
16470
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 0
16471
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 0
16472
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
16473
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 0
16474
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 0
16475
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
16476
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
16477
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
16478
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 0
16479
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 0
16480
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
16481
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 0
16482
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
16483
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 0
16484
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> INSERT _v2_ 0
16485
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> INSERT _ _v1 0
16486
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE _ _ 0
16487
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE _ _v1 0
16488
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE _v2_ 0
16489
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE v3_ _ 1369
16490
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> INSERT _ _ 0
16491
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
16492
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 1369
16493
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 0
16494
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 0
16495
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 0
16496
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 0
16497
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
16498
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 0
16499
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 0
16500
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
16501
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
16502
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 0
16503
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 0
16504
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
16505
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
16506
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
16507
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
16508
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 0
16509
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 0
16510
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 0
16511
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 0
16512
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE _ _ 0
16513
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> INSERT _ _v1 0
16514
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> INSERT _ _ 0
16515
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE _ _v1 0
16516
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE _v2_ 0
16517
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE v3_ _ 1369
16518
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> INSERT _v2_ 0
16519
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
16520
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
16521
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 0
16522
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 0
16523
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 0
16524
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 0
16525
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 1369
16526
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 0
16527
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
16528
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 0
16529
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 0
16530
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
16531
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
16532
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 0
16533
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 0
16534
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 0
16535
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
16536
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 0
16537
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
16538
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
16539
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 0
16541
Plausibility checks for INSERTs and UPDATEs ( 4. and 5. above).
16542
All following SELECTs must give ROW NOT FOUND
16543
--------------------------------------------------------------------------------
16544
SELECT * FROM t1_results
16545
WHERE v3_to_v1_violation = ' _ _ ' AND errno <> 0
16546
ORDER BY v3_to_v1_options;
16547
v3_to_v1_options statement v3_to_v1_violation errno
16548
SELECT * FROM t1_results
16549
WHERE v3_to_v1_options LIKE ' %' AND errno <> 0
16550
ORDER BY v3_to_v1_options;
16551
v3_to_v1_options statement v3_to_v1_violation errno
16552
SELECT * FROM t1_results
16553
WHERE v3_to_v1_options LIKE 'WITH %'
16554
AND v3_to_v1_violation LIKE 'v3_%' AND errno = 0
16555
ORDER BY v3_to_v1_options;
16556
v3_to_v1_options statement v3_to_v1_violation errno
16557
SELECT * FROM t1_results
16558
WHERE v3_to_v1_options LIKE 'WITH %' AND v3_to_v1_options NOT LIKE 'WITH LOCAL %'
16559
AND v3_to_v1_violation NOT LIKE ' _ _ ' AND errno = 0
16560
ORDER BY v3_to_v1_options;
16561
v3_to_v1_options statement v3_to_v1_violation errno
16562
SELECT * FROM t1_results
16563
WHERE errno <> 0 AND errno <> 1369
16564
ORDER BY v3_to_v1_options;
16565
v3_to_v1_options statement v3_to_v1_violation errno
16567
End of plausibility checks
16568
--------------------------------------------------------------------------------
16569
DROP TABLE t1_results;
16571
Testcase 3.3.1.50 - 3.3.1.53
16572
--------------------------------------------------------------------------------
16573
DROP VIEW IF EXISTS test.v1;
16574
CREATE VIEW test.v1 AS SELECT * FROM test.tb2;
16575
SELECT * FROM test.v1 order by f59,f60,f61 ;
16579
f62 0000000000000000000000000000000000000000000000000000000000000001
16581
f64 0000000000000000000000000000000000000000000000000000000000000001
16583
f66 0.000000000000000000000000000000
16585
f68 0.000000000000000000000000000000
16587
f70 000000000000000000000000000000000.000000000000000000000000000000
16589
f72 000000000000000000000000000000000.000000000000000000000000000000
16590
f73 -1.17549435e-38
16591
f74 1.175494352e-38
16592
f75 00000001.175494352e-38
16593
f76 00000001.175494352e-38
16594
f77 -1.17549435e-38
16595
f78 1.175494352e-38
16596
f79 00000001.175494352e-38
16597
f80 00000001.175494352e-38
16611
f94 -1.17549435e-38
16613
f96 1.175494352e-38
16615
f98 00000001.175494352e-38
16617
f100 00000001.175494352e-38
16620
f103 1970-01-02 00:00:01
16621
f104 1970-01-02 00:00:01
16630
f113 $@$@$@$@@@@@@@@@@@
16631
f114 $@$@$@$@@@@@@@@@@@
16634
f117 $@$@$@$@@@@@@@@@@@
16638
f62 0000000000000000000000000000000000000000000000000000000000000002
16640
f64 0000000000000000000000000000000000000000000000000000000000000002
16642
f66 1.100000000000000000000000000000
16644
f68 1.100000000000000000000000000000
16646
f70 000000000000000000000000000000001.100000000000000000000000000000
16648
f72 000000000000000000000000000000001.100000000000000000000000000000
16649
f73 -1.175494349e-38
16650
f74 1.175494353e-38
16651
f75 00000001.175494353e-38
16652
f76 00000001.175494353e-38
16653
f77 -1.175494349e-38
16654
f78 1.175494353e-38
16655
f79 00000001.175494353e-38
16656
f80 00000001.175494353e-38
16670
f94 -1.175494349e-38
16672
f96 1.175494353e-38
16674
f98 00000001.175494353e-38
16676
f100 00000001.175494353e-38
16679
f103 1970-01-03 00:00:02
16680
f104 1970-01-03 00:00:02
16689
f113 ��4@�4@4@�4@��@@ @@ @ @@ @@@
16690
f114 ��4@�4@4@�4@��@@ @@ @ @@ @@@
16693
f117 ��4@�4@4@�4@��@@ @@ @ @@ @@@
16697
f62 0000000000000000000000000000000000000000000000000000000000000003
16699
f64 0000000000000000000000000000000000000000000000000000000000000003
16701
f66 2.200000000000000000000000000000
16703
f68 2.200000000000000000000000000000
16705
f70 000000000000000000000000000000002.200000000000000000000000000000
16707
f72 000000000000000000000000000000002.200000000000000000000000000000
16708
f73 -1.175494348e-38
16709
f74 1.175494354e-38
16710
f75 00000001.175494354e-38
16711
f76 00000001.175494354e-38
16712
f77 -1.175494348e-38
16713
f78 1.175494354e-38
16714
f79 00000001.175494354e-38
16715
f80 00000001.175494354e-38
16729
f94 -1.175494348e-38
16731
f96 1.175494354e-38
16733
f98 00000001.175494354e-38
16735
f100 00000001.175494354e-38
16738
f103 1970-01-04 00:00:03
16739
f104 1970-01-04 00:00:03
16748
f113 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
16749
f114 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
16752
f117 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
16756
f62 0000000000000000000000000000000000000000000000000000000000000005
16758
f64 0000000000000000000000000000000000000000000000000000000000000005
16760
f66 4.400000000000000000000000000000
16762
f68 4.400000000000000000000000000000
16764
f70 000000000000000000000000000000004.400000000000000000000000000000
16766
f72 000000000000000000000000000000004.400000000000000000000000000000
16767
f73 -1.175494346e-38
16768
f74 1.175494356e-38
16769
f75 00000001.175494356e-38
16770
f76 00000001.175494356e-38
16771
f77 -1.175494346e-38
16772
f78 1.175494356e-38
16773
f79 00000001.175494356e-38
16774
f80 00000001.175494356e-38
16788
f94 -1.175494346e-38
16790
f96 1.175494356e-38
16792
f98 00000001.175494356e-38
16794
f100 00000001.175494356e-38
16797
f103 1970-01-06 00:00:05
16798
f104 1970-01-06 00:00:05
16807
f113 @@N@@N@N@@N@@@$@$@(@$@(@(@$@(@$@$@
16808
f114 @@N@@N@N@@N@@@$@$@(@$@(@(@$@(@$@$@
16811
f117 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
16815
f62 0000000000000000000000000000000000000000000000000000000000000006
16817
f64 0000000000000000000000000000000000000000000000000000000000000006
16819
f66 5.500000000000000000000000000000
16821
f68 5.500000000000000000000000000000
16823
f70 000000000000000000000000000000005.500000000000000000000000000000
16825
f72 000000000000000000000000000000005.500000000000000000000000000000
16826
f73 -1.175494345e-38
16827
f74 1.175494357e-38
16828
f75 00000001.175494357e-38
16829
f76 00000001.175494357e-38
16830
f77 -1.175494345e-38
16831
f78 1.175494357e-38
16832
f79 00000001.175494357e-38
16833
f80 00000001.175494357e-38
16847
f94 -1.175494345e-38
16849
f96 1.175494357e-38
16851
f98 00000001.175494357e-38
16853
f100 00000001.175494357e-38
16856
f103 1970-01-07 00:00:06
16857
f104 1970-01-07 00:00:06
16866
f113 @@Q@@Q@Q@@Q@@@&@&@*@&@*@*@&@*@&@&@
16867
f114 @@Q@@Q@Q@@Q@@@&@&@*@&@*@*@&@*@&@&@
16870
f117 @@N@@N@N@@N@@@$@$@(@$@(@(@$@(@$@$@
16874
f62 0000000000000000000000000000000000000000000000000000000000000007
16876
f64 0000000000000000000000000000000000000000000000000000000000000007
16878
f66 6.600000000000000000000000000000
16880
f68 6.600000000000000000000000000000
16882
f70 000000000000000000000000000000006.600000000000000000000000000000
16884
f72 000000000000000000000000000000006.600000000000000000000000000000
16885
f73 -1.175494344e-38
16886
f74 1.175494358e-38
16887
f75 00000001.175494358e-38
16888
f76 00000001.175494358e-38
16889
f77 -1.175494344e-38
16890
f78 1.175494358e-38
16891
f79 00000001.175494358e-38
16892
f80 00000001.175494358e-38
16906
f94 -1.175494344e-38
16908
f96 1.175494358e-38
16910
f98 00000001.175494358e-38
16912
f100 00000001.175494358e-38
16915
f103 1970-01-08 00:00:07
16916
f104 1970-01-08 00:00:07
16925
f113 $@$@$@$@@@@@@@@@@@
16926
f114 $@$@$@$@@@@@@@@@@@
16929
f117 $@$@$@$@@@@@@@@@@@
16933
f62 0000000000000000000000000000000000000000000000000000000000000008
16935
f64 0000000000000000000000000000000000000000000000000000000000000008
16937
f66 7.700000000000000000000000000000
16939
f68 7.700000000000000000000000000000
16941
f70 000000000000000000000000000000007.700000000000000000000000000000
16943
f72 000000000000000000000000000000007.700000000000000000000000000000
16944
f73 -1.175494343e-38
16945
f74 1.175494359e-38
16946
f75 00000001.175494359e-38
16947
f76 00000001.175494359e-38
16948
f77 -1.175494343e-38
16949
f78 1.175494359e-38
16950
f79 00000001.175494359e-38
16951
f80 00000001.175494359e-38
16965
f94 -1.175494343e-38
16967
f96 1.175494359e-38
16969
f98 00000001.175494359e-38
16971
f100 00000001.175494359e-38
16974
f103 1970-01-09 00:00:08
16975
f104 1970-01-09 00:00:08
16984
f113 ��4@�4@4@�4@��@@ @@ @ @@ @@@
16985
f114 ��4@�4@4@�4@��@@ @@ @ @@ @@@
16988
f117 ��4@�4@4@�4@��@@ @@ @ @@ @@@
16992
f62 0000000000000000000000000000000000000000000000000000000000000009
16994
f64 0000000000000000000000000000000000000000000000000000000000000009
16996
f66 8.800000000000000000000000000000
16998
f68 8.800000000000000000000000000000
17000
f70 000000000000000000000000000000008.800000000000000000000000000000
17002
f72 000000000000000000000000000000008.800000000000000000000000000000
17003
f73 -1.175494342e-38
17005
f75 000000001.17549436e-38
17006
f76 000000001.17549436e-38
17007
f77 -1.175494342e-38
17009
f79 000000001.17549436e-38
17010
f80 000000001.17549436e-38
17024
f94 -1.175494342e-38
17028
f98 000000001.17549436e-38
17030
f100 000000001.17549436e-38
17033
f103 1970-01-10 00:00:09
17034
f104 1970-01-10 00:00:09
17043
f113 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
17044
f114 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
17047
f117 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
17051
f62 0000000000000000000000000000000000000000000000000000000000000010
17053
f64 0000000000000000000000000000000000000000000000000000000000000010
17055
f66 9.900000000000000000000000000000
17057
f68 9.900000000000000000000000000000
17059
f70 000000000000000000000000000000009.900000000000000000000000000000
17061
f72 000000000000000000000000000000009.900000000000000000000000000000
17062
f73 -1.175494341e-38
17063
f74 1.175494361e-38
17064
f75 00000001.175494361e-38
17065
f76 00000001.175494361e-38
17066
f77 -1.175494341e-38
17067
f78 1.175494361e-38
17068
f79 00000001.175494361e-38
17069
f80 00000001.175494361e-38
17083
f94 -1.175494341e-38
17085
f96 1.175494361e-38
17087
f98 00000001.175494361e-38
17089
f100 00000001.175494361e-38
17092
f103 1970-01-11 00:00:10
17093
f104 1970-01-11 00:00:10
17102
f113 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
17103
f114 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
17127
f79 00000000000000000007.7
17128
f80 00000000000000000008.8
17146
f98 00000000000000000008.8
17148
f100 00000000000000000008.8
17151
f103 0002-02-02 00:00:00
17152
f104 2000-12-31 23:59:59
17186
f79 00000000000000000007.7
17187
f80 00000000000000000008.8
17205
f98 00000000000000000008.8
17207
f100 00000000000000000008.8
17210
f103 0002-02-02 00:00:00
17211
f104 2000-12-31 23:59:59
17245
f79 00000000000000000007.7
17246
f80 00000000000000000008.8
17264
f98 00000000000000000008.8
17266
f100 00000000000000000008.8
17269
f103 0002-02-02 00:00:00
17270
f104 2000-12-31 23:59:59
17304
f79 00000000000000000007.7
17305
f80 00000000000000000008.8
17323
f98 00000000000000000008.8
17325
f100 00000000000000000008.8
17328
f103 0002-02-02 00:00:00
17329
f104 2000-12-31 23:59:59
17363
f79 00000000000000000007.7
17364
f80 00000000000000000008.8
17382
f98 00000000000000000008.8
17384
f100 00000000000000000008.8
17387
f103 0002-02-02 00:00:00
17388
f104 2000-12-31 23:59:59
17422
f79 00000000000000000007.7
17423
f80 00000000000000000008.8
17441
f98 00000000000000000008.8
17443
f100 00000000000000000008.8
17446
f103 0002-02-02 00:00:00
17447
f104 2000-12-31 23:59:59
17481
f79 00000000000000000007.7
17482
f80 00000000000000000008.8
17500
f98 00000000000000000008.8
17502
f100 00000000000000000008.8
17505
f103 0002-02-02 00:00:00
17506
f104 2000-12-31 23:59:59
17540
f79 00000000000000000007.7
17541
f80 00000000000000000008.8
17559
f98 00000000000000000008.8
17561
f100 00000000000000000008.8
17564
f103 0002-02-02 00:00:00
17565
f104 2000-12-31 23:59:59
17599
f79 00000000000000000007.7
17600
f80 00000000000000000008.8
17618
f98 00000000000000000008.8
17620
f100 00000000000000000008.8
17623
f103 0002-02-02 00:00:00
17624
f104 2000-12-31 23:59:59
17641
f62 0000000000000000000000000000000000000000000000000000000000000004
17643
f64 0000000000000000000000000000000000000000000000000000000000000004
17645
f66 3.300000000000000000000000000000
17647
f68 3.300000000000000000000000000000
17649
f70 000000000000000000000000000000003.300000000000000000000000000000
17651
f72 000000000000000000000000000000003.300000000000000000000000000000
17652
f73 -1.175494347e-38
17653
f74 1.175494355e-38
17654
f75 00000001.175494355e-38
17655
f76 00000001.175494355e-38
17656
f77 -1.175494347e-38
17657
f78 1.175494355e-38
17658
f79 00000001.175494355e-38
17659
f80 00000001.175494355e-38
17673
f94 -1.175494347e-38
17675
f96 1.175494355e-38
17677
f98 00000001.175494355e-38
17679
f100 00000001.175494355e-38
17682
f103 1970-01-05 00:00:04
17683
f104 1970-01-05 00:00:04
17692
f113 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
17693
f114 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
17717
f79 00000000000000000007.7
17718
f80 00000000000000000008.8
17736
f98 00000000000000000008.8
17738
f100 00000000000000000008.8
17741
f103 0002-02-02 00:00:00
17742
f104 2000-12-31 23:59:59
17776
f79 00000000000000000007.7
17777
f80 00000000000000000008.8
17795
f98 00000000000000000008.8
17797
f100 00000000000000000008.8
17800
f103 0002-02-02 00:00:00
17801
f104 2000-12-31 23:59:59
17835
f79 00000000000000000007.7
17836
f80 00000000000000000008.8
17854
f98 00000000000000000008.8
17856
f100 00000000000000000008.8
17859
f103 0002-02-02 00:00:00
17860
f104 2000-12-31 23:59:59
17894
f79 00000000000000000007.7
17895
f80 00000000000000000008.8
17913
f98 00000000000000000008.8
17915
f100 00000000000000000008.8
17918
f103 0002-02-02 00:00:00
17919
f104 2000-12-31 23:59:59
17953
f79 00000000000000000007.7
17954
f80 00000000000000000008.8
17972
f98 00000000000000000008.8
17974
f100 00000000000000000008.8
17977
f103 0002-02-02 00:00:00
17978
f104 2000-12-31 23:59:59
18012
f79 00000000000000000007.7
18013
f80 00000000000000000008.8
18031
f98 00000000000000000008.8
18033
f100 00000000000000000008.8
18036
f103 0002-02-02 00:00:00
18037
f104 2000-12-31 23:59:59
18071
f79 00000000000000000007.7
18072
f80 00000000000000000008.8
18090
f98 00000000000000000008.8
18092
f100 00000000000000000008.8
18095
f103 0002-02-02 00:00:00
18096
f104 2000-12-31 23:59:59
18130
f79 00000000000000000007.7
18131
f80 00000000000000000008.8
18149
f98 00000000000000000008.8
18151
f100 00000000000000000008.8
18154
f103 0002-02-02 00:00:00
18155
f104 2000-12-31 23:59:59
18189
f79 00000000000000000007.7
18190
f80 00000000000000000008.8
18208
f98 00000000000000000008.8
18210
f100 00000000000000000008.8
18213
f103 0002-02-02 00:00:00
18214
f104 2000-12-31 23:59:59
18248
f79 00000000000000000007.7
18249
f80 00000000000000000008.8
18267
f98 00000000000000000008.8
18269
f100 00000000000000000008.8
18272
f103 0002-02-02 00:00:00
18273
f104 2000-12-31 23:59:59
18307
f79 00000000000000000007.7
18308
f80 00000000000000000008.8
18326
f98 00000000000000000008.8
18328
f100 00000000000000000008.8
18331
f103 0002-02-02 00:00:00
18332
f104 2000-12-31 23:59:59
18366
f79 00000000000000000007.7
18367
f80 00000000000000000008.8
18385
f98 00000000000000000008.8
18387
f100 00000000000000000008.8
18390
f103 0002-02-02 00:00:00
18391
f104 2000-12-31 23:59:59
18425
f79 00000000000000000007.7
18426
f80 00000000000000000008.8
18444
f98 00000000000000000008.8
18446
f100 00000000000000000008.8
18449
f103 0002-02-02 00:00:00
18450
f104 2000-12-31 23:59:59
18484
f79 00000000000000000007.7
18485
f80 00000000000000000008.8
18503
f98 00000000000000000008.8
18505
f100 00000000000000000008.8
18508
f103 0002-02-02 00:00:00
18509
f104 2000-12-31 23:59:59
18543
f79 00000000000000000007.7
18544
f80 00000000000000000008.8
18562
f98 00000000000000000008.8
18564
f100 00000000000000000008.8
18567
f103 0002-02-02 00:00:00
18568
f104 2000-12-31 23:59:59
18602
f79 00000000000000000007.7
18603
f80 00000000000000000008.8
18621
f98 00000000000000000008.8
18623
f100 00000000000000000008.8
18626
f103 0002-02-02 00:00:00
18627
f104 2000-12-31 23:59:59
18661
f79 00000000000000000007.7
18662
f80 00000000000000000008.8
18680
f98 00000000000000000008.8
18682
f100 00000000000000000008.8
18685
f103 0002-02-02 00:00:00
18686
f104 2000-12-31 23:59:59
18720
f79 00000000000000000007.7
18721
f80 00000000000000000008.8
18739
f98 00000000000000000008.8
18741
f100 00000000000000000008.8
18744
f103 0002-02-02 00:00:00
18745
f104 2000-12-31 23:59:59
18779
f79 00000000000000000007.7
18780
f80 00000000000000000008.8
18798
f98 00000000000000000008.8
18800
f100 00000000000000000008.8
18803
f103 0002-02-02 00:00:00
18804
f104 2000-12-31 23:59:59
18838
f79 00000000000000000007.7
18839
f80 00000000000000000008.8
18857
f98 00000000000000000008.8
18859
f100 00000000000000000008.8
18862
f103 0002-02-02 00:00:00
18863
f104 2000-12-31 23:59:59
18897
f79 00000000000000000007.7
18898
f80 00000000000000000008.8
18916
f98 00000000000000000008.8
18918
f100 00000000000000000008.8
18921
f103 0002-02-02 00:00:00
18922
f104 2000-12-31 23:59:59
18956
f79 00000000000000000007.7
18957
f80 00000000000000000008.8
18975
f98 00000000000000000008.8
18977
f100 00000000000000000008.8
18980
f103 0002-02-02 00:00:00
18981
f104 2000-12-31 23:59:59
19015
f79 00000000000000000007.7
19016
f80 00000000000000000008.8
19034
f98 00000000000000000008.8
19036
f100 00000000000000000008.8
19039
f103 0002-02-02 00:00:00
19040
f104 2000-12-31 23:59:59
19074
f79 00000000000000000007.7
19075
f80 00000000000000000008.8
19093
f98 00000000000000000008.8
19095
f100 00000000000000000008.8
19098
f103 0002-02-02 00:00:00
19099
f104 2000-12-31 23:59:59
19133
f79 00000000000000000007.7
19134
f80 00000000000000000008.8
19152
f98 00000000000000000008.8
19154
f100 00000000000000000008.8
19157
f103 0002-02-02 00:00:00
19158
f104 2000-12-31 23:59:59
19192
f79 00000000000000000007.7
19193
f80 00000000000000000008.8
19211
f98 00000000000000000008.8
19213
f100 00000000000000000008.8
19216
f103 0002-02-02 00:00:00
19217
f104 2000-12-31 23:59:59
19251
f79 00000000000000000007.7
19252
f80 00000000000000000008.8
19270
f98 00000000000000000008.8
19272
f100 00000000000000000008.8
19275
f103 0002-02-02 00:00:00
19276
f104 2000-12-31 23:59:59
19310
f79 00000000000000000007.7
19311
f80 00000000000000000008.8
19329
f98 00000000000000000008.8
19331
f100 00000000000000000008.8
19334
f103 0002-02-02 00:00:00
19335
f104 2000-12-31 23:59:59
19369
f79 00000000000000000007.7
19370
f80 00000000000000000008.8
19388
f98 00000000000000000008.8
19390
f100 00000000000000000008.8
19393
f103 0002-02-02 00:00:00
19394
f104 2000-12-31 23:59:59
19428
f79 00000000000000000007.7
19429
f80 00000000000000000008.8
19447
f98 00000000000000000008.8
19449
f100 00000000000000000008.8
19452
f103 0002-02-02 00:00:00
19453
f104 2000-12-31 23:59:59
19487
f79 00000000000000000007.7
19488
f80 00000000000000000008.8
19506
f98 00000000000000000008.8
19508
f100 00000000000000000008.8
19511
f103 0002-02-02 00:00:00
19512
f104 2000-12-31 23:59:59
19526
drop view test.v1 ;
19527
CREATE VIEW test.v1 AS SELECT F59,F61 FROM test.tb2;
19528
SELECT * FROM test.v1 order by F59, F61 limit 50;
19580
drop view test.v1 ;
19581
CREATE VIEW test.v1 AS SELECT * FROM test.tb2 order by f59, f60, f61;
19582
SELECT * FROM test.v1 order by f59,f60,f61 ;
19586
f62 0000000000000000000000000000000000000000000000000000000000000001
19588
f64 0000000000000000000000000000000000000000000000000000000000000001
19590
f66 0.000000000000000000000000000000
19592
f68 0.000000000000000000000000000000
19594
f70 000000000000000000000000000000000.000000000000000000000000000000
19596
f72 000000000000000000000000000000000.000000000000000000000000000000
19597
f73 -1.17549435e-38
19598
f74 1.175494352e-38
19599
f75 00000001.175494352e-38
19600
f76 00000001.175494352e-38
19601
f77 -1.17549435e-38
19602
f78 1.175494352e-38
19603
f79 00000001.175494352e-38
19604
f80 00000001.175494352e-38
19618
f94 -1.17549435e-38
19620
f96 1.175494352e-38
19622
f98 00000001.175494352e-38
19624
f100 00000001.175494352e-38
19627
f103 1970-01-02 00:00:01
19628
f104 1970-01-02 00:00:01
19637
f113 $@$@$@$@@@@@@@@@@@
19638
f114 $@$@$@$@@@@@@@@@@@
19641
f117 $@$@$@$@@@@@@@@@@@
19645
f62 0000000000000000000000000000000000000000000000000000000000000002
19647
f64 0000000000000000000000000000000000000000000000000000000000000002
19649
f66 1.100000000000000000000000000000
19651
f68 1.100000000000000000000000000000
19653
f70 000000000000000000000000000000001.100000000000000000000000000000
19655
f72 000000000000000000000000000000001.100000000000000000000000000000
19656
f73 -1.175494349e-38
19657
f74 1.175494353e-38
19658
f75 00000001.175494353e-38
19659
f76 00000001.175494353e-38
19660
f77 -1.175494349e-38
19661
f78 1.175494353e-38
19662
f79 00000001.175494353e-38
19663
f80 00000001.175494353e-38
19677
f94 -1.175494349e-38
19679
f96 1.175494353e-38
19681
f98 00000001.175494353e-38
19683
f100 00000001.175494353e-38
19686
f103 1970-01-03 00:00:02
19687
f104 1970-01-03 00:00:02
19696
f113 ��4@�4@4@�4@��@@ @@ @ @@ @@@
19697
f114 ��4@�4@4@�4@��@@ @@ @ @@ @@@
19700
f117 ��4@�4@4@�4@��@@ @@ @ @@ @@@
19704
f62 0000000000000000000000000000000000000000000000000000000000000003
19706
f64 0000000000000000000000000000000000000000000000000000000000000003
19708
f66 2.200000000000000000000000000000
19710
f68 2.200000000000000000000000000000
19712
f70 000000000000000000000000000000002.200000000000000000000000000000
19714
f72 000000000000000000000000000000002.200000000000000000000000000000
19715
f73 -1.175494348e-38
19716
f74 1.175494354e-38
19717
f75 00000001.175494354e-38
19718
f76 00000001.175494354e-38
19719
f77 -1.175494348e-38
19720
f78 1.175494354e-38
19721
f79 00000001.175494354e-38
19722
f80 00000001.175494354e-38
19736
f94 -1.175494348e-38
19738
f96 1.175494354e-38
19740
f98 00000001.175494354e-38
19742
f100 00000001.175494354e-38
19745
f103 1970-01-04 00:00:03
19746
f104 1970-01-04 00:00:03
19755
f113 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
19756
f114 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
19759
f117 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
19763
f62 0000000000000000000000000000000000000000000000000000000000000005
19765
f64 0000000000000000000000000000000000000000000000000000000000000005
19767
f66 4.400000000000000000000000000000
19769
f68 4.400000000000000000000000000000
19771
f70 000000000000000000000000000000004.400000000000000000000000000000
19773
f72 000000000000000000000000000000004.400000000000000000000000000000
19774
f73 -1.175494346e-38
19775
f74 1.175494356e-38
19776
f75 00000001.175494356e-38
19777
f76 00000001.175494356e-38
19778
f77 -1.175494346e-38
19779
f78 1.175494356e-38
19780
f79 00000001.175494356e-38
19781
f80 00000001.175494356e-38
19795
f94 -1.175494346e-38
19797
f96 1.175494356e-38
19799
f98 00000001.175494356e-38
19801
f100 00000001.175494356e-38
19804
f103 1970-01-06 00:00:05
19805
f104 1970-01-06 00:00:05
19814
f113 @@N@@N@N@@N@@@$@$@(@$@(@(@$@(@$@$@
19815
f114 @@N@@N@N@@N@@@$@$@(@$@(@(@$@(@$@$@
19818
f117 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
19822
f62 0000000000000000000000000000000000000000000000000000000000000006
19824
f64 0000000000000000000000000000000000000000000000000000000000000006
19826
f66 5.500000000000000000000000000000
19828
f68 5.500000000000000000000000000000
19830
f70 000000000000000000000000000000005.500000000000000000000000000000
19832
f72 000000000000000000000000000000005.500000000000000000000000000000
19833
f73 -1.175494345e-38
19834
f74 1.175494357e-38
19835
f75 00000001.175494357e-38
19836
f76 00000001.175494357e-38
19837
f77 -1.175494345e-38
19838
f78 1.175494357e-38
19839
f79 00000001.175494357e-38
19840
f80 00000001.175494357e-38
19854
f94 -1.175494345e-38
19856
f96 1.175494357e-38
19858
f98 00000001.175494357e-38
19860
f100 00000001.175494357e-38
19863
f103 1970-01-07 00:00:06
19864
f104 1970-01-07 00:00:06
19873
f113 @@Q@@Q@Q@@Q@@@&@&@*@&@*@*@&@*@&@&@
19874
f114 @@Q@@Q@Q@@Q@@@&@&@*@&@*@*@&@*@&@&@
19877
f117 @@N@@N@N@@N@@@$@$@(@$@(@(@$@(@$@$@
19881
f62 0000000000000000000000000000000000000000000000000000000000000007
19883
f64 0000000000000000000000000000000000000000000000000000000000000007
19885
f66 6.600000000000000000000000000000
19887
f68 6.600000000000000000000000000000
19889
f70 000000000000000000000000000000006.600000000000000000000000000000
19891
f72 000000000000000000000000000000006.600000000000000000000000000000
19892
f73 -1.175494344e-38
19893
f74 1.175494358e-38
19894
f75 00000001.175494358e-38
19895
f76 00000001.175494358e-38
19896
f77 -1.175494344e-38
19897
f78 1.175494358e-38
19898
f79 00000001.175494358e-38
19899
f80 00000001.175494358e-38
19913
f94 -1.175494344e-38
19915
f96 1.175494358e-38
19917
f98 00000001.175494358e-38
19919
f100 00000001.175494358e-38
19922
f103 1970-01-08 00:00:07
19923
f104 1970-01-08 00:00:07
19932
f113 $@$@$@$@@@@@@@@@@@
19933
f114 $@$@$@$@@@@@@@@@@@
19936
f117 $@$@$@$@@@@@@@@@@@
19940
f62 0000000000000000000000000000000000000000000000000000000000000008
19942
f64 0000000000000000000000000000000000000000000000000000000000000008
19944
f66 7.700000000000000000000000000000
19946
f68 7.700000000000000000000000000000
19948
f70 000000000000000000000000000000007.700000000000000000000000000000
19950
f72 000000000000000000000000000000007.700000000000000000000000000000
19951
f73 -1.175494343e-38
19952
f74 1.175494359e-38
19953
f75 00000001.175494359e-38
19954
f76 00000001.175494359e-38
19955
f77 -1.175494343e-38
19956
f78 1.175494359e-38
19957
f79 00000001.175494359e-38
19958
f80 00000001.175494359e-38
19972
f94 -1.175494343e-38
19974
f96 1.175494359e-38
19976
f98 00000001.175494359e-38
19978
f100 00000001.175494359e-38
19981
f103 1970-01-09 00:00:08
19982
f104 1970-01-09 00:00:08
19991
f113 ��4@�4@4@�4@��@@ @@ @ @@ @@@
19992
f114 ��4@�4@4@�4@��@@ @@ @ @@ @@@
19995
f117 ��4@�4@4@�4@��@@ @@ @ @@ @@@
19999
f62 0000000000000000000000000000000000000000000000000000000000000009
20001
f64 0000000000000000000000000000000000000000000000000000000000000009
20003
f66 8.800000000000000000000000000000
20005
f68 8.800000000000000000000000000000
20007
f70 000000000000000000000000000000008.800000000000000000000000000000
20009
f72 000000000000000000000000000000008.800000000000000000000000000000
20010
f73 -1.175494342e-38
20012
f75 000000001.17549436e-38
20013
f76 000000001.17549436e-38
20014
f77 -1.175494342e-38
20016
f79 000000001.17549436e-38
20017
f80 000000001.17549436e-38
20031
f94 -1.175494342e-38
20035
f98 000000001.17549436e-38
20037
f100 000000001.17549436e-38
20040
f103 1970-01-10 00:00:09
20041
f104 1970-01-10 00:00:09
20050
f113 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
20051
f114 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
20054
f117 @@4@@>@>@@>@@@@@"@@"@"@@"@@@
20058
f62 0000000000000000000000000000000000000000000000000000000000000010
20060
f64 0000000000000000000000000000000000000000000000000000000000000010
20062
f66 9.900000000000000000000000000000
20064
f68 9.900000000000000000000000000000
20066
f70 000000000000000000000000000000009.900000000000000000000000000000
20068
f72 000000000000000000000000000000009.900000000000000000000000000000
20069
f73 -1.175494341e-38
20070
f74 1.175494361e-38
20071
f75 00000001.175494361e-38
20072
f76 00000001.175494361e-38
20073
f77 -1.175494341e-38
20074
f78 1.175494361e-38
20075
f79 00000001.175494361e-38
20076
f80 00000001.175494361e-38
20090
f94 -1.175494341e-38
20092
f96 1.175494361e-38
20094
f98 00000001.175494361e-38
20096
f100 00000001.175494361e-38
20099
f103 1970-01-11 00:00:10
20100
f104 1970-01-11 00:00:10
20109
f113 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
20110
f114 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
20134
f79 00000000000000000007.7
20135
f80 00000000000000000008.8
20153
f98 00000000000000000008.8
20155
f100 00000000000000000008.8
20158
f103 0002-02-02 00:00:00
20159
f104 2000-12-31 23:59:59
20193
f79 00000000000000000007.7
20194
f80 00000000000000000008.8
20212
f98 00000000000000000008.8
20214
f100 00000000000000000008.8
20217
f103 0002-02-02 00:00:00
20218
f104 2000-12-31 23:59:59
20252
f79 00000000000000000007.7
20253
f80 00000000000000000008.8
20271
f98 00000000000000000008.8
20273
f100 00000000000000000008.8
20276
f103 0002-02-02 00:00:00
20277
f104 2000-12-31 23:59:59
20311
f79 00000000000000000007.7
20312
f80 00000000000000000008.8
20330
f98 00000000000000000008.8
20332
f100 00000000000000000008.8
20335
f103 0002-02-02 00:00:00
20336
f104 2000-12-31 23:59:59
20370
f79 00000000000000000007.7
20371
f80 00000000000000000008.8
20389
f98 00000000000000000008.8
20391
f100 00000000000000000008.8
20394
f103 0002-02-02 00:00:00
20395
f104 2000-12-31 23:59:59
20429
f79 00000000000000000007.7
20430
f80 00000000000000000008.8
20448
f98 00000000000000000008.8
20450
f100 00000000000000000008.8
20453
f103 0002-02-02 00:00:00
20454
f104 2000-12-31 23:59:59
20488
f79 00000000000000000007.7
20489
f80 00000000000000000008.8
20507
f98 00000000000000000008.8
20509
f100 00000000000000000008.8
20512
f103 0002-02-02 00:00:00
20513
f104 2000-12-31 23:59:59
20547
f79 00000000000000000007.7
20548
f80 00000000000000000008.8
20566
f98 00000000000000000008.8
20568
f100 00000000000000000008.8
20571
f103 0002-02-02 00:00:00
20572
f104 2000-12-31 23:59:59
20606
f79 00000000000000000007.7
20607
f80 00000000000000000008.8
20625
f98 00000000000000000008.8
20627
f100 00000000000000000008.8
20630
f103 0002-02-02 00:00:00
20631
f104 2000-12-31 23:59:59
20648
f62 0000000000000000000000000000000000000000000000000000000000000004
20650
f64 0000000000000000000000000000000000000000000000000000000000000004
20652
f66 3.300000000000000000000000000000
20654
f68 3.300000000000000000000000000000
20656
f70 000000000000000000000000000000003.300000000000000000000000000000
20658
f72 000000000000000000000000000000003.300000000000000000000000000000
20659
f73 -1.175494347e-38
20660
f74 1.175494355e-38
20661
f75 00000001.175494355e-38
20662
f76 00000001.175494355e-38
20663
f77 -1.175494347e-38
20664
f78 1.175494355e-38
20665
f79 00000001.175494355e-38
20666
f80 00000001.175494355e-38
20680
f94 -1.175494347e-38
20682
f96 1.175494355e-38
20684
f98 00000001.175494355e-38
20686
f100 00000001.175494355e-38
20689
f103 1970-01-05 00:00:04
20690
f104 1970-01-05 00:00:04
20699
f113 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
20700
f114 @@I@@I@I@@I@@@"@"@&@"@&@&@"@&@"@"@
20724
f79 00000000000000000007.7
20725
f80 00000000000000000008.8
20743
f98 00000000000000000008.8
20745
f100 00000000000000000008.8
20748
f103 0002-02-02 00:00:00
20749
f104 2000-12-31 23:59:59
20783
f79 00000000000000000007.7
20784
f80 00000000000000000008.8
20802
f98 00000000000000000008.8
20804
f100 00000000000000000008.8
20807
f103 0002-02-02 00:00:00
20808
f104 2000-12-31 23:59:59
20842
f79 00000000000000000007.7
20843
f80 00000000000000000008.8
20861
f98 00000000000000000008.8
20863
f100 00000000000000000008.8
20866
f103 0002-02-02 00:00:00
20867
f104 2000-12-31 23:59:59
20901
f79 00000000000000000007.7
20902
f80 00000000000000000008.8
20920
f98 00000000000000000008.8
20922
f100 00000000000000000008.8
20925
f103 0002-02-02 00:00:00
20926
f104 2000-12-31 23:59:59
20960
f79 00000000000000000007.7
20961
f80 00000000000000000008.8
20979
f98 00000000000000000008.8
20981
f100 00000000000000000008.8
20984
f103 0002-02-02 00:00:00
20985
f104 2000-12-31 23:59:59
21019
f79 00000000000000000007.7
21020
f80 00000000000000000008.8
21038
f98 00000000000000000008.8
21040
f100 00000000000000000008.8
21043
f103 0002-02-02 00:00:00
21044
f104 2000-12-31 23:59:59
21078
f79 00000000000000000007.7
21079
f80 00000000000000000008.8
21097
f98 00000000000000000008.8
21099
f100 00000000000000000008.8
21102
f103 0002-02-02 00:00:00
21103
f104 2000-12-31 23:59:59
21137
f79 00000000000000000007.7
21138
f80 00000000000000000008.8
21156
f98 00000000000000000008.8
21158
f100 00000000000000000008.8
21161
f103 0002-02-02 00:00:00
21162
f104 2000-12-31 23:59:59
21196
f79 00000000000000000007.7
21197
f80 00000000000000000008.8
21215
f98 00000000000000000008.8
21217
f100 00000000000000000008.8
21220
f103 0002-02-02 00:00:00
21221
f104 2000-12-31 23:59:59
21255
f79 00000000000000000007.7
21256
f80 00000000000000000008.8
21274
f98 00000000000000000008.8
21276
f100 00000000000000000008.8
21279
f103 0002-02-02 00:00:00
21280
f104 2000-12-31 23:59:59
21314
f79 00000000000000000007.7
21315
f80 00000000000000000008.8
21333
f98 00000000000000000008.8
21335
f100 00000000000000000008.8
21338
f103 0002-02-02 00:00:00
21339
f104 2000-12-31 23:59:59
21373
f79 00000000000000000007.7
21374
f80 00000000000000000008.8
21392
f98 00000000000000000008.8
21394
f100 00000000000000000008.8
21397
f103 0002-02-02 00:00:00
21398
f104 2000-12-31 23:59:59
21432
f79 00000000000000000007.7
21433
f80 00000000000000000008.8
21451
f98 00000000000000000008.8
21453
f100 00000000000000000008.8
21456
f103 0002-02-02 00:00:00
21457
f104 2000-12-31 23:59:59
21491
f79 00000000000000000007.7
21492
f80 00000000000000000008.8
21510
f98 00000000000000000008.8
21512
f100 00000000000000000008.8
21515
f103 0002-02-02 00:00:00
21516
f104 2000-12-31 23:59:59
21550
f79 00000000000000000007.7
21551
f80 00000000000000000008.8
21569
f98 00000000000000000008.8
21571
f100 00000000000000000008.8
21574
f103 0002-02-02 00:00:00
21575
f104 2000-12-31 23:59:59
21609
f79 00000000000000000007.7
21610
f80 00000000000000000008.8
21628
f98 00000000000000000008.8
21630
f100 00000000000000000008.8
21633
f103 0002-02-02 00:00:00
21634
f104 2000-12-31 23:59:59
21668
f79 00000000000000000007.7
21669
f80 00000000000000000008.8
21687
f98 00000000000000000008.8
21689
f100 00000000000000000008.8
21692
f103 0002-02-02 00:00:00
21693
f104 2000-12-31 23:59:59
21727
f79 00000000000000000007.7
21728
f80 00000000000000000008.8
21746
f98 00000000000000000008.8
21748
f100 00000000000000000008.8
21751
f103 0002-02-02 00:00:00
21752
f104 2000-12-31 23:59:59
21786
f79 00000000000000000007.7
21787
f80 00000000000000000008.8
21805
f98 00000000000000000008.8
21807
f100 00000000000000000008.8
21810
f103 0002-02-02 00:00:00
21811
f104 2000-12-31 23:59:59
21845
f79 00000000000000000007.7
21846
f80 00000000000000000008.8
21864
f98 00000000000000000008.8
21866
f100 00000000000000000008.8
21869
f103 0002-02-02 00:00:00
21870
f104 2000-12-31 23:59:59
21904
f79 00000000000000000007.7
21905
f80 00000000000000000008.8
21923
f98 00000000000000000008.8
21925
f100 00000000000000000008.8
21928
f103 0002-02-02 00:00:00
21929
f104 2000-12-31 23:59:59
21963
f79 00000000000000000007.7
21964
f80 00000000000000000008.8
21982
f98 00000000000000000008.8
21984
f100 00000000000000000008.8
21987
f103 0002-02-02 00:00:00
21988
f104 2000-12-31 23:59:59
22022
f79 00000000000000000007.7
22023
f80 00000000000000000008.8
22041
f98 00000000000000000008.8
22043
f100 00000000000000000008.8
22046
f103 0002-02-02 00:00:00
22047
f104 2000-12-31 23:59:59
22081
f79 00000000000000000007.7
22082
f80 00000000000000000008.8
22100
f98 00000000000000000008.8
22102
f100 00000000000000000008.8
22105
f103 0002-02-02 00:00:00
22106
f104 2000-12-31 23:59:59
22140
f79 00000000000000000007.7
22141
f80 00000000000000000008.8
22159
f98 00000000000000000008.8
22161
f100 00000000000000000008.8
22164
f103 0002-02-02 00:00:00
22165
f104 2000-12-31 23:59:59
22199
f79 00000000000000000007.7
22200
f80 00000000000000000008.8
22218
f98 00000000000000000008.8
22220
f100 00000000000000000008.8
22223
f103 0002-02-02 00:00:00
22224
f104 2000-12-31 23:59:59
22258
f79 00000000000000000007.7
22259
f80 00000000000000000008.8
22277
f98 00000000000000000008.8
22279
f100 00000000000000000008.8
22282
f103 0002-02-02 00:00:00
22283
f104 2000-12-31 23:59:59
22317
f79 00000000000000000007.7
22318
f80 00000000000000000008.8
22336
f98 00000000000000000008.8
22338
f100 00000000000000000008.8
22341
f103 0002-02-02 00:00:00
22342
f104 2000-12-31 23:59:59
22376
f79 00000000000000000007.7
22377
f80 00000000000000000008.8
22395
f98 00000000000000000008.8
22397
f100 00000000000000000008.8
22400
f103 0002-02-02 00:00:00
22401
f104 2000-12-31 23:59:59
22435
f79 00000000000000000007.7
22436
f80 00000000000000000008.8
22454
f98 00000000000000000008.8
22456
f100 00000000000000000008.8
22459
f103 0002-02-02 00:00:00
22460
f104 2000-12-31 23:59:59
22494
f79 00000000000000000007.7
22495
f80 00000000000000000008.8
22513
f98 00000000000000000008.8
22515
f100 00000000000000000008.8
22518
f103 0002-02-02 00:00:00
22519
f104 2000-12-31 23:59:59
22533
drop view test.v1 ;
22534
CREATE VIEW test.v1 AS SELECT F59,f61 FROM test.tb2;
22535
SELECT * FROM test.v1 order by f59,f61 desc limit 20;
22557
drop view test.v1 ;
22560
--------------------------------------------------------------------------------
22562
drop table if exists test.t1 ;
22563
drop table if exists test.t2 ;
22564
drop view if exists test.v1 ;
22565
Create table t1 (f59 int, f60 int) ;
22566
Create table t2 (f59 int, f60 int) ;
22567
Insert into t1 values (1,10) ;
22568
Insert into t1 values (2,20) ;
22569
Insert into t1 values (47,80) ;
22570
Insert into t2 values (1,1000) ;
22571
Insert into t2 values (2,2000) ;
22572
Insert into t2 values (31,97) ;
22573
Create view test.v1 as select t1.f59, t1.f60
22574
from t1,t2 where t1.f59=t2.f59 ;
22575
Select * from test.v1 order by f59 limit 50 ;
22579
drop table test.t1 ;
22580
drop table test.t2 ;
22581
drop view test.v1 ;
22583
Testcase 3.3.1.50 - 3.3.1.54 additional implementation
22584
--------------------------------------------------------------------------------
22585
DROP TABLE IF EXISTS t1 ;
22586
DROP VIEW IF EXISTS v1 ;
22587
CREATE TABLE t1 ( f1 BIGINT, f2 char(10), f3 DECIMAL(10,5) );
22588
INSERT INTO t1 VALUES(1, 'one', 1.1);
22589
INSERT INTO t1 VALUES(2, 'two', 2.2);
22590
INSERT INTO t1 VALUES(3, 'three', 3.3);
22591
CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1;
22597
CREATE OR REPLACE VIEW v1 AS SELECT f2 FROM t1;
22603
CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1 WHERE f3 = 2.2;
22607
CREATE OR REPLACE VIEW v1 AS SELECT f2 FROM t1 WHERE f3 = 2.2;
22611
SET sql_mode = 'traditional,ansi';
22612
CREATE OR REPLACE VIEW v1 AS
22613
SELECT f3 AS "pure column f3:", f1 + f3 AS "sum of columns f1 + f3 =",
22614
3 * (- 0.11111E+1) AS "product of constants 3 * (- 0.11111E+1):",
22615
'->' || CAST(f3 AS CHAR) || '<-'
22616
AS "expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR):"
22617
FROM t1 WHERE f1 = 2;
22618
CREATE OR REPLACE VIEW v1 AS
22619
SELECT f3 AS "pure column f3: ", f1 + f3 AS "sum of columns f1 + f3 = ",
22620
3 * (- 0.11111E+1) AS "product of constants 3 * (- 0.11111E+1): ",
22621
'->' || CAST(f3 AS CHAR) || '<-'
22622
AS "expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR): "
22623
FROM t1 WHERE f1 = 2;
22624
ERROR 42000: Incorrect column name 'pure column f3: '
22626
pure column f3: 2.20000
22627
sum of columns f1 + f3 = 4.20000
22628
product of constants 3 * (- 0.11111E+1): -3.3333
22629
expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR): ->2.20000<-
22632
Testcases 3.3.1.55 - 3.3.1.62
22633
--------------------------------------------------------------------------------
22634
Drop table if exists t1, t2 ;
22635
Drop view if exists v1 ;
22636
Create table t1 (f59 int, f60 char(10), f61 int, a char(1)) ;
22637
Insert into t1 values (1, 'single', 3, '1') ;
22638
Insert into t1 values (2, 'double', 6, '2') ;
22639
Insert into t1 values (3, 'single-f3', 4, '3') ;
22640
Create table t2 (f59 int, f60 char(10), f61 int, b char(1)) ;
22641
Insert into t2 values (2, 'double', 6, '2') ;
22642
Insert into t2 values (3, 'single-f3', 6, '3') ;
22643
Insert into t2 values (4, 'single', 4, '4') ;
22644
create or replace view test.v1 as
22645
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
22646
t1.f61 t1_f61, t2.f61 t2_f61
22647
from t1 inner join t2 where t1.f59 = t2.f59 ;
22648
select * from test.v1 order by t1_f59 ;
22649
t1_f59 t2_f59 t1_f60 t2_f60 t1_f61 t2_f61
22650
2 2 double double 6 6
22651
3 3 single-f3 single-f3 4 6
22652
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
22653
t1.f61 t1_f61, t2.f61 t2_f61
22654
from t1 inner join t2 where t1.f59 = t2.f59;
22655
t1_f59 t2_f59 t1_f60 t2_f60 t1_f61 t2_f61
22656
2 2 double double 6 6
22657
3 3 single-f3 single-f3 4 6
22658
Create or replace view test.v1 as
22659
Select t1.f59 AS t1_f59, t2.f59 AS t2_f59
22660
FROM t2 cross join t1;
22661
Select * from v1 order by t1_f59,t2_f59;
22672
Select t1.f59 AS t1_f59, t2.f59 AS t2_f59
22673
FROM t2 cross join t1;
22684
Create or replace view test.v1 as
22685
Select straight_join t1.f59 AS t1_f59, t2.f59 AS t2_f59
22687
Select * from v1 order by t1_f59,t2_f59;
22698
Select straight_join t1.f59 AS t1_f59, t2.f59 AS t2_f59
22710
Create or replace view test.v1 as
22711
Select f59, f60, f61, a, b
22712
FROM t2 natural join t1;
22713
Select * from v1 order by f59;
22716
Select f59, f60, f61, a, b
22717
FROM t2 natural join t1;
22720
Create or replace view test.v1 as
22721
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
22722
t1.f61 t1_f61, t2.f61 t2_f61
22723
FROM t2 left outer join t1 on t2.f59=t1.f59;
22724
Select * from v1 order by t1_f59;
22725
t1_f59 t2_f59 t1_f60 t2_f60 t1_f61 t2_f61
22726
NULL 4 NULL single NULL 4
22727
2 2 double double 6 6
22728
3 3 single-f3 single-f3 4 6
22729
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
22730
t1.f61 t1_f61, t2.f61 t2_f61
22731
FROM t2 left outer join t1 on t2.f59=t1.f59;
22732
t1_f59 t2_f59 t1_f60 t2_f60 t1_f61 t2_f61
22733
2 2 double double 6 6
22734
3 3 single-f3 single-f3 4 6
22735
NULL 4 NULL single NULL 4
22736
Create or replace view test.v1 as
22737
Select f59, f60, f61, t1.a, t2.b
22738
FROM t2 natural left outer join t1;
22739
Select * from v1 order by f59;
22742
3 single-f3 6 NULL 3
22744
Select f59, f60, f61, t1.a, t2.b
22745
FROM t2 natural left outer join t1;
22748
3 single-f3 6 NULL 3
22750
Create or replace view test.v1 as
22751
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
22752
t1.f61 t1_f61, t2.f61 t2_f61
22753
FROM t2 right outer join t1 on t2.f59=t1.f59;
22754
Select * from v1 order by t1_f59;
22755
t1_f59 t2_f59 t1_f60 t2_f60 t1_f61 t2_f61
22756
1 NULL single NULL 3 NULL
22757
2 2 double double 6 6
22758
3 3 single-f3 single-f3 4 6
22759
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
22760
t1.f61 t1_f61, t2.f61 t2_f61
22761
FROM t2 right outer join t1 on t2.f59=t1.f59;
22762
t1_f59 t2_f59 t1_f60 t2_f60 t1_f61 t2_f61
22763
1 NULL single NULL 3 NULL
22764
2 2 double double 6 6
22765
3 3 single-f3 single-f3 4 6
22766
Create or replace view test.v1 as
22767
Select f59, f60, a, b
22768
FROM t2 natural right outer join t1;
22769
Select * from v1 order by f59 desc;
22774
Select f59, f60, a, b
22775
FROM t2 natural right outer join t1;
22784
Testcase 3.3.1.A1 - 3.3.1.A3
22785
--------------------------------------------------------------------------------
22786
Drop table if exists t1 ;
22787
Drop view if exists v1;
22788
Create table t1 (f59 int, f60 int, f61 int) ;
22789
Insert into t1 values (101,201,301) ;
22790
Insert into t1 values (107,501,601) ;
22791
Insert into t1 values (901,801,401) ;
22792
Create or replace view test.v1 as
22793
Select tb2.f59 FROM tb2 LEFT JOIN t1 on tb2.f59 = t1.f59 ;
22794
Select * from test.v1 order by f59 limit 0,10;
22806
Drop view if exists test.v1 ;
22807
Drop table if exists t1 ;
22808
Drop view if exists v1;
22809
Create table t1 (f59 int, f60 int, f61 int) ;
22810
Insert into t1 values (201,201,201) ;
22811
Insert into t1 values (207,201,201) ;
22812
Insert into t1 values (201,201,201) ;
22813
Create or replace view test.v1
22814
as Select tb2.f59 FROM tb2 INNER JOIN t1 on tb2.f59 = t1.f59 ;
22815
Select * from test.v1 order by f59 limit 0,10;
22818
Drop view if exists test.v1 ;
22819
Drop table if exists t1 ;
22820
Drop view if exists v1;
22821
Create table t1 (f59 int, f60 int, f61 int) ;
22822
Insert into t1 values (21,21,21) ;
22823
Insert into t1 values (27,21,21) ;
22824
Insert into t1 values (21,21,21) ;
22825
Create or replace view test.v1
22826
as Select tb2.f59 FROM tb2 CROSS JOIN t1 on tb2.f59 = t1.f59 ;
22827
Select * from test.v1 order by f59 limit 0,10;
22830
Drop view test.v1 ;
22833
--------------------------------------------------------------------------------
22834
Drop table if exists t1 ;
22835
Drop view if exists test.v1 ;
22836
Create table t1 (f59 int, f60 int, f61 int) ;
22837
Insert into t1 values (11,21,31) ;
22838
Insert into t1 values (17,51,61) ;
22839
Insert into t1 values (91,81,41) ;
22840
Create or replace view test.v1 as (Select f59 FROM tb2 where f59=17 )
22841
Union ALL (Select f59 from t1 where f59=17 );
22842
Select * from test.v1 order by f59 limit 0,10;
22846
Create or replace view test.v1 as (Select f59 FROM tb2 where f59=17 )
22847
Union (Select f59 from t1 where f59=17 );
22848
Select * from test.v1 order by f59 limit 0,10;
22851
Create or replace view test.v1 as (Select f59 FROM tb2 where f59=17 )
22852
Union Distinct (Select f59 from t1 where f60=17 );
22853
Select * from test.v1 order by f59 limit 0,10;
22856
Drop view test.v1 ;
22857
drop table if exists t1;
22858
drop view if exists test.v1;
22859
create table t1 (f59 int, f60 int, f61 int);
22860
insert into t1 values (101,201,301);
22861
insert into t1 values (107,501,601);
22862
insert into t1 values (901,801,401);
22863
create or replace view test.v1 as
22864
select tb2.f59 from tb2 join t1 on tb2.f59 = t1.f59;
22865
select * from test.v1 order by f59 limit 0,10;
22869
create or replace view test.v1 as
22870
(select f59 from tb2 where f59=107 )
22872
(select f59 from t1 where f59=107 );
22873
select * from test.v1 order by f59 limit 0,10;
22878
create or replace view test.v1 as
22879
(select f59 from tb2 where f59=107 )
22881
(select f59 from t1 where f59=107 );
22882
select * from test.v1 order by f59 limit 0,10;
22885
create or replace view test.v1 as
22886
(select f59 from tb2 where f59=107 )
22888
(select f59 from t1 where f59=107 );
22889
select * from test.v1 order by f59 limit 0,10;
22892
drop view if exists test.v1 ;
22896
--------------------------------------------------------------------------------
22897
Drop view if exists test.v1 ;
22898
CREATE VIEW test.v1 AS SELECT F59
22899
FROM test.tb2 where test.tb2.F59 = 109;
22900
SELECT * FROM test.v1 order by f59 limit 0,10;
22904
ALTER VIEW test.v1 AS SELECT *
22905
FROM test.tb2 WHERE test.tb2.f59 = 242 ;
22906
SELECT * FROM test.v1 order by f59 limit 0,10;
22927
f79 00000000000000000007.7
22928
f80 00000000000000000008.8
22946
f98 00000000000000000008.8
22948
f100 00000000000000000008.8
22951
f103 0002-02-02 00:00:00
22952
f104 2000-12-31 23:59:59
22966
Drop view test.v1 ;
22968
Testcase 3.3.1.65, 3.3.1.A4, 3.3.1.66, 3.3.1.67
22969
--------------------------------------------------------------------------------
22970
DROP TABLE IF EXISTS t1;
22971
DROP VIEW IF EXISTS test.v1 ;
22972
CREATE TABLE t1 ( f1 VARCHAR(1000) ) ENGINE = myisam ;
22973
CREATE VIEW v1 AS SELECT f1 FROM t1;
22976
ERROR 42S02: Unknown table 'v1'
22977
CREATE VIEW v1 AS SELECT f1 FROM t1;
22978
DROP VIEW IF EXISTS v1;
22979
DROP VIEW IF EXISTS v1;
22981
Note 1051 Unknown table 'test.v1'
22984
--------------------------------------------------------------------------------
22985
DROP TABLE IF EXISTS t1;
22986
DROP VIEW IF EXISTS v1_base ;
22987
DROP VIEW IF EXISTS v1_top ;
22988
CREATE TABLE t1 ( f1 DOUBLE);
22989
CREATE VIEW v1_base AS SELECT * FROM t1;
22990
CREATE VIEW v1_top AS SELECT * FROM v1_base;
22993
ERROR 42S02: Unknown table 'v1_top'
22994
CREATE VIEW v1_top AS SELECT * FROM v1_base;
22995
DROP VIEW v1_base ;
22997
ERROR 42S02: Unknown table 'v1_base'
22999
CREATE VIEW v1_base AS SELECT * FROM t1;
23000
CREATE VIEW v1_top AS SELECT * FROM v1_base;
23001
DROP VIEW v1_top CASCADE ;
23003
ERROR 42S02: Unknown table 'v1_top'
23004
CREATE VIEW v1_top AS SELECT * FROM v1_base;
23005
DROP VIEW v1_base CASCADE ;
23007
ERROR 42S02: Unknown table 'v1_base'
23009
CREATE VIEW v1_base AS SELECT * FROM t1;
23010
CREATE VIEW v1_top AS SELECT * FROM v1_base;
23011
DROP VIEW v1_top RESTRICT ;
23013
ERROR 42S02: Unknown table 'v1_top'
23014
CREATE VIEW v1_top AS SELECT * FROM v1_base;
23015
DROP VIEW v1_base RESTRICT ;
23017
ERROR 42S02: Unknown table 'v1_base'
23020
Testcase 3.3.1.69, 3.3.1.70, 3.3.1.A5
23021
--------------------------------------------------------------------------------
23022
DROP TABLE IF EXISTS t1 ;
23023
DROP VIEW IF EXISTS v1 ;
23024
CREATE TABLE t1 (f59 INT, f60 INT, f61 INT) ENGINE = myisam;
23025
CREATE VIEW v1 AS SELECT * FROM t1;
23028
ERROR 42S02: Table 'test.v1' doesn't exist
23029
SHOW CREATE VIEW v1 ;
23030
ERROR 42S02: Table 'test.v1' doesn't exist
23031
SHOW CREATE TABLE v1 ;
23032
ERROR 42S02: Table 'test.v1' doesn't exist
23033
SHOW TABLE STATUS like 'v1' ;
23034
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
23035
SHOW TABLES LIKE 'v1';
23036
Tables_in_test (v1)
23037
SHOW COLUMNS FROM v1;
23038
ERROR 42S02: Table 'test.v1' doesn't exist
23039
SHOW FIELDS FROM v1;
23040
ERROR 42S02: Table 'test.v1' doesn't exist
23042
Table Op Msg_type Msg_text
23043
test.v1 check Error Table 'test.v1' doesn't exist
23044
test.v1 check error Corrupt
23046
ERROR 42S02: Table 'test.v1' doesn't exist
23047
EXPLAIN SELECT * FROM v1;
23048
ERROR 42S02: Table 'test.v1' doesn't exist
23052
--------------------------------------------------------------------------------
23053
DROP DATABASE IF EXISTS test3;
23054
CREATE DATABASE test3;
23055
CREATE TABLE test3.t1 (f1 DECIMAL(5,3)) ENGINE = myisam;
23056
INSERT INTO test3.t1 SET f1 = 1.0;
23057
CREATE VIEW test3.v0 AS SELECT * FROM test3.t1;
23058
CREATE VIEW test3.v1 AS SELECT * FROM test3.v0;
23059
CREATE VIEW test3.v2 AS SELECT * FROM test3.v1;
23060
CREATE VIEW test3.v3 AS SELECT * FROM test3.v2;
23061
CREATE VIEW test3.v4 AS SELECT * FROM test3.v3;
23062
CREATE VIEW test3.v5 AS SELECT * FROM test3.v4;
23063
CREATE VIEW test3.v6 AS SELECT * FROM test3.v5;
23064
CREATE VIEW test3.v7 AS SELECT * FROM test3.v6;
23065
CREATE VIEW test3.v8 AS SELECT * FROM test3.v7;
23066
CREATE VIEW test3.v9 AS SELECT * FROM test3.v8;
23067
CREATE VIEW test3.v10 AS SELECT * FROM test3.v9;
23068
CREATE VIEW test3.v11 AS SELECT * FROM test3.v10;
23069
CREATE VIEW test3.v12 AS SELECT * FROM test3.v11;
23070
CREATE VIEW test3.v13 AS SELECT * FROM test3.v12;
23071
CREATE VIEW test3.v14 AS SELECT * FROM test3.v13;
23072
CREATE VIEW test3.v15 AS SELECT * FROM test3.v14;
23073
CREATE VIEW test3.v16 AS SELECT * FROM test3.v15;
23074
CREATE VIEW test3.v17 AS SELECT * FROM test3.v16;
23075
CREATE VIEW test3.v18 AS SELECT * FROM test3.v17;
23076
CREATE VIEW test3.v19 AS SELECT * FROM test3.v18;
23077
CREATE VIEW test3.v20 AS SELECT * FROM test3.v19;
23078
CREATE VIEW test3.v21 AS SELECT * FROM test3.v20;
23079
CREATE VIEW test3.v22 AS SELECT * FROM test3.v21;
23080
CREATE VIEW test3.v23 AS SELECT * FROM test3.v22;
23081
CREATE VIEW test3.v24 AS SELECT * FROM test3.v23;
23082
CREATE VIEW test3.v25 AS SELECT * FROM test3.v24;
23083
CREATE VIEW test3.v26 AS SELECT * FROM test3.v25;
23084
CREATE VIEW test3.v27 AS SELECT * FROM test3.v26;
23085
CREATE VIEW test3.v28 AS SELECT * FROM test3.v27;
23086
CREATE VIEW test3.v29 AS SELECT * FROM test3.v28;
23087
CREATE VIEW test3.v30 AS SELECT * FROM test3.v29;
23088
CREATE VIEW test3.v31 AS SELECT * FROM test3.v30;
23089
CREATE VIEW test3.v32 AS SELECT * FROM test3.v31;
23090
SHOW CREATE VIEW test3.v32;
23091
View Create View character_set_client collation_connection
23092
v32 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `test3`.`v32` AS select `v31`.`f1` AS `f1` from `test3`.`v31` latin1 latin1_swedish_ci
23093
SELECT * FROM test3.v32;
23096
EXPLAIN SELECT * FROM test3.v32;
23097
id select_type table type possible_keys key key_len ref rows Extra
23098
1 SIMPLE t1 system NULL NULL NULL NULL 1
23099
DROP VIEW test3.v0;
23100
SHOW CREATE VIEW test3.v32;
23101
View Create View character_set_client collation_connection
23102
v32 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `test3`.`v32` AS select `v31`.`f1` AS `f1` from `test3`.`v31` latin1 latin1_swedish_ci
23104
Warning 1356 View 'test3.v32' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
23105
SELECT * FROM test3.v32;
23106
ERROR HY000: View 'test3.v32' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
23107
EXPLAIN SELECT * FROM test3.v32;
23108
ERROR HY000: View 'test3.v32' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
23110
FIXME - Setting join_limit to 28 - hangs for higher values
23111
----------------------------------------------------------
23112
SET @join_limit = 28;
23113
SET @max_level = @join_limit - 1;
23114
DROP DATABASE IF EXISTS test3;
23115
DROP TABLE IF EXISTS test1.t1;
23116
DROP TABLE IF EXISTS test2.t1;
23117
DROP VIEW IF EXISTS test1.v27;
23118
DROP VIEW IF EXISTS test1.v26;
23119
DROP VIEW IF EXISTS test1.v25;
23120
DROP VIEW IF EXISTS test1.v24;
23121
DROP VIEW IF EXISTS test1.v23;
23122
DROP VIEW IF EXISTS test1.v22;
23123
DROP VIEW IF EXISTS test1.v21;
23124
DROP VIEW IF EXISTS test1.v20;
23125
DROP VIEW IF EXISTS test1.v19;
23126
DROP VIEW IF EXISTS test1.v18;
23127
DROP VIEW IF EXISTS test1.v17;
23128
DROP VIEW IF EXISTS test1.v16;
23129
DROP VIEW IF EXISTS test1.v15;
23130
DROP VIEW IF EXISTS test1.v14;
23131
DROP VIEW IF EXISTS test1.v13;
23132
DROP VIEW IF EXISTS test1.v12;
23133
DROP VIEW IF EXISTS test1.v11;
23134
DROP VIEW IF EXISTS test1.v10;
23135
DROP VIEW IF EXISTS test1.v9;
23136
DROP VIEW IF EXISTS test1.v8;
23137
DROP VIEW IF EXISTS test1.v7;
23138
DROP VIEW IF EXISTS test1.v6;
23139
DROP VIEW IF EXISTS test1.v5;
23140
DROP VIEW IF EXISTS test1.v4;
23141
DROP VIEW IF EXISTS test1.v3;
23142
DROP VIEW IF EXISTS test1.v2;
23143
DROP VIEW IF EXISTS test1.v1;
23144
DROP VIEW IF EXISTS test1.v0;
23145
CREATE DATABASE test3;
23147
CREATE TABLE t1 (f1 BIGINT, f2 CHAR(50)) ENGINE = myisam ;
23148
INSERT INTO t1 VALUES (NULL, 'numeric column is NULL');
23149
INSERT INTO t1 VALUES (0, NULL);
23150
INSERT INTO t1 VALUES (5, 'five');
23151
INSERT INTO t1 VALUES (1, 'one');
23152
INSERT INTO t1 VALUES (2, 'two');
23154
CREATE TABLE t1 (f1 DECIMAL(64,30), f2 VARCHAR(50)) ENGINE = myisam;
23155
INSERT INTO t1 VALUES (NULL, 'numeric column is NULL');
23156
INSERT INTO t1 VALUES (0.000000000000000000000000000000, NULL);
23157
INSERT INTO t1 VALUES (5.000000000000000000000000000000, 'five');
23158
INSERT INTO t1 VALUES (+1.000000000000000000000000000000, 'one');
23159
INSERT INTO t1 VALUES (3.000000000000000, 'three');
23161
CREATE TABLE t1 (f1 DOUBLE, f2 VARBINARY(50)) ENGINE = myisam;
23162
INSERT INTO t1 VALUES (NULL, 'numeric column is NULL');
23163
INSERT INTO t1 VALUES (+0.0E-35, NULL);
23164
INSERT INTO t1 VALUES (+0.5E+1, 'five');
23165
INSERT INTO t1 VALUES (20.0E-1, 'two');
23166
INSERT INTO t1 VALUES (0.0300E2, 'three');
23168
CREATE OR REPLACE VIEW test1.v0 AS SELECT * FROM test2.t1;
23169
CREATE OR REPLACE VIEW test1.v1 AS SELECT f1, f2
23170
FROM test2.t1 tab1 NATURAL JOIN test1.v0 tab2;
23171
CREATE OR REPLACE VIEW test1.v2 AS SELECT f1, f2
23172
FROM test3.t1 tab1 NATURAL JOIN test1.v1 tab2;
23173
CREATE OR REPLACE VIEW test1.v3 AS SELECT f1, f2
23174
FROM test1.t1 tab1 NATURAL JOIN test1.v2 tab2;
23175
CREATE OR REPLACE VIEW test1.v4 AS SELECT f1, f2
23176
FROM test2.t1 tab1 NATURAL JOIN test1.v3 tab2;
23177
CREATE OR REPLACE VIEW test1.v5 AS SELECT f1, f2
23178
FROM test3.t1 tab1 NATURAL JOIN test1.v4 tab2;
23179
CREATE OR REPLACE VIEW test1.v6 AS SELECT f1, f2
23180
FROM test1.t1 tab1 NATURAL JOIN test1.v5 tab2;
23181
CREATE OR REPLACE VIEW test1.v7 AS SELECT f1, f2
23182
FROM test2.t1 tab1 NATURAL JOIN test1.v6 tab2;
23183
CREATE OR REPLACE VIEW test1.v8 AS SELECT f1, f2
23184
FROM test3.t1 tab1 NATURAL JOIN test1.v7 tab2;
23185
CREATE OR REPLACE VIEW test1.v9 AS SELECT f1, f2
23186
FROM test1.t1 tab1 NATURAL JOIN test1.v8 tab2;
23187
CREATE OR REPLACE VIEW test1.v10 AS SELECT f1, f2
23188
FROM test2.t1 tab1 NATURAL JOIN test1.v9 tab2;
23189
CREATE OR REPLACE VIEW test1.v11 AS SELECT f1, f2
23190
FROM test3.t1 tab1 NATURAL JOIN test1.v10 tab2;
23191
CREATE OR REPLACE VIEW test1.v12 AS SELECT f1, f2
23192
FROM test1.t1 tab1 NATURAL JOIN test1.v11 tab2;
23193
CREATE OR REPLACE VIEW test1.v13 AS SELECT f1, f2
23194
FROM test2.t1 tab1 NATURAL JOIN test1.v12 tab2;
23195
CREATE OR REPLACE VIEW test1.v14 AS SELECT f1, f2
23196
FROM test3.t1 tab1 NATURAL JOIN test1.v13 tab2;
23197
CREATE OR REPLACE VIEW test1.v15 AS SELECT f1, f2
23198
FROM test1.t1 tab1 NATURAL JOIN test1.v14 tab2;
23199
CREATE OR REPLACE VIEW test1.v16 AS SELECT f1, f2
23200
FROM test2.t1 tab1 NATURAL JOIN test1.v15 tab2;
23201
CREATE OR REPLACE VIEW test1.v17 AS SELECT f1, f2
23202
FROM test3.t1 tab1 NATURAL JOIN test1.v16 tab2;
23203
CREATE OR REPLACE VIEW test1.v18 AS SELECT f1, f2
23204
FROM test1.t1 tab1 NATURAL JOIN test1.v17 tab2;
23205
CREATE OR REPLACE VIEW test1.v19 AS SELECT f1, f2
23206
FROM test2.t1 tab1 NATURAL JOIN test1.v18 tab2;
23207
CREATE OR REPLACE VIEW test1.v20 AS SELECT f1, f2
23208
FROM test3.t1 tab1 NATURAL JOIN test1.v19 tab2;
23209
SHOW CREATE VIEW test1.v20;
23210
View Create View character_set_client collation_connection
23211
v20 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `test1`.`v20` AS select `tab1`.`f1` AS `f1`,`tab1`.`f2` AS `f2` from (`test3`.`t1` `tab1` join `test1`.`v19` `tab2` on(((`tab1`.`f1` = `tab2`.`f1`) and (`tab1`.`f2` = `tab2`.`f2`)))) latin1 latin1_swedish_ci
23212
SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
23213
CAST(f2 AS CHAR) AS f2 FROM test1.v20;
23217
The output of following EXPLAIN is deactivated, because the result
23218
differs on some platforms
23219
FIXME Is this a bug ?
23220
--------------------------------------------------------------------------------
23221
EXPLAIN SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
23222
CAST(f2 AS CHAR) AS f2 FROM test1.v20;
23223
CREATE VIEW test1.v21 AS SELECT f1, f2
23224
FROM test3.t1 tab1 NATURAL JOIN test1.v20 tab2;
23225
SHOW CREATE VIEW test1.v21;
23226
View Create View character_set_client collation_connection
23227
v21 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `test1`.`v21` AS select `tab1`.`f1` AS `f1`,`tab1`.`f2` AS `f2` from (`test3`.`t1` `tab1` join `test1`.`v20` `tab2` on(((`tab1`.`f1` = `tab2`.`f1`) and (`tab1`.`f2` = `tab2`.`f2`)))) latin1 latin1_swedish_ci
23228
SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
23229
CAST(f2 AS CHAR) AS f2 FROM test1.v21;
23233
The output of following EXPLAIN is deactivated, because the result
23234
differs on some platforms
23235
FIXME Is this a bug ?
23236
--------------------------------------------------------------------------------
23237
EXPLAIN SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
23238
CAST(f2 AS CHAR) AS f2 FROM test1.v21;
23239
DROP VIEW IF EXISTS test1.v21;
23240
CREATE OR REPLACE VIEW test1.v0 AS
23241
SELECT f1 as f2, f2 as f1 FROM test2.t1;
23242
CREATE OR REPLACE VIEW test2.v0 AS
23243
SELECT CAST('0001-01-01' AS DATE) as f1, f2 FROM test3.t1;
23244
SHOW CREATE VIEW test1.v20;
23245
SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
23246
CAST(f2 AS CHAR) AS f2 FROM test1.v20;
23247
EXPLAIN SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
23248
CAST(f2 AS CHAR) AS f2 FROM test1.v20;
23249
CREATE OR REPLACE VIEW test3.v0 AS
23250
SELECT f1 , CONVERT('ßÄäÖöÜü§' USING UCS2) as f2 FROM test1.t1;
23251
SHOW CREATE VIEW test1.v20;
23252
SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
23253
CAST(f2 AS CHAR) AS f2 FROM test1.v20;
23254
EXPLAIN SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
23255
CAST(f2 AS CHAR) AS f2 FROM test1.v20;
23256
CREATE OR REPLACE VIEW test3.v0 AS
23257
SELECT CONVERT('ßÄäÖöÜü§' USING UCS2) as f1, f2 FROM test1.t1;
23258
SHOW CREATE VIEW test1.v20;
23259
SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
23260
CAST(f2 AS CHAR) AS f2 FROM test1.v20;
23261
EXPLAIN SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
23262
CAST(f2 AS CHAR) AS f2 FROM test1.v20;
23263
DROP VIEW IF EXISTS test1.v20;
23264
DROP VIEW IF EXISTS test1.v19;
23265
DROP VIEW IF EXISTS test1.v18;
23266
DROP VIEW IF EXISTS test1.v17;
23267
DROP VIEW IF EXISTS test1.v16;
23268
DROP VIEW IF EXISTS test1.v15;
23269
DROP VIEW IF EXISTS test1.v14;
23270
DROP VIEW IF EXISTS test1.v13;
23271
DROP VIEW IF EXISTS test1.v12;
23272
DROP VIEW IF EXISTS test1.v11;
23273
DROP VIEW IF EXISTS test1.v10;
23274
DROP VIEW IF EXISTS test1.v9;
23275
DROP VIEW IF EXISTS test1.v8;
23276
DROP VIEW IF EXISTS test1.v7;
23277
DROP VIEW IF EXISTS test1.v6;
23278
DROP VIEW IF EXISTS test1.v5;
23279
DROP VIEW IF EXISTS test1.v4;
23280
DROP VIEW IF EXISTS test1.v3;
23281
DROP VIEW IF EXISTS test1.v2;
23282
DROP VIEW IF EXISTS test1.v1;
23283
DROP VIEW IF EXISTS test1.v0;
23284
DROP DATABASE test3;
23285
DROP TABLE test1.t1;
23286
DROP TABLE test2.t1;
23290
--------------------------------------------------------------------------------
23291
Drop view if exists test.v1 ;
23292
Create View test.v1 AS SELECT f59,f60 FROM tb2 where f59 = 1995 ;
23293
INSERT INTO test.v1 (f59,f60) values (879,700) ;
23295
SELECT f59,f60 FROM test.v1 where f59 = 879 and f60 = 700 ;
23297
DELETE FROM tb2 where f59 = 879 and f60 = 700 ;
23298
Drop view test.v1 ;
23301
--------------------------------------------------------------------------------
23302
Drop view if exists test.v1 ;
23303
Create view test.v1 AS SELECT f59,f60,f61 FROM tb2 ;
23304
INSERT INTO test.v1 ( f59 , f60 ) values (2005,0101) ;
23306
SELECT * FROM tb2 where f59 = 2005 and f60 = 0101 ;
23327
f79 00000000000000000007.7
23328
f80 00000000000000000008.8
23346
f98 00000000000000000008.8
23348
f100 00000000000000000008.8
23351
f103 0002-02-02 00:00:00
23352
f104 2000-12-31 23:59:59
23366
SELECT f59,f60 FROM test.v1 where f59 = 2005 and f60 = 0101 ;
23369
DELETE FROM tb2 where f59 = 2005 and f60 = 0101 ;
23370
Drop view test.v1 ;
23373
--------------------------------------------------------------------------------
23374
Insert into tb2 (f59,f60,f61) values (780,105,106) ;
23375
Drop view if exists test.v1 ;
23376
CREATE VIEW test.v1 AS SELECT f59,f60,f61 FROM tb2 ;
23377
UPDATE test.v1 SET f59 = 8 WHERE f59 = 780 and f60 = 105;
23379
info: Rows matched: 1 Changed: 1 Warnings: 0
23380
SELECT * FROM tb2 where f59 = 8 and f60 = 105;
23401
f79 00000000000000000007.7
23402
f80 00000000000000000008.8
23420
f98 00000000000000000008.8
23422
f100 00000000000000000008.8
23425
f103 0002-02-02 00:00:00
23426
f104 2000-12-31 23:59:59
23440
SELECT f59,f60 FROM test.v1 where f59 = 8 and f60 = 105 ;
23443
Drop view test.v1 ;
23446
--------------------------------------------------------------------------------
23447
Insert into tb2 (f59,f60,f61) values (781,105,106) ;
23448
Drop view if exists test.v1 ;
23449
CREATE VIEW test.v1 AS SELECT f59,f60,f61 FROM tb2 ;
23450
UPDATE test.v1 SET f59 = 891 WHERE f60 = 105 ;
23452
info: Rows matched: 4 Changed: 4 Warnings: 0
23453
SELECT * FROM tb2 where f59 = 891 and f60 = 105;
23474
f79 00000000000000000007.7
23475
f80 00000000000000000008.8
23493
f98 00000000000000000008.8
23495
f100 00000000000000000008.8
23498
f103 0002-02-02 00:00:00
23499
f104 2000-12-31 23:59:59
23533
f79 00000000000000000007.7
23534
f80 00000000000000000008.8
23552
f98 00000000000000000008.8
23554
f100 00000000000000000008.8
23557
f103 0002-02-02 00:00:00
23558
f104 2000-12-31 23:59:59
23592
f79 00000000000000000007.7
23593
f80 00000000000000000008.8
23611
f98 00000000000000000008.8
23613
f100 00000000000000000008.8
23616
f103 0002-02-02 00:00:00
23617
f104 2000-12-31 23:59:59
23651
f79 00000000000000000007.7
23652
f80 00000000000000000008.8
23670
f98 00000000000000000008.8
23672
f100 00000000000000000008.8
23675
f103 0002-02-02 00:00:00
23676
f104 2000-12-31 23:59:59
23690
SELECT f59,f60 FROM test.v1 where f59 = 891 and f60 = 105 ;
23696
Drop view test.v1 ;
23699
--------------------------------------------------------------------------------
23700
Insert into tb2 (f59,f60,f61) values (789,105,106) ;
23701
Drop view if exists test.v1 ;
23702
CREATE VIEW test.v1 AS SELECT f59,f60,f61 FROM tb2 where f59 = 789 ;
23703
DELETE FROM test.v1 where f59 = 789 ;
23705
SELECT * FROM tb2 where f59 = 789 ;
23706
f59 f60 f61 f62 f63 f64 f65 f66 f67 f68 f69 f70 f71 f72 f73 f74 f75 f76 f77 f78 f79 f80 f81 f82 f83 f84 f85 f86 f87 f88 f89 f90 f91 f92 f93 f94 f95 f96 f97 f98 f99 f100 f101 f102 f103 f104 f105 f106 f107 f108 f109 f110 f111 f112 f113 f114 f115 f116 f117
23707
SELECT f59,f60 FROM test.v1 where f59 = 789 order by f60 ;
23709
Drop view test.v1 ;
23712
--------------------------------------------------------------------------------
23713
Insert into tb2 (f59,f60,f61) values (711,105,106) ;
23714
Drop view if exists test.v1 ;
23715
CREATE VIEW test.v1 AS SELECT f59,f60,f61 FROM tb2 where f59 = 711 ;
23716
DELETE FROM test.v1 where f59 = 711 ;
23718
SELECT * FROM tb2 where f59 = 711 ;
23719
f59 f60 f61 f62 f63 f64 f65 f66 f67 f68 f69 f70 f71 f72 f73 f74 f75 f76 f77 f78 f79 f80 f81 f82 f83 f84 f85 f86 f87 f88 f89 f90 f91 f92 f93 f94 f95 f96 f97 f98 f99 f100 f101 f102 f103 f104 f105 f106 f107 f108 f109 f110 f111 f112 f113 f114 f115 f116 f117
23720
SELECT f59,f60 FROM test.v1 where f59 = 711 order by f60 ;
23722
Drop view test.v1 ;
23724
Testcase 3.3.2.1 - 3.3.2.6 alternative implementation
23725
--------------------------------------------------------------------------------
23726
DROP TABLE IF EXISTS t1;
23727
DROP VIEW IF EXISTS v1;
23728
CREATE TABLE t1 ( f1 BIGINT, f2 CHAR(20), f3 NUMERIC(7,4),
23729
f4 CHAR, PRIMARY KEY(f1));
23730
CREATE VIEW v1 AS SELECT f1, f2, f3 FROM t1;
23731
INSERT INTO v1 SET f1 = 1;
23736
INSERT INTO v1 SET f2 = 'ABC';
23737
INSERT INTO v1 SET f2 = 'ABC';
23738
ERROR 23000: Duplicate entry '0' for key 'PRIMARY'
23743
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23744
DELETE FROM v1 WHERE f1 = 1;
23747
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23748
DELETE FROM v1 WHERE f2 = 'ABC';
23751
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23755
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23756
UPDATE v1 SET f1 = 2 WHERE f1 = 1;
23761
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23762
UPDATE v1 SET f1 = 2 WHERE f2 = 'ABC';
23767
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23768
UPDATE v1 SET f1 = 2;
23773
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23774
UPDATE v1 SET f2 = 'NNN' WHERE f1 = 1;
23779
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23780
UPDATE v1 SET f2 = 'NNN' WHERE f2 = 'ABC';
23785
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23786
UPDATE v1 SET f2 = 'NNN' WHERE f3 = -1.2E-3;
23791
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23792
UPDATE v1 SET f2 = 'NNN';
23797
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23798
UPDATE v1 SET f1 = 2, f2 = 'NNN' WHERE f1 = 1 AND f2 = 'ABC';
23804
CREATE VIEW v1 AS SELECT f2, f3 FROM t1;
23805
INSERT INTO v1 SET f2 = 'ABC';
23806
INSERT INTO v1 SET f2 = 'ABC';
23807
ERROR 23000: Duplicate entry '0' for key 'PRIMARY'
23812
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23813
DELETE FROM v1 WHERE f2 = 'ABC';
23816
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23820
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23821
UPDATE v1 SET f2 = 'NNN' WHERE f2 = 'ABC';
23826
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23827
UPDATE v1 SET f2 = 'NNN' WHERE f3 = -1.2E-3;
23832
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23833
UPDATE v1 SET f2 = 'NNN';
23839
CREATE VIEW v1 AS SELECT f1, f2, f3, 'HELLO' AS my_greeting FROM t1;
23840
INSERT INTO v1 SET f1 = 1;
23841
ERROR HY000: The target table v1 of the INSERT is not insertable-into
23845
INSERT INTO v1 SET f1 = 1, my_greeting = 'HELLO';
23846
ERROR HY000: The target table v1 of the INSERT is not insertable-into
23850
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23851
DELETE FROM v1 WHERE f1 = 1;
23854
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23855
DELETE FROM v1 WHERE f2 = 'ABC';
23858
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23859
DELETE FROM v1 WHERE my_greeting = 'HELLO';
23862
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23866
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23867
UPDATE v1 SET f1 = 2 WHERE f1 = 1;
23872
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23873
UPDATE v1 SET f1 = 2 WHERE f2 = 'ABC';
23878
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23879
UPDATE v1 SET f1 = 2 WHERE my_greeting = 'HELLO';
23884
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23885
UPDATE v1 SET f1 = 2;
23890
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23891
UPDATE v1 SET f2 = 'NNN' WHERE f1 = 1;
23896
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23897
UPDATE v1 SET f2 = 'NNN' WHERE f2 = 'ABC';
23902
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23903
UPDATE v1 SET f2 = 'NNN' WHERE f3 = -1.2E-3;
23908
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23909
UPDATE v1 SET f2 = 'NNN' WHERE my_greeting = 'HELLO';
23914
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23915
UPDATE v1 SET f2 = 'NNN';
23920
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23921
UPDATE v1 SET my_greeting = 'Hej' WHERE f1 = 1;
23922
ERROR HY000: Column 'my_greeting' is not updatable
23927
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23928
UPDATE v1 SET my_greeting = 'Hej' WHERE f2 = 'ABC';
23929
ERROR HY000: Column 'my_greeting' is not updatable
23934
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23935
UPDATE v1 SET my_greeting = 'Hej' WHERE my_greeting = 'HELLO';
23936
ERROR HY000: Column 'my_greeting' is not updatable
23941
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23942
UPDATE v1 SET my_greeting = 'Hej';
23943
ERROR HY000: Column 'my_greeting' is not updatable
23948
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23949
UPDATE v1 SET f1 = 2, f2 = 'NNN' WHERE f1 = 1 AND f2 = 'ABC';
23955
SET sql_mode = 'traditional';
23956
CREATE TABLE t1 ( f1 BIGINT, f2 CHAR(20), f3 NUMERIC(7,4) NOT NULL,
23957
f4 CHAR, PRIMARY KEY(f1));
23959
CREATE VIEW v1 AS SELECT f1, f2, f4 FROM t1;
23960
INSERT INTO v1 SET f1 = 1;
23961
ERROR HY000: Field of view 'test.v1' underlying table doesn't have a default value
23965
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23966
DELETE FROM v1 WHERE f1 = 1;
23967
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
23968
UPDATE v1 SET f4 = 'Y' WHERE f2 = 'ABC';
23975
Testcases 3.3.2.7 - 3.3.2.9,
23976
3.3.2.10 - 3.3.2.11 omitted because of missing
23977
features EXCEPT and INTERSECT
23978
--------------------------------------------------------------------------------
23979
INSERT INTO tb2 (f59,f60,f61) VALUES (77,185,126) ;
23980
INSERT INTO tb2 (f59,f60,f61) VALUES (59,58,54) ;
23981
DROP TABLE IF EXISTS t1 ;
23982
DROP VIEW IF EXISTS v1 ;
23983
CREATE TABLE t1 (f59 INT, f60 INT, f61 INT) ;
23984
INSERT INTO t1 VALUES (19,41,32) ;
23985
INSERT INTO t1 VALUES (59,54,71) ;
23986
INSERT INTO t1 VALUES (21,91,99) ;
23987
SET @variant1 = 'UNION ';
23988
SET @variant2 = 'UNION ALL ';
23989
SET @variant3 = 'UNION DISTINCT ';
23990
SET @variant4 = 'EXCEPT ';
23991
SET @variant5 = 'INTERSECT ';
23992
CREATE VIEW v1 AS SELECT f61 FROM tb2 WHERE f59=59 UNION DISTINCT SELECT f61 FROM t1 WHERE f59=19;
23993
INSERT INTO v1 VALUES (3000);
23994
ERROR HY000: The target table v1 of the INSERT is not insertable-into
23995
UPDATE v1 SET f61 = 100 WHERE f61 = 32;
23996
ERROR HY000: The target table v1 of the UPDATE is not updatable
23998
ERROR HY000: The target table v1 of the DELETE is not updatable
24000
CREATE VIEW v1 AS SELECT f61 FROM tb2 WHERE f59=59 UNION ALL SELECT f61 FROM t1 WHERE f59=19;
24001
INSERT INTO v1 VALUES (3000);
24002
ERROR HY000: The target table v1 of the INSERT is not insertable-into
24003
UPDATE v1 SET f61 = 100 WHERE f61 = 32;
24004
ERROR HY000: The target table v1 of the UPDATE is not updatable
24006
ERROR HY000: The target table v1 of the DELETE is not updatable
24008
CREATE VIEW v1 AS SELECT f61 FROM tb2 WHERE f59=59 UNION SELECT f61 FROM t1 WHERE f59=19;
24009
INSERT INTO v1 VALUES (3000);
24010
ERROR HY000: The target table v1 of the INSERT is not insertable-into
24011
UPDATE v1 SET f61 = 100 WHERE f61 = 32;
24012
ERROR HY000: The target table v1 of the UPDATE is not updatable
24014
ERROR HY000: The target table v1 of the DELETE is not updatable
24017
Testcases 3.3.2.12 - 3.3.2.20
24018
--------------------------------------------------------------------------------
24019
DROP TABLE IF EXISTS t1, t2 ;
24020
DROP VIEW IF EXISTS test.v1 ;
24021
Drop view if exists v2 ;
24022
CREATE TABLE t1 (f59 int, f60 int, f61 int) ;
24023
INSERT INTO t1 VALUES (19,41,32) ;
24024
INSERT INTO t1 VALUES (59,54,71) ;
24025
INSERT INTO t1 VALUES (21,91,99) ;
24026
CREATE TABLE t2 (f59 int, f60 int, f61 int) ;
24027
INSERT INTO t2 VALUES (19,41,32) ;
24028
INSERT INTO t2 VALUES (59,54,71) ;
24029
INSERT INTO t2 VALUES (21,91,99) ;
24030
CREATE VIEW v2 AS SELECT f59, f60, f61 FROM t2 LIMIT 5;
24031
SET @variant1= 'CREATE VIEW v1 AS SELECT DISTINCT(f61) FROM t1';
24032
SET @variant2= 'CREATE VIEW v1 AS SELECT DISTINCTROW(f61) FROM t1';
24033
SET @variant3= 'CREATE VIEW v1 AS SELECT SUM(f59) AS f61 FROM t1';
24034
SET @variant4= 'CREATE VIEW v1 AS SELECT f61 FROM t1 GROUP BY f61';
24035
SET @variant5= 'CREATE VIEW v1 AS SELECT f61 FROM t1 HAVING f61 > 0';
24036
SET @variant6= 'CREATE VIEW v1 AS SELECT (SELECT f60 FROM t2 WHERE f59=19) AS f61 FROM t1';
24037
SET @variant7= 'CREATE VIEW v1 AS SELECT f61 FROM v2';
24038
SET @variant8= 'CREATE VIEW v1 AS SELECT f59 AS f61 FROM t1 WHERE f60 IN (SELECT f59 FROM t1)';
24039
SET @variant9= 'CREATE ALGORITHM = TEMPTABLE VIEW v1 (f61) AS select f60 from t1';
24040
CREATE ALGORITHM = TEMPTABLE VIEW v1 (f61) AS select f60 from t1;
24041
INSERT INTO v1 VALUES (1002);
24042
ERROR HY000: The target table v1 of the INSERT is not insertable-into
24043
UPDATE v1 SET f61=1007;
24044
ERROR HY000: The target table v1 of the UPDATE is not updatable
24046
ERROR HY000: The target table v1 of the DELETE is not updatable
24048
CREATE VIEW v1 AS SELECT f59 AS f61 FROM t1 WHERE f60 IN (SELECT f59 FROM t1);
24049
INSERT INTO v1 VALUES (1002);
24050
ERROR HY000: The target table v1 of the INSERT is not insertable-into
24051
UPDATE v1 SET f61=1007;
24052
ERROR HY000: The target table v1 of the UPDATE is not updatable
24054
ERROR HY000: The target table v1 of the DELETE is not updatable
24056
CREATE VIEW v1 AS SELECT f61 FROM v2;
24057
INSERT INTO v1 VALUES (1002);
24058
ERROR HY000: The target table v1 of the INSERT is not insertable-into
24059
UPDATE v1 SET f61=1007;
24060
ERROR HY000: The target table v1 of the UPDATE is not updatable
24062
ERROR HY000: The target table v1 of the DELETE is not updatable
24064
CREATE VIEW v1 AS SELECT (SELECT f60 FROM t2 WHERE f59=19) AS f61 FROM t1;
24065
INSERT INTO v1 VALUES (1002);
24066
ERROR HY000: The target table v1 of the INSERT is not insertable-into
24067
UPDATE v1 SET f61=1007;
24068
ERROR HY000: The target table v1 of the UPDATE is not updatable
24070
ERROR HY000: The target table v1 of the DELETE is not updatable
24072
CREATE VIEW v1 AS SELECT f61 FROM t1 HAVING f61 > 0;
24073
INSERT INTO v1 VALUES (1002);
24074
ERROR HY000: The target table v1 of the INSERT is not insertable-into
24075
UPDATE v1 SET f61=1007;
24076
ERROR HY000: The target table v1 of the UPDATE is not updatable
24078
ERROR HY000: The target table v1 of the DELETE is not updatable
24080
CREATE VIEW v1 AS SELECT f61 FROM t1 GROUP BY f61;
24081
INSERT INTO v1 VALUES (1002);
24082
ERROR HY000: The target table v1 of the INSERT is not insertable-into
24083
UPDATE v1 SET f61=1007;
24084
ERROR HY000: The target table v1 of the UPDATE is not updatable
24086
ERROR HY000: The target table v1 of the DELETE is not updatable
24088
CREATE VIEW v1 AS SELECT SUM(f59) AS f61 FROM t1;
24089
INSERT INTO v1 VALUES (1002);
24090
ERROR HY000: The target table v1 of the INSERT is not insertable-into
24091
UPDATE v1 SET f61=1007;
24092
ERROR HY000: The target table v1 of the UPDATE is not updatable
24094
ERROR HY000: The target table v1 of the DELETE is not updatable
24096
CREATE VIEW v1 AS SELECT DISTINCTROW(f61) FROM t1;
24097
INSERT INTO v1 VALUES (1002);
24098
ERROR HY000: The target table v1 of the INSERT is not insertable-into
24099
UPDATE v1 SET f61=1007;
24100
ERROR HY000: The target table v1 of the UPDATE is not updatable
24102
ERROR HY000: The target table v1 of the DELETE is not updatable
24104
CREATE VIEW v1 AS SELECT DISTINCT(f61) FROM t1;
24105
INSERT INTO v1 VALUES (1002);
24106
ERROR HY000: The target table v1 of the INSERT is not insertable-into
24107
UPDATE v1 SET f61=1007;
24108
ERROR HY000: The target table v1 of the UPDATE is not updatable
24110
ERROR HY000: The target table v1 of the DELETE is not updatable
24112
Drop TABLE t1, t2 ;
24116
--------------------------------------------------------------------------------
24117
DROP TABLE IF EXISTS t1;
24118
DROP TABLE IF EXISTS t2;
24119
DROP VIEW IF EXISTS v1;
24120
DROP VIEW IF EXISTS v2;
24121
CREATE TABLE t1 (f1 BIGINT, f2 DATE DEFAULT NULL, f4 CHAR(5),
24122
report char(10)) ENGINE = myisam;
24123
CREATE VIEW v1 AS SELECT * FROM t1;
24124
INSERT INTO t1 SET f1 = -1, f4 = 'ABC', report = 't1 0';
24125
INSERT INTO v1 SET f1 = -1, f4 = 'ABC', report = 'v1 0';
24127
Field Type Null Key Default Extra
24128
f1 bigint(20) YES NULL
24130
f4 char(5) YES NULL
24131
report char(10) YES NULL
24133
Field Type Null Key Default Extra
24134
f1 bigint(20) YES NULL
24136
f4 char(5) YES NULL
24137
report char(10) YES NULL
24138
SELECT * FROM t1 order by f1, report;
24142
SELECT * FROM v1 order by f1, report;
24146
ALTER TABLE t1 CHANGE COLUMN f4 f4x CHAR(5);
24147
INSERT INTO t1 SET f1 = 0, f4x = 'ABC', report = 't1 1';
24148
INSERT INTO v1 SET f1 = 0, f4 = 'ABC', report = 'v1 1';
24149
ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
24150
INSERT INTO v1 SET f1 = 0, f4x = 'ABC', report = 'v1 1a';
24151
ERROR 42S22: Unknown column 'f4x' in 'field list'
24152
INSERT INTO v1 SET f1 = 0, report = 'v1 1b';
24153
ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
24155
Field Type Null Key Default Extra
24156
f1 bigint(20) YES NULL
24158
f4x char(5) YES NULL
24159
report char(10) YES NULL
24161
ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
24162
SELECT * FROM t1 order by f1, report;
24167
SELECT * FROM v1 order by f1, report;
24168
ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
24169
ALTER TABLE t1 CHANGE COLUMN f4x f4 CHAR(5);
24170
ALTER TABLE t1 CHANGE COLUMN f4 f4 CHAR(10);
24171
INSERT INTO t1 SET f1 = 2, f4 = '<-- 10 -->', report = 't1 2';
24172
INSERT INTO v1 SET f1 = 2, f4 = '<-- 10 -->', report = 'v1 2';
24174
Field Type Null Key Default Extra
24175
f1 bigint(20) YES NULL
24177
f4 char(10) YES NULL
24178
report char(10) YES NULL
24180
Field Type Null Key Default Extra
24181
f1 bigint(20) YES NULL
24183
f4 char(10) YES NULL
24184
report char(10) YES NULL
24185
SELECT * FROM t1 order by f1, report;
24190
2 NULL <-- 10 --> t1 2
24191
2 NULL <-- 10 --> v1 2
24192
SELECT * FROM v1 order by f1, report;
24197
2 NULL <-- 10 --> t1 2
24198
2 NULL <-- 10 --> v1 2
24199
ALTER TABLE t1 CHANGE COLUMN f4 f4 CHAR(8);
24200
INSERT INTO t1 SET f1 = 3, f4 = '<-- 10 -->', report = 't1 3';
24202
Warning 1265 Data truncated for column 'f4' at row 1
24203
INSERT INTO v1 SET f1 = 3, f4 = '<-- 10 -->', report = 'v1 3';
24205
Warning 1265 Data truncated for column 'f4' at row 1
24207
Field Type Null Key Default Extra
24208
f1 bigint(20) YES NULL
24210
f4 char(8) YES NULL
24211
report char(10) YES NULL
24213
Field Type Null Key Default Extra
24214
f1 bigint(20) YES NULL
24216
f4 char(8) YES NULL
24217
report char(10) YES NULL
24218
SELECT * FROM t1 order by f1, report;
24223
2 NULL <-- 10 - t1 2
24224
2 NULL <-- 10 - v1 2
24225
3 NULL <-- 10 - t1 3
24226
3 NULL <-- 10 - v1 3
24227
SELECT * FROM v1 order by f1, report;
24232
2 NULL <-- 10 - t1 2
24233
2 NULL <-- 10 - v1 2
24234
3 NULL <-- 10 - t1 3
24235
3 NULL <-- 10 - v1 3
24236
ALTER TABLE t1 CHANGE COLUMN f4 f4 VARCHAR(20);
24237
INSERT INTO t1 SET f1 = 4, f4 = '<------ 20 -------->', report = 't1 4';
24238
INSERT INTO v1 SET f1 = 4, f4 = '<------ 20 -------->', report = 'v1 4';
24240
Field Type Null Key Default Extra
24241
f1 bigint(20) YES NULL
24243
f4 varchar(20) YES NULL
24244
report char(10) YES NULL
24246
Field Type Null Key Default Extra
24247
f1 bigint(20) YES NULL
24249
f4 varchar(20) YES NULL
24250
report char(10) YES NULL
24251
SELECT * FROM t1 order by f1, report;
24256
2 NULL <-- 10 - t1 2
24257
2 NULL <-- 10 - v1 2
24258
3 NULL <-- 10 - t1 3
24259
3 NULL <-- 10 - v1 3
24260
4 NULL <------ 20 --------> t1 4
24261
4 NULL <------ 20 --------> v1 4
24262
SELECT * FROM v1 order by f1, report;
24267
2 NULL <-- 10 - t1 2
24268
2 NULL <-- 10 - v1 2
24269
3 NULL <-- 10 - t1 3
24270
3 NULL <-- 10 - v1 3
24271
4 NULL <------ 20 --------> t1 4
24272
4 NULL <------ 20 --------> v1 4
24273
ALTER TABLE t1 CHANGE COLUMN f1 f1 VARCHAR(30);
24274
INSERT INTO t1 SET f1 = '<------------- 30 ----------->',
24275
f4 = '<------ 20 -------->', report = 't1 5';
24276
INSERT INTO v1 SET f1 = '<------------- 30 ----------->',
24277
f4 = '<------ 20 -------->', report = 'v1 5';
24279
Field Type Null Key Default Extra
24280
f1 varchar(30) YES NULL
24282
f4 varchar(20) YES NULL
24283
report char(10) YES NULL
24285
Field Type Null Key Default Extra
24286
f1 varchar(30) YES NULL
24288
f4 varchar(20) YES NULL
24289
report char(10) YES NULL
24290
SELECT * FROM t1 order by f1, report;
24295
2 NULL <-- 10 - t1 2
24296
2 NULL <-- 10 - v1 2
24297
3 NULL <-- 10 - t1 3
24298
3 NULL <-- 10 - v1 3
24299
4 NULL <------ 20 --------> t1 4
24300
4 NULL <------ 20 --------> v1 4
24301
<------------- 30 -----------> NULL <------ 20 --------> t1 5
24302
<------------- 30 -----------> NULL <------ 20 --------> v1 5
24303
SELECT * FROM v1 order by f1, report;
24308
2 NULL <-- 10 - t1 2
24309
2 NULL <-- 10 - v1 2
24310
3 NULL <-- 10 - t1 3
24311
3 NULL <-- 10 - v1 3
24312
4 NULL <------ 20 --------> t1 4
24313
4 NULL <------ 20 --------> v1 4
24314
<------------- 30 -----------> NULL <------ 20 --------> t1 5
24315
<------------- 30 -----------> NULL <------ 20 --------> v1 5
24316
ALTER TABLE t1 DROP COLUMN f2;
24317
INSERT INTO t1 SET f1 = 'ABC', f4 = '<------ 20 -------->', report = 't1 6';
24318
INSERT INTO v1 SET f1 = 'ABC', f4 = '<------ 20 -------->', report = 'v1 6';
24319
ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
24321
Field Type Null Key Default Extra
24322
f1 varchar(30) YES NULL
24323
f4 varchar(20) YES NULL
24324
report char(10) YES NULL
24326
ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
24327
SELECT * FROM t1 order by f1, report;
24336
4 <------ 20 --------> t1 4
24337
4 <------ 20 --------> v1 4
24338
<------------- 30 -----------> <------ 20 --------> t1 5
24339
<------------- 30 -----------> <------ 20 --------> v1 5
24340
ABC <------ 20 --------> t1 6
24341
SELECT * FROM v1 order by f1, report;
24342
ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
24343
ALTER TABLE t1 ADD COLUMN f2 DATE DEFAULT NULL;
24344
INSERT INTO t1 SET f1 = 'ABC', f2 = '1500-12-04',
24345
f4 = '<------ 20 -------->', report = 't1 7';
24346
INSERT INTO v1 SET f1 = 'ABC', f2 = '1500-12-04',
24347
f4 = '<------ 20 -------->', report = 'v1 7';
24349
Field Type Null Key Default Extra
24350
f1 varchar(30) YES NULL
24351
f4 varchar(20) YES NULL
24352
report char(10) YES NULL
24355
Field Type Null Key Default Extra
24356
f1 varchar(30) YES NULL
24358
f4 varchar(20) YES NULL
24359
report char(10) YES NULL
24360
SELECT * FROM t1 order by f1, report;
24365
2 <-- 10 - t1 2 NULL
24366
2 <-- 10 - v1 2 NULL
24367
3 <-- 10 - t1 3 NULL
24368
3 <-- 10 - v1 3 NULL
24369
4 <------ 20 --------> t1 4 NULL
24370
4 <------ 20 --------> v1 4 NULL
24371
<------------- 30 -----------> <------ 20 --------> t1 5 NULL
24372
<------------- 30 -----------> <------ 20 --------> v1 5 NULL
24373
ABC <------ 20 --------> t1 6 NULL
24374
ABC <------ 20 --------> t1 7 1500-12-04
24375
ABC <------ 20 --------> v1 7 1500-12-04
24376
SELECT * FROM v1 order by f1, report;
24381
2 NULL <-- 10 - t1 2
24382
2 NULL <-- 10 - v1 2
24383
3 NULL <-- 10 - t1 3
24384
3 NULL <-- 10 - v1 3
24385
4 NULL <------ 20 --------> t1 4
24386
4 NULL <------ 20 --------> v1 4
24387
<------------- 30 -----------> NULL <------ 20 --------> t1 5
24388
<------------- 30 -----------> NULL <------ 20 --------> v1 5
24389
ABC NULL <------ 20 --------> t1 6
24390
ABC 1500-12-04 <------ 20 --------> t1 7
24391
ABC 1500-12-04 <------ 20 --------> v1 7
24392
ALTER TABLE t1 DROP COLUMN f2;
24393
ALTER TABLE t1 ADD COLUMN f2 FLOAT;
24394
INSERT INTO t1 SET f1 = 'ABC', f2 = -3.3E-4,
24395
f4 = '<------ 20 -------->', report = 't1 8';
24396
INSERT INTO v1 SET f1 = 'ABC', f2 = -3.3E-4,
24397
f4 = '<------ 20 -------->', report = 'v1 8';
24399
Field Type Null Key Default Extra
24400
f1 varchar(30) YES NULL
24401
f4 varchar(20) YES NULL
24402
report char(10) YES NULL
24405
Field Type Null Key Default Extra
24406
f1 varchar(30) YES NULL
24408
f4 varchar(20) YES NULL
24409
report char(10) YES NULL
24410
SELECT * FROM t1 order by f1, report;
24415
2 <-- 10 - t1 2 NULL
24416
2 <-- 10 - v1 2 NULL
24417
3 <-- 10 - t1 3 NULL
24418
3 <-- 10 - v1 3 NULL
24419
4 <------ 20 --------> t1 4 NULL
24420
4 <------ 20 --------> v1 4 NULL
24421
<------------- 30 -----------> <------ 20 --------> t1 5 NULL
24422
<------------- 30 -----------> <------ 20 --------> v1 5 NULL
24423
ABC <------ 20 --------> t1 6 NULL
24424
ABC <------ 20 --------> t1 7 NULL
24425
ABC <------ 20 --------> t1 8 -0.00033
24426
ABC <------ 20 --------> v1 7 NULL
24427
ABC <------ 20 --------> v1 8 -0.00033
24428
SELECT * FROM v1 order by f1, report;
24433
2 NULL <-- 10 - t1 2
24434
2 NULL <-- 10 - v1 2
24435
3 NULL <-- 10 - t1 3
24436
3 NULL <-- 10 - v1 3
24437
4 NULL <------ 20 --------> t1 4
24438
4 NULL <------ 20 --------> v1 4
24439
<------------- 30 -----------> NULL <------ 20 --------> t1 5
24440
<------------- 30 -----------> NULL <------ 20 --------> v1 5
24441
ABC NULL <------ 20 --------> t1 6
24442
ABC NULL <------ 20 --------> t1 7
24443
ABC -0.00033 <------ 20 --------> t1 8
24444
ABC NULL <------ 20 --------> v1 7
24445
ABC -0.00033 <------ 20 --------> v1 8
24446
ALTER TABLE t1 ADD COLUMN f3 NUMERIC(7,2);
24447
INSERT INTO t1 SET f1 = 'ABC', f2 = -3.3E-4,
24448
f3 = -2.2, f4 = '<------ 20 -------->', report = 't1 9';
24449
INSERT INTO v1 SET f1 = 'ABC', f2 = -3.3E-4,
24450
f3 = -2.2, f4 = '<------ 20 -------->', report = 'v1 9';
24451
ERROR 42S22: Unknown column 'f3' in 'field list'
24452
INSERT INTO v1 SET f1 = 'ABC', f2 = -3.3E-4,
24453
f4 = '<------ 20 -------->', report = 'v1 9a';
24455
Field Type Null Key Default Extra
24456
f1 varchar(30) YES NULL
24457
f4 varchar(20) YES NULL
24458
report char(10) YES NULL
24460
f3 decimal(7,2) YES NULL
24462
Field Type Null Key Default Extra
24463
f1 varchar(30) YES NULL
24465
f4 varchar(20) YES NULL
24466
report char(10) YES NULL
24467
SELECT * FROM t1 order by f1, report;
24469
-1 ABC t1 0 NULL NULL
24470
-1 ABC v1 0 NULL NULL
24471
0 ABC t1 1 NULL NULL
24472
2 <-- 10 - t1 2 NULL NULL
24473
2 <-- 10 - v1 2 NULL NULL
24474
3 <-- 10 - t1 3 NULL NULL
24475
3 <-- 10 - v1 3 NULL NULL
24476
4 <------ 20 --------> t1 4 NULL NULL
24477
4 <------ 20 --------> v1 4 NULL NULL
24478
<------------- 30 -----------> <------ 20 --------> t1 5 NULL NULL
24479
<------------- 30 -----------> <------ 20 --------> v1 5 NULL NULL
24480
ABC <------ 20 --------> t1 6 NULL NULL
24481
ABC <------ 20 --------> t1 7 NULL NULL
24482
ABC <------ 20 --------> t1 8 -0.00033 NULL
24483
ABC <------ 20 --------> t1 9 -0.00033 -2.20
24484
ABC <------ 20 --------> v1 7 NULL NULL
24485
ABC <------ 20 --------> v1 8 -0.00033 NULL
24486
ABC <------ 20 --------> v1 9a -0.00033 NULL
24487
SELECT * FROM v1 order by f1, report;
24492
2 NULL <-- 10 - t1 2
24493
2 NULL <-- 10 - v1 2
24494
3 NULL <-- 10 - t1 3
24495
3 NULL <-- 10 - v1 3
24496
4 NULL <------ 20 --------> t1 4
24497
4 NULL <------ 20 --------> v1 4
24498
<------------- 30 -----------> NULL <------ 20 --------> t1 5
24499
<------------- 30 -----------> NULL <------ 20 --------> v1 5
24500
ABC NULL <------ 20 --------> t1 6
24501
ABC NULL <------ 20 --------> t1 7
24502
ABC -0.00033 <------ 20 --------> t1 8
24503
ABC -0.00033 <------ 20 --------> t1 9
24504
ABC NULL <------ 20 --------> v1 7
24505
ABC -0.00033 <------ 20 --------> v1 8
24506
ABC -0.00033 <------ 20 --------> v1 9a
24509
CREATE TABLE t1 (f1 CHAR(10), f2 BIGINT) ENGINE = myisam;
24510
INSERT INTO t1 SET f1 = 'ABC', f2 = 3;
24511
CREATE VIEW v1 AS SELECT f1, SQRT(f2) my_sqrt FROM t1;
24513
Field Type Null Key Default Extra
24514
f1 char(10) YES NULL
24515
f2 bigint(20) YES NULL
24517
Field Type Null Key Default Extra
24518
f1 char(10) YES NULL
24519
my_sqrt double YES NULL
24520
SELECT * FROM t1 order by f1, f2;
24523
SELECT * FROM v1 order by 2;
24525
ABC 1.7320508075688772
24526
ALTER TABLE t1 CHANGE COLUMN f2 f2 VARCHAR(30);
24527
INSERT INTO t1 SET f1 = 'ABC', f2 = 'DEF';
24529
Field Type Null Key Default Extra
24530
f1 char(10) YES NULL
24531
f2 varchar(30) YES NULL
24533
Field Type Null Key Default Extra
24534
f1 char(10) YES NULL
24535
my_sqrt double YES NULL
24536
SELECT * FROM t1 order by f1, f2;
24540
SELECT * FROM v1 order by 2;
24543
ABC 1.7320508075688772
24544
SELECT SQRT('DEF');
24548
Warning 1292 Truncated incorrect DOUBLE value: 'DEF'
24549
CREATE VIEW v2 AS SELECT SQRT('DEF');
24550
SELECT * FROM v2 order by 1;
24554
Warning 1292 Truncated incorrect DOUBLE value: 'DEF'
24555
CREATE OR REPLACE VIEW v2 AS SELECT f1, SQRT(f2) my_sqrt FROM t1;
24557
Field Type Null Key Default Extra
24558
f1 char(10) YES NULL
24559
my_sqrt double YES NULL
24560
SELECT * FROM v2 order by 2;
24563
ABC 1.7320508075688772
24564
CREATE TABLE t2 AS SELECT f1, SQRT(f2) my_sqrt FROM t1;
24565
SELECT * FROM t2 order by 2;
24569
my_sqrt 1.7320508075688772
24571
CREATE TABLE t2 AS SELECT * FROM v1;
24572
SELECT * FROM t2 order by 2;
24576
my_sqrt 1.7320508075688772
24578
CREATE TABLE t2 AS SELECT * FROM v2;
24579
SELECT * FROM t2 order by 2;
24583
my_sqrt 1.7320508075688772
24588
DROP TABLE IF EXISTS t1;
24589
DROP TABLE IF EXISTS t2;
24590
DROP VIEW IF EXISTS v1;
24591
DROP VIEW IF EXISTS v1_1;
24592
DROP VIEW IF EXISTS v1_2;
24593
DROP VIEW IF EXISTS v1_firstview;
24594
DROP VIEW IF EXISTS v1_secondview;
24595
DROP VIEW IF EXISTS v2;
24596
DROP DATABASE IF EXISTS test2;
24597
DROP DATABASE IF EXISTS test3;
24598
DROP DATABASE test1;
24599
DROP TABLE test.tb2;