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"
56
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb2.txt' into table tb2 ;
57
DROP DATABASE IF EXISTS test1;
58
CREATE DATABASE test1;
60
drop table if exists tb2 ;
62
f59 numeric (0) unsigned,
63
f60 numeric (64) unsigned,
64
f61 numeric (0) zerofill,
65
f62 numeric (64) zerofill,
66
f63 numeric (0) unsigned zerofill,
67
f64 numeric (64) unsigned zerofill,
70
f67 numeric (0,0) unsigned,
71
f68 numeric (63,30) unsigned,
72
f69 numeric (0,0) zerofill,
73
f70 numeric (63,30) zerofill,
74
f71 numeric (0,0) unsigned zerofill,
75
f72 numeric (63,30) unsigned zerofill,
79
f76 real unsigned zerofill,
80
f77 double default 7.7,
81
f78 double unsigned default 7.7,
82
f79 double zerofill default 7.7,
83
f80 double unsigned zerofill default 8.8,
84
f81 float not null default 8.8,
85
f82 float unsigned not null default 8.8,
86
f83 float zerofill not null default 8.8,
87
f84 float unsigned zerofill not null default 8.8,
88
f85 float(0) not null default 8.8,
89
f86 float(23) not null default 8.8,
90
f87 float(0) unsigned not null default 8.8,
91
f88 float(23) unsigned not null default 8.8,
92
f89 float(0) zerofill not null default 8.8,
93
f90 float(23) zerofill not null default 8.8,
94
f91 float(0) unsigned zerofill not null default 8.8,
95
f92 float(23) unsigned zerofill not null default 8.8,
96
f93 float(24) not null default 8.8,
97
f94 float(53) not null default 8.8,
98
f95 float(24) unsigned not null default 8.8,
99
f96 float(53) unsigned not null default 8.8,
100
f97 float(24) zerofill not null default 8.8,
101
f98 float(53) zerofill not null default 8.8,
102
f99 float(24) unsigned zerofill not null default 8.8,
103
f100 float(53) unsigned zerofill not null default 8.8,
104
f101 date not null default '2000-01-01',
105
f102 time not null default 20,
106
f103 datetime not null default '2/2/2',
107
f104 timestamp not null default 20001231235959,
108
f105 year not null default 2000,
109
f106 year(3) not null default 2000,
110
f107 year(4) not null default 2000,
111
f108 enum("1enum","2enum") not null default "1enum",
112
f109 set("1set","2set") not null default "1set"
114
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb2.txt' into table tb2 ;
117
! Attention: The file with the expected results is not
118
| thoroughly checked.
119
! The server return codes are correct, but
120
| most result sets where the table tb2 is
121
! involved are not checked.
122
--------------------------------------------------------------------------------
124
There are some statements where the ps-protocol is switched off.
125
Bug#32285: mysqltest, --ps-protocol, strange output, float/double/real with zerofill
126
--------------------------------------------------------------------------------
127
insert into test.tb2 (f59,f60) values (76710,226546);
128
insert into test.tb2 (f59,f60) values(2760,985654);
129
insert into test.tb2 (f59,f60) values(569300,9114376);
130
insert into test.tb2 (f59,f60) values(660,876546);
131
insert into test.tb2 (f59,f60) values(250,87895654);
132
insert into test.tb2 (f59,f60) values(340,9984376);
133
insert into test.tb2 (f59,f60) values(3410,996546);
134
insert into test.tb2 (f59,f60) values(2550,775654);
135
insert into test.tb2 (f59,f60) values(3330,764376);
136
insert into test.tb2 (f59,f60) values(441,16546);
137
insert into test.tb2 (f59,f60) values(24,51654);
138
insert into test.tb2 (f59,f60) values(323,14376);
139
insert into test.tb2 (f59,f60) values(34,41);
140
insert into test.tb2 (f59,f60) values(04,74);
141
insert into test.tb2 (f59,f60) values(15,87);
142
insert into test.tb2 (f59,f60) values(22,93);
143
insert into test.tb2 (f59,f60) values(394,41);
144
insert into test.tb2 (f59,f60) values(094,74);
145
insert into test.tb2 (f59,f60) values(195,87);
146
insert into test.tb2 (f59,f60) values(292,93);
147
insert into test.tb2 (f59,f60) values(0987,41) ;
148
insert into test.tb2 (f59,f60) values(7876,74) ;
149
INSERT INTO tb2 (f59,f61) VALUES(321,765 );
150
INSERT INTO tb2 (f59,f61) VALUES(9112,8771);
151
INSERT INTO tb2 (f59,f61) VALUES (500,900 ) ;
152
INSERT INTO tb2 (f59,f61) VALUES (500,900 ) ;
153
INSERT INTO tb2 (f59,f61) VALUES (500,900 ) ;
154
Insert into tb2 (f59,f60,f61) values (107,105,106) ;
155
Insert into tb2 (f59,f60,f61) values (109,108,104) ;
156
Insert into tb2 (f59,f60,f61) values (207,205,206) ;
157
Insert into tb2 (f59,f60,f61) values (209,208,204) ;
158
Insert into tb2 (f59,f60,f61) values (27,25,26) ;
159
Insert into tb2 (f59,f60,f61) values (29,28,24) ;
160
Insert into tb2 (f59,f60,f61) values (17,15,16) ;
161
Insert into tb2 (f59,f60,f61) values (19,18,14) ;
162
insert into tb2 (f59,f60,f61) values (107,105,106);
163
insert into tb2 (f59,f60,f61) values (109,108,104);
164
INSERT INTO tb2 (f59,f60) VALUES( 299,899 );
165
INSERT INTO tb2 (f59,f60) VALUES( 242,79 );
166
INSERT INTO tb2 (f59,f60) VALUES( 424,89 );
167
SELECT * FROM tb2 ORDER BY f59, f60, f61;
168
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
169
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
170
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
171
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
172
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
173
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
174
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
175
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
176
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
177
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
178
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
179
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
180
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
181
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
182
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
183
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
184
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
185
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
186
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
187
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
188
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
189
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
190
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
191
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
192
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
193
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
194
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
195
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
196
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
197
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
198
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
199
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
200
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
201
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
202
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
203
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
204
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
205
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
206
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
207
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
208
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
209
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
210
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
211
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
212
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
213
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
214
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
215
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
216
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
217
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
218
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
222
--------------------------------------------------------------------------------
223
Drop table if exists t1;
224
Create table t1 (f59 INT, f60 INT) ;
225
Insert into t1 values (100,4234);
226
Insert into t1 values (990,6624);
227
Insert into t1 values (710,765);
228
Insert into t1 values (300,433334);
229
Insert into t1 values (800,9788);
230
Insert into t1 values (500,9866);
231
Drop view if exists v1 ;
232
CREATE VIEW v1 AS select f59,f60,f61
233
FROM test.tb2 where f59=250;
234
select * FROM v1 order by f60,f61 limit 0,10;
237
Drop view if exists v1 ;
238
CREATE VIEW v1 AS select f59,f60,f61
239
FROM test.tb2 limit 100;
240
select * FROM v1 order by f59,f60,f61 limit 0,10;
252
CREATE or REPLACE VIEW v1 AS select f59,f60,f61
254
select * FROM v1 order by f59,f60,f61 limit 4,3;
259
CREATE or REPLACE VIEW v1 AS select distinct f59
261
select * FROM v1 order by f59 limit 4,3;
266
ALTER VIEW v1 AS select f59
268
select * FROM v1 order by f59 limit 6,2;
272
CREATE or REPLACE VIEW v1 AS select f59
273
from tb2 order by f59;
274
select * FROM v1 order by f59 limit 0,10;
286
CREATE or REPLACE VIEW v1 AS select f59
287
from tb2 order by f59 asc;
288
select * FROM v1 limit 0,10;
300
CREATE or REPLACE VIEW v1 AS select f59
301
from tb2 order by f59 desc;
302
select * FROM v1 limit 0,10;
314
CREATE or REPLACE VIEW v1 AS select f59
315
from tb2 group by f59;
316
select * FROM v1 order by f59 limit 0,10;
328
CREATE or REPLACE VIEW v1 AS select f59
329
from tb2 group by f59 asc;
330
select * FROM v1 order by f59 limit 0,10;
342
CREATE or REPLACE VIEW v1 AS select f59
343
from tb2 group by f59 desc;
344
select * FROM v1 order by f59 limit 0,10;
356
CREATE or REPLACE VIEW v1 AS (select f59 from tb2)
357
union (select f59 from t1);
358
select * FROM v1 order by f59 limit 0,10;
370
CREATE or REPLACE VIEW v1 AS (select f59 FROM tb2)
371
UNION DISTINCT(select f59 FROM t1) ;
372
select * FROM v1 order by f59 limit 0,10;
384
CREATE or REPLACE VIEW v1 AS (select f59 FROM tb2)
385
UNION ALL(select f59 FROM t1) ;
386
select * FROM v1 order by f59 limit 0,10;
398
CREATE or REPLACE VIEW v1 AS select *
399
FROM test.tb2 WITH LOCAL CHECK OPTION ;
400
select * FROM v1 order by f59,f60,f61,f62,f63,f64 limit 0,50;
404
f62 0000000000000000000000000000000000000000000000000000000000000001
406
f64 0000000000000000000000000000000000000000000000000000000000000001
408
f66 0.000000000000000000000000000000
410
f68 0.000000000000000000000000000000
412
f70 000000000000000000000000000000000.000000000000000000000000000000
414
f72 000000000000000000000000000000000.000000000000000000000000000000
417
f75 00000001.175494352e-38
418
f76 00000001.175494352e-38
421
f79 00000001.175494352e-38
422
f80 00000001.175494352e-38
440
f98 00000001.175494352e-38
442
f100 00000001.175494352e-38
445
f103 1970-01-02 00:00:01
446
f104 1970-01-02 00:00:01
455
f62 0000000000000000000000000000000000000000000000000000000000000002
457
f64 0000000000000000000000000000000000000000000000000000000000000002
459
f66 1.100000000000000000000000000000
461
f68 1.100000000000000000000000000000
463
f70 000000000000000000000000000000001.100000000000000000000000000000
465
f72 000000000000000000000000000000001.100000000000000000000000000000
468
f75 00000001.175494353e-38
469
f76 00000001.175494353e-38
472
f79 00000001.175494353e-38
473
f80 00000001.175494353e-38
491
f98 00000001.175494353e-38
493
f100 00000001.175494353e-38
496
f103 1970-01-03 00:00:02
497
f104 1970-01-03 00:00:02
506
f62 0000000000000000000000000000000000000000000000000000000000000003
508
f64 0000000000000000000000000000000000000000000000000000000000000003
510
f66 2.200000000000000000000000000000
512
f68 2.200000000000000000000000000000
514
f70 000000000000000000000000000000002.200000000000000000000000000000
516
f72 000000000000000000000000000000002.200000000000000000000000000000
519
f75 00000001.175494354e-38
520
f76 00000001.175494354e-38
523
f79 00000001.175494354e-38
524
f80 00000001.175494354e-38
542
f98 00000001.175494354e-38
544
f100 00000001.175494354e-38
547
f103 1970-01-04 00:00:03
548
f104 1970-01-04 00:00:03
557
f62 0000000000000000000000000000000000000000000000000000000000000004
559
f64 0000000000000000000000000000000000000000000000000000000000000004
561
f66 3.300000000000000000000000000000
563
f68 3.300000000000000000000000000000
565
f70 000000000000000000000000000000003.300000000000000000000000000000
567
f72 000000000000000000000000000000003.300000000000000000000000000000
570
f75 00000001.175494355e-38
571
f76 00000001.175494355e-38
574
f79 00000001.175494355e-38
575
f80 00000001.175494355e-38
593
f98 00000001.175494355e-38
595
f100 00000001.175494355e-38
598
f103 1970-01-05 00:00:04
599
f104 1970-01-05 00:00:04
625
f79 00000000000000000007.7
626
f80 00000000000000000008.8
644
f98 00000000000000000008.8
646
f100 00000000000000000008.8
649
f103 0002-02-02 00:00:00
650
f104 2000-12-31 23:59:59
659
f62 0000000000000000000000000000000000000000000000000000000000000005
661
f64 0000000000000000000000000000000000000000000000000000000000000005
663
f66 4.400000000000000000000000000000
665
f68 4.400000000000000000000000000000
667
f70 000000000000000000000000000000004.400000000000000000000000000000
669
f72 000000000000000000000000000000004.400000000000000000000000000000
672
f75 00000001.175494356e-38
673
f76 00000001.175494356e-38
676
f79 00000001.175494356e-38
677
f80 00000001.175494356e-38
695
f98 00000001.175494356e-38
697
f100 00000001.175494356e-38
700
f103 1970-01-06 00:00:05
701
f104 1970-01-06 00:00:05
710
f62 0000000000000000000000000000000000000000000000000000000000000006
712
f64 0000000000000000000000000000000000000000000000000000000000000006
714
f66 5.500000000000000000000000000000
716
f68 5.500000000000000000000000000000
718
f70 000000000000000000000000000000005.500000000000000000000000000000
720
f72 000000000000000000000000000000005.500000000000000000000000000000
723
f75 00000001.175494357e-38
724
f76 00000001.175494357e-38
727
f79 00000001.175494357e-38
728
f80 00000001.175494357e-38
746
f98 00000001.175494357e-38
748
f100 00000001.175494357e-38
751
f103 1970-01-07 00:00:06
752
f104 1970-01-07 00:00:06
761
f62 0000000000000000000000000000000000000000000000000000000000000007
763
f64 0000000000000000000000000000000000000000000000000000000000000007
765
f66 6.600000000000000000000000000000
767
f68 6.600000000000000000000000000000
769
f70 000000000000000000000000000000006.600000000000000000000000000000
771
f72 000000000000000000000000000000006.600000000000000000000000000000
774
f75 00000001.175494358e-38
775
f76 00000001.175494358e-38
778
f79 00000001.175494358e-38
779
f80 00000001.175494358e-38
797
f98 00000001.175494358e-38
799
f100 00000001.175494358e-38
802
f103 1970-01-08 00:00:07
803
f104 1970-01-08 00:00:07
812
f62 0000000000000000000000000000000000000000000000000000000000000008
814
f64 0000000000000000000000000000000000000000000000000000000000000008
816
f66 7.700000000000000000000000000000
818
f68 7.700000000000000000000000000000
820
f70 000000000000000000000000000000007.700000000000000000000000000000
822
f72 000000000000000000000000000000007.700000000000000000000000000000
825
f75 00000001.175494359e-38
826
f76 00000001.175494359e-38
829
f79 00000001.175494359e-38
830
f80 00000001.175494359e-38
848
f98 00000001.175494359e-38
850
f100 00000001.175494359e-38
853
f103 1970-01-09 00:00:08
854
f104 1970-01-09 00:00:08
863
f62 0000000000000000000000000000000000000000000000000000000000000009
865
f64 0000000000000000000000000000000000000000000000000000000000000009
867
f66 8.800000000000000000000000000000
869
f68 8.800000000000000000000000000000
871
f70 000000000000000000000000000000008.800000000000000000000000000000
873
f72 000000000000000000000000000000008.800000000000000000000000000000
876
f75 000000001.17549436e-38
877
f76 000000001.17549436e-38
880
f79 000000001.17549436e-38
881
f80 000000001.17549436e-38
899
f98 000000001.17549436e-38
901
f100 000000001.17549436e-38
904
f103 1970-01-10 00:00:09
905
f104 1970-01-10 00:00:09
914
f62 0000000000000000000000000000000000000000000000000000000000000010
916
f64 0000000000000000000000000000000000000000000000000000000000000010
918
f66 9.900000000000000000000000000000
920
f68 9.900000000000000000000000000000
922
f70 000000000000000000000000000000009.900000000000000000000000000000
924
f72 000000000000000000000000000000009.900000000000000000000000000000
927
f75 00000001.175494361e-38
928
f76 00000001.175494361e-38
931
f79 00000001.175494361e-38
932
f80 00000001.175494361e-38
950
f98 00000001.175494361e-38
952
f100 00000001.175494361e-38
955
f103 1970-01-11 00:00:10
956
f104 1970-01-11 00:00:10
982
f79 00000000000000000007.7
983
f80 00000000000000000008.8
1001
f98 00000000000000000008.8
1003
f100 00000000000000000008.8
1006
f103 0002-02-02 00:00:00
1007
f104 2000-12-31 23:59:59
1033
f79 00000000000000000007.7
1034
f80 00000000000000000008.8
1052
f98 00000000000000000008.8
1054
f100 00000000000000000008.8
1057
f103 0002-02-02 00:00:00
1058
f104 2000-12-31 23:59:59
1084
f79 00000000000000000007.7
1085
f80 00000000000000000008.8
1103
f98 00000000000000000008.8
1105
f100 00000000000000000008.8
1108
f103 0002-02-02 00:00:00
1109
f104 2000-12-31 23:59:59
1135
f79 00000000000000000007.7
1136
f80 00000000000000000008.8
1154
f98 00000000000000000008.8
1156
f100 00000000000000000008.8
1159
f103 0002-02-02 00:00:00
1160
f104 2000-12-31 23:59:59
1186
f79 00000000000000000007.7
1187
f80 00000000000000000008.8
1205
f98 00000000000000000008.8
1207
f100 00000000000000000008.8
1210
f103 0002-02-02 00:00:00
1211
f104 2000-12-31 23:59:59
1237
f79 00000000000000000007.7
1238
f80 00000000000000000008.8
1256
f98 00000000000000000008.8
1258
f100 00000000000000000008.8
1261
f103 0002-02-02 00:00:00
1262
f104 2000-12-31 23:59:59
1288
f79 00000000000000000007.7
1289
f80 00000000000000000008.8
1307
f98 00000000000000000008.8
1309
f100 00000000000000000008.8
1312
f103 0002-02-02 00:00:00
1313
f104 2000-12-31 23:59:59
1339
f79 00000000000000000007.7
1340
f80 00000000000000000008.8
1358
f98 00000000000000000008.8
1360
f100 00000000000000000008.8
1363
f103 0002-02-02 00:00:00
1364
f104 2000-12-31 23:59:59
1390
f79 00000000000000000007.7
1391
f80 00000000000000000008.8
1409
f98 00000000000000000008.8
1411
f100 00000000000000000008.8
1414
f103 0002-02-02 00:00:00
1415
f104 2000-12-31 23:59:59
1441
f79 00000000000000000007.7
1442
f80 00000000000000000008.8
1460
f98 00000000000000000008.8
1462
f100 00000000000000000008.8
1465
f103 0002-02-02 00:00:00
1466
f104 2000-12-31 23:59:59
1492
f79 00000000000000000007.7
1493
f80 00000000000000000008.8
1511
f98 00000000000000000008.8
1513
f100 00000000000000000008.8
1516
f103 0002-02-02 00:00:00
1517
f104 2000-12-31 23:59:59
1543
f79 00000000000000000007.7
1544
f80 00000000000000000008.8
1562
f98 00000000000000000008.8
1564
f100 00000000000000000008.8
1567
f103 0002-02-02 00:00:00
1568
f104 2000-12-31 23:59:59
1594
f79 00000000000000000007.7
1595
f80 00000000000000000008.8
1613
f98 00000000000000000008.8
1615
f100 00000000000000000008.8
1618
f103 0002-02-02 00:00:00
1619
f104 2000-12-31 23:59:59
1645
f79 00000000000000000007.7
1646
f80 00000000000000000008.8
1664
f98 00000000000000000008.8
1666
f100 00000000000000000008.8
1669
f103 0002-02-02 00:00:00
1670
f104 2000-12-31 23:59:59
1696
f79 00000000000000000007.7
1697
f80 00000000000000000008.8
1715
f98 00000000000000000008.8
1717
f100 00000000000000000008.8
1720
f103 0002-02-02 00:00:00
1721
f104 2000-12-31 23:59:59
1747
f79 00000000000000000007.7
1748
f80 00000000000000000008.8
1766
f98 00000000000000000008.8
1768
f100 00000000000000000008.8
1771
f103 0002-02-02 00:00:00
1772
f104 2000-12-31 23:59:59
1798
f79 00000000000000000007.7
1799
f80 00000000000000000008.8
1817
f98 00000000000000000008.8
1819
f100 00000000000000000008.8
1822
f103 0002-02-02 00:00:00
1823
f104 2000-12-31 23:59:59
1849
f79 00000000000000000007.7
1850
f80 00000000000000000008.8
1868
f98 00000000000000000008.8
1870
f100 00000000000000000008.8
1873
f103 0002-02-02 00:00:00
1874
f104 2000-12-31 23:59:59
1900
f79 00000000000000000007.7
1901
f80 00000000000000000008.8
1919
f98 00000000000000000008.8
1921
f100 00000000000000000008.8
1924
f103 0002-02-02 00:00:00
1925
f104 2000-12-31 23:59:59
1951
f79 00000000000000000007.7
1952
f80 00000000000000000008.8
1970
f98 00000000000000000008.8
1972
f100 00000000000000000008.8
1975
f103 0002-02-02 00:00:00
1976
f104 2000-12-31 23:59:59
2002
f79 00000000000000000007.7
2003
f80 00000000000000000008.8
2021
f98 00000000000000000008.8
2023
f100 00000000000000000008.8
2026
f103 0002-02-02 00:00:00
2027
f104 2000-12-31 23:59:59
2053
f79 00000000000000000007.7
2054
f80 00000000000000000008.8
2072
f98 00000000000000000008.8
2074
f100 00000000000000000008.8
2077
f103 0002-02-02 00:00:00
2078
f104 2000-12-31 23:59:59
2104
f79 00000000000000000007.7
2105
f80 00000000000000000008.8
2123
f98 00000000000000000008.8
2125
f100 00000000000000000008.8
2128
f103 0002-02-02 00:00:00
2129
f104 2000-12-31 23:59:59
2155
f79 00000000000000000007.7
2156
f80 00000000000000000008.8
2174
f98 00000000000000000008.8
2176
f100 00000000000000000008.8
2179
f103 0002-02-02 00:00:00
2180
f104 2000-12-31 23:59:59
2206
f79 00000000000000000007.7
2207
f80 00000000000000000008.8
2225
f98 00000000000000000008.8
2227
f100 00000000000000000008.8
2230
f103 0002-02-02 00:00:00
2231
f104 2000-12-31 23:59:59
2257
f79 00000000000000000007.7
2258
f80 00000000000000000008.8
2276
f98 00000000000000000008.8
2278
f100 00000000000000000008.8
2281
f103 0002-02-02 00:00:00
2282
f104 2000-12-31 23:59:59
2308
f79 00000000000000000007.7
2309
f80 00000000000000000008.8
2327
f98 00000000000000000008.8
2329
f100 00000000000000000008.8
2332
f103 0002-02-02 00:00:00
2333
f104 2000-12-31 23:59:59
2359
f79 00000000000000000007.7
2360
f80 00000000000000000008.8
2378
f98 00000000000000000008.8
2380
f100 00000000000000000008.8
2383
f103 0002-02-02 00:00:00
2384
f104 2000-12-31 23:59:59
2410
f79 00000000000000000007.7
2411
f80 00000000000000000008.8
2429
f98 00000000000000000008.8
2431
f100 00000000000000000008.8
2434
f103 0002-02-02 00:00:00
2435
f104 2000-12-31 23:59:59
2461
f79 00000000000000000007.7
2462
f80 00000000000000000008.8
2480
f98 00000000000000000008.8
2482
f100 00000000000000000008.8
2485
f103 0002-02-02 00:00:00
2486
f104 2000-12-31 23:59:59
2512
f79 00000000000000000007.7
2513
f80 00000000000000000008.8
2531
f98 00000000000000000008.8
2533
f100 00000000000000000008.8
2536
f103 0002-02-02 00:00:00
2537
f104 2000-12-31 23:59:59
2563
f79 00000000000000000007.7
2564
f80 00000000000000000008.8
2582
f98 00000000000000000008.8
2584
f100 00000000000000000008.8
2587
f103 0002-02-02 00:00:00
2588
f104 2000-12-31 23:59:59
2614
f79 00000000000000000007.7
2615
f80 00000000000000000008.8
2633
f98 00000000000000000008.8
2635
f100 00000000000000000008.8
2638
f103 0002-02-02 00:00:00
2639
f104 2000-12-31 23:59:59
2665
f79 00000000000000000007.7
2666
f80 00000000000000000008.8
2684
f98 00000000000000000008.8
2686
f100 00000000000000000008.8
2689
f103 0002-02-02 00:00:00
2690
f104 2000-12-31 23:59:59
2716
f79 00000000000000000007.7
2717
f80 00000000000000000008.8
2735
f98 00000000000000000008.8
2737
f100 00000000000000000008.8
2740
f103 0002-02-02 00:00:00
2741
f104 2000-12-31 23:59:59
2767
f79 00000000000000000007.7
2768
f80 00000000000000000008.8
2786
f98 00000000000000000008.8
2788
f100 00000000000000000008.8
2791
f103 0002-02-02 00:00:00
2792
f104 2000-12-31 23:59:59
2818
f79 00000000000000000007.7
2819
f80 00000000000000000008.8
2837
f98 00000000000000000008.8
2839
f100 00000000000000000008.8
2842
f103 0002-02-02 00:00:00
2843
f104 2000-12-31 23:59:59
2869
f79 00000000000000000007.7
2870
f80 00000000000000000008.8
2888
f98 00000000000000000008.8
2890
f100 00000000000000000008.8
2893
f103 0002-02-02 00:00:00
2894
f104 2000-12-31 23:59:59
2920
f79 00000000000000000007.7
2921
f80 00000000000000000008.8
2939
f98 00000000000000000008.8
2941
f100 00000000000000000008.8
2944
f103 0002-02-02 00:00:00
2945
f104 2000-12-31 23:59:59
2951
CREATE or REPLACE VIEW v1 AS select *
2952
FROM test.tb2 WITH CASCADED CHECK OPTION ;
2953
select * FROM v1 order by f59,f60,f61,f62,f63,f64 limit 0,10;
2957
f62 0000000000000000000000000000000000000000000000000000000000000001
2959
f64 0000000000000000000000000000000000000000000000000000000000000001
2961
f66 0.000000000000000000000000000000
2963
f68 0.000000000000000000000000000000
2965
f70 000000000000000000000000000000000.000000000000000000000000000000
2967
f72 000000000000000000000000000000000.000000000000000000000000000000
2970
f75 00000001.175494352e-38
2971
f76 00000001.175494352e-38
2974
f79 00000001.175494352e-38
2975
f80 00000001.175494352e-38
2993
f98 00000001.175494352e-38
2995
f100 00000001.175494352e-38
2998
f103 1970-01-02 00:00:01
2999
f104 1970-01-02 00:00:01
3008
f62 0000000000000000000000000000000000000000000000000000000000000002
3010
f64 0000000000000000000000000000000000000000000000000000000000000002
3012
f66 1.100000000000000000000000000000
3014
f68 1.100000000000000000000000000000
3016
f70 000000000000000000000000000000001.100000000000000000000000000000
3018
f72 000000000000000000000000000000001.100000000000000000000000000000
3019
f73 -1.175494349e-38
3021
f75 00000001.175494353e-38
3022
f76 00000001.175494353e-38
3023
f77 -1.175494349e-38
3025
f79 00000001.175494353e-38
3026
f80 00000001.175494353e-38
3040
f94 -1.175494349e-38
3044
f98 00000001.175494353e-38
3046
f100 00000001.175494353e-38
3049
f103 1970-01-03 00:00:02
3050
f104 1970-01-03 00:00:02
3059
f62 0000000000000000000000000000000000000000000000000000000000000003
3061
f64 0000000000000000000000000000000000000000000000000000000000000003
3063
f66 2.200000000000000000000000000000
3065
f68 2.200000000000000000000000000000
3067
f70 000000000000000000000000000000002.200000000000000000000000000000
3069
f72 000000000000000000000000000000002.200000000000000000000000000000
3070
f73 -1.175494348e-38
3072
f75 00000001.175494354e-38
3073
f76 00000001.175494354e-38
3074
f77 -1.175494348e-38
3076
f79 00000001.175494354e-38
3077
f80 00000001.175494354e-38
3091
f94 -1.175494348e-38
3095
f98 00000001.175494354e-38
3097
f100 00000001.175494354e-38
3100
f103 1970-01-04 00:00:03
3101
f104 1970-01-04 00:00:03
3110
f62 0000000000000000000000000000000000000000000000000000000000000004
3112
f64 0000000000000000000000000000000000000000000000000000000000000004
3114
f66 3.300000000000000000000000000000
3116
f68 3.300000000000000000000000000000
3118
f70 000000000000000000000000000000003.300000000000000000000000000000
3120
f72 000000000000000000000000000000003.300000000000000000000000000000
3121
f73 -1.175494347e-38
3123
f75 00000001.175494355e-38
3124
f76 00000001.175494355e-38
3125
f77 -1.175494347e-38
3127
f79 00000001.175494355e-38
3128
f80 00000001.175494355e-38
3142
f94 -1.175494347e-38
3146
f98 00000001.175494355e-38
3148
f100 00000001.175494355e-38
3151
f103 1970-01-05 00:00:04
3152
f104 1970-01-05 00:00:04
3178
f79 00000000000000000007.7
3179
f80 00000000000000000008.8
3197
f98 00000000000000000008.8
3199
f100 00000000000000000008.8
3202
f103 0002-02-02 00:00:00
3203
f104 2000-12-31 23:59:59
3212
f62 0000000000000000000000000000000000000000000000000000000000000005
3214
f64 0000000000000000000000000000000000000000000000000000000000000005
3216
f66 4.400000000000000000000000000000
3218
f68 4.400000000000000000000000000000
3220
f70 000000000000000000000000000000004.400000000000000000000000000000
3222
f72 000000000000000000000000000000004.400000000000000000000000000000
3223
f73 -1.175494346e-38
3225
f75 00000001.175494356e-38
3226
f76 00000001.175494356e-38
3227
f77 -1.175494346e-38
3229
f79 00000001.175494356e-38
3230
f80 00000001.175494356e-38
3244
f94 -1.175494346e-38
3248
f98 00000001.175494356e-38
3250
f100 00000001.175494356e-38
3253
f103 1970-01-06 00:00:05
3254
f104 1970-01-06 00:00:05
3263
f62 0000000000000000000000000000000000000000000000000000000000000006
3265
f64 0000000000000000000000000000000000000000000000000000000000000006
3267
f66 5.500000000000000000000000000000
3269
f68 5.500000000000000000000000000000
3271
f70 000000000000000000000000000000005.500000000000000000000000000000
3273
f72 000000000000000000000000000000005.500000000000000000000000000000
3274
f73 -1.175494345e-38
3276
f75 00000001.175494357e-38
3277
f76 00000001.175494357e-38
3278
f77 -1.175494345e-38
3280
f79 00000001.175494357e-38
3281
f80 00000001.175494357e-38
3295
f94 -1.175494345e-38
3299
f98 00000001.175494357e-38
3301
f100 00000001.175494357e-38
3304
f103 1970-01-07 00:00:06
3305
f104 1970-01-07 00:00:06
3314
f62 0000000000000000000000000000000000000000000000000000000000000007
3316
f64 0000000000000000000000000000000000000000000000000000000000000007
3318
f66 6.600000000000000000000000000000
3320
f68 6.600000000000000000000000000000
3322
f70 000000000000000000000000000000006.600000000000000000000000000000
3324
f72 000000000000000000000000000000006.600000000000000000000000000000
3325
f73 -1.175494344e-38
3327
f75 00000001.175494358e-38
3328
f76 00000001.175494358e-38
3329
f77 -1.175494344e-38
3331
f79 00000001.175494358e-38
3332
f80 00000001.175494358e-38
3346
f94 -1.175494344e-38
3350
f98 00000001.175494358e-38
3352
f100 00000001.175494358e-38
3355
f103 1970-01-08 00:00:07
3356
f104 1970-01-08 00:00:07
3365
f62 0000000000000000000000000000000000000000000000000000000000000008
3367
f64 0000000000000000000000000000000000000000000000000000000000000008
3369
f66 7.700000000000000000000000000000
3371
f68 7.700000000000000000000000000000
3373
f70 000000000000000000000000000000007.700000000000000000000000000000
3375
f72 000000000000000000000000000000007.700000000000000000000000000000
3376
f73 -1.175494343e-38
3378
f75 00000001.175494359e-38
3379
f76 00000001.175494359e-38
3380
f77 -1.175494343e-38
3382
f79 00000001.175494359e-38
3383
f80 00000001.175494359e-38
3397
f94 -1.175494343e-38
3401
f98 00000001.175494359e-38
3403
f100 00000001.175494359e-38
3406
f103 1970-01-09 00:00:08
3407
f104 1970-01-09 00:00:08
3416
f62 0000000000000000000000000000000000000000000000000000000000000009
3418
f64 0000000000000000000000000000000000000000000000000000000000000009
3420
f66 8.800000000000000000000000000000
3422
f68 8.800000000000000000000000000000
3424
f70 000000000000000000000000000000008.800000000000000000000000000000
3426
f72 000000000000000000000000000000008.800000000000000000000000000000
3427
f73 -1.175494342e-38
3429
f75 000000001.17549436e-38
3430
f76 000000001.17549436e-38
3431
f77 -1.175494342e-38
3433
f79 000000001.17549436e-38
3434
f80 000000001.17549436e-38
3448
f94 -1.175494342e-38
3452
f98 000000001.17549436e-38
3454
f100 000000001.17549436e-38
3457
f103 1970-01-10 00:00:09
3458
f104 1970-01-10 00:00:09
3464
CREATE OR REPLACE VIEW v1 AS SELECT F59, F60
3465
FROM test.tb2 WITH CASCADED CHECK OPTION;
3466
SELECT * FROM v1 order by f59,f60 limit 0,10;
3478
CREATE or REPLACE VIEW v1 AS select f59, f60
3479
from test.tb2 where f59=3330 ;
3480
select * FROM v1 order by f60 limit 0,10;
3487
--------------------------------------------------------------------------------
3488
DROP TABLE IF EXISTS t1 ;
3489
DROP VIEW IF EXISTS v1 ;
3490
DROP VIEW IF EXISTS v2 ;
3491
CREATE TABLE t1 (f1 BIGINT) ;
3493
CREATE or REPLACE VIEW v1 AS Select 1 INTO @x;
3494
ERROR HY000: View's SELECT contains a 'INTO' clause
3498
CREATE or REPLACE VIEW v1 AS Select 1
3499
FROM (SELECT 1 FROM t1) my_table;
3500
ERROR HY000: View's SELECT contains a subquery in the FROM clause
3501
CREATE VIEW v1 AS SELECT f1 FROM t1;
3502
CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1 ;
3507
INSERT INTO v1 VALUES (1) ;
3516
CREATE TRIGGER tr1 BEFORE INSERT ON v1 FOR EACH ROW SET @a:=1 ;
3517
ERROR HY000: 'test.v1' is not BASE TABLE
3518
RENAME TABLE v1 TO v2;
3519
RENAME VIEW v2 TO v1;
3520
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
3521
ALTER TABLE v2 RENAME AS v1;
3522
ALTER VIEW v1 RENAME AS v2;
3523
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
3524
DROP TABLE IF EXISTS t1, t2 ;
3525
DROP VIEW IF EXISTS v1 ;
3526
DROP VIEW IF EXISTS v2 ;
3527
CREATE TABLE t1 ( f1 DATE, f2 BLOB, f3 DOUBLE );
3528
CREATE VIEW v1 AS SELECT f1, f2, f3 FROM t1;
3529
ALTER TABLE t1 ADD PRIMARY KEY(f1);
3530
ALTER TABLE v1 ADD PRIMARY KEY(f1);
3531
ERROR HY000: 'test.v1' is not BASE TABLE
3532
ALTER VIEW v1 ADD PRIMARY KEY(f1);
3533
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
3534
CREATE INDEX t1_idx ON t1(f3);
3535
CREATE INDEX v1_idx ON v1(f3);
3536
ERROR HY000: 'test.v1' is not BASE TABLE
3540
Testcase 3.3.1.3 + 3.1.1.4
3541
--------------------------------------------------------------------------------
3542
DROP VIEW IF EXISTS v1 ;
3543
CREATE VIEW v1 or REPLACE AS Select * from tb2 my_table;
3544
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
3545
CREATE VIEW v1 WITH CASCADED CHECK OPTION AS Select *
3546
from tb2 my_table limit 50;
3547
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 *
3548
from tb2 my_table limit 50' at line 1
3549
CREATE VIEW v1 WITH LOCAL CHECK OPTION AS Select *
3550
from tb2 my_table limit 50;
3551
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 *
3552
from tb2 my_table limit 50' at line 1
3553
SELECT * FROM tb2 my_table CREATE VIEW As v1;
3554
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
3555
CREATE or REPLACE VIEW v1 Select f59, f60
3556
from test.tb2 my_table where f59 = 250 ;
3557
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
3558
from test.tb2 my_table where f59 = 250' at line 1
3559
CREATE OR REPLACE VIEW v1 AS SELECT F59, F60
3560
FROM test.tb2 my_table WITH CASCADED CHECK OPTION;
3562
REPLACE OR CREATE VIEW v1 AS SELECT F59, F60
3563
FROM test.tb2 my_table WITH CASCADED CHECK OPTION;
3564
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
3565
FROM test.tb2 my_table WITH CASCADED CHECK ' at line 1
3566
CREATE OR REPLACE VIEW v1 SELECT AS F59, F60
3567
FROM test.tb2 my_table WITH CASCADED CHECK OPTION;
3568
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
3569
FROM test.tb2 my_table WITH CASCADED CHECK OPTION' at line 1
3570
CREATE OR REPLACE VIEW v1 AS SELECT F59, F60
3571
FROM test.tb2 my_table CASCADED WITH CHECK OPTION;
3572
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
3573
CREATE OR REPLACE VIEW v1 AS SELECT F59, F60
3574
FROM test.tb2 my_table WITH CASCADED OPTION CHECK;
3575
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
3576
CREATE OR REPLACE VIEW v1 AS SELECT F59, F60
3577
FROM test.tb2 my_table CHECK OPTION WITH CASCADED;
3578
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
3579
CREATE OR REPLACE VIEW v1 WITH CASCADED CHECK OPTION
3580
AS SELECT F59, F60 FROM test.tb2 my_table;
3581
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
3582
AS SELECT F59, F60 FROM test.tb2 my_table' at line 1
3583
CREATE OR REPLACE AS SELECT F59, F60
3584
FROM test.tb2 my_table VIEW v1 WITH CASCADED CHECK OPTION;
3585
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
3586
FROM test.tb2 my_table VIEW v1 WITH CASCADED CHECK OPTION' at line 1
3587
CREATE OR REPLACE AS SELECT F59, F60
3588
FROM test.tb2 my_table WITH CASCADED CHECK OPTION VIEW v1;
3589
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
3590
FROM test.tb2 my_table WITH CASCADED CHECK OPTION VIEW v1' at line 1
3591
REPLACE OR CREATE VIEW v1 AS SELECT F59, F60
3592
FROM test.tb2 my_table WITH LOCAL CHECK OPTION;
3593
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
3594
FROM test.tb2 my_table WITH LOCAL CHECK OPT' at line 1
3595
CREATE OR REPLACE VIEW v1 SELECT AS F59, F60
3596
FROM test.tb2 my_table WITH LOCAL CHECK OPTION;
3597
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
3598
FROM test.tb2 my_table WITH LOCAL CHECK OPTION' at line 1
3599
CREATE OR REPLACE VIEW v1 AS SELECT F59, F60
3600
FROM test.tb2 my_table LOCAL WITH CHECK OPTION;
3601
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
3602
CREATE OR REPLACE VIEW v1 AS SELECT F59, F60
3603
FROM test.tb2 my_table WITH LOCAL OPTION CHECK;
3604
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
3605
CREATE OR REPLACE VIEW v1 AS SELECT F59, F60
3606
FROM test.tb2 my_table CHECK OPTION WITH LOCAL;
3607
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
3608
CREATE OR REPLACE VIEW v1 WITH CASCADED CHECK OPTION
3609
AS SELECT F59, F60 FROM test.tb2 my_table;
3610
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
3611
AS SELECT F59, F60 FROM test.tb2 my_table' at line 1
3612
CREATE OR REPLACE AS SELECT F59, F60
3613
FROM test.tb2 my_table VIEW v1 WITH LOCAL CHECK OPTION;
3614
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
3615
FROM test.tb2 my_table VIEW v1 WITH LOCAL CHECK OPTION' at line 1
3616
CREATE OR REPLACE AS SELECT F59, F60
3617
FROM test.tb2 my_table WITH LOCAL CHECK OPTION VIEW v1;
3618
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
3619
FROM test.tb2 my_table WITH LOCAL CHECK OPTION VIEW v1' at line 1
3620
Drop table if exists t1 ;
3621
CREATE table t1 (f1 int ,f2 int) ;
3622
INSERT INTO t1 values (235, 22);
3623
INSERT INTO t1 values (554, 11);
3624
CREATE or REPLACE view v1 as (Select from f59 tb2)
3625
Union ALL (Select from f1 t1);
3626
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)
3627
Union ALL (Select from f1 t1)' at line 1
3628
CREATE or REPLACE view v1 as Select f59, f60
3629
from tb2 by order f59;
3630
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
3631
CREATE or REPLACE view v1 as Select f59, f60
3632
from tb2 by group f59 ;
3633
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
3636
--------------------------------------------------------------------------------
3637
DROP VIEW IF EXISTS v1 ;
3638
CREATE VIEW v1 SELECT * FROM tb2;
3639
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
3640
CREATE v1 AS SELECT * FROM tb2;
3641
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
3642
VIEW v1 AS SELECT * FROM tb2;
3643
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
3644
CREATE VIEW v1 AS SELECT 1;
3646
VIEW v1 AS SELECT 1;
3647
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
3648
CREATE v1 AS SELECT 1;
3649
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
3650
CREATE VIEW AS SELECT 1;
3651
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
3652
CREATE VIEW v1 SELECT 1;
3653
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
3655
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
3658
--------------------------------------------------------------------------------
3659
DROP VIEW IF EXISTS v1 ;
3660
CREATE or REPLACE VIEW v1
3661
as SELECT * from tb2;
3662
CREATE or REPLACE ALGORITHM = UNDEFINED VIEW v1
3663
as SELECT * from tb2;
3664
CREATE or REPLACE ALGORITHM = MERGE VIEW v1
3665
as SELECT * from tb2;
3666
CREATE or REPLACE ALGORITHM = TEMPTABLE VIEW v1
3667
as SELECT * from tb2;
3668
CREATE or REPLACE ALGORITHM = TEMPTABLE VIEW v1
3669
as SELECT * from tb2;
3670
CREATE or REPLACE = TEMPTABLE VIEW v1
3671
as SELECT * from tb2;
3672
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
3673
as SELECT * from tb2' at line 1
3674
CREATE or REPLACE ALGORITHM TEMPTABLE VIEW v1
3675
as SELECT * from tb2;
3676
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
3677
as SELECT * from tb2' at line 1
3678
CREATE or REPLACE ALGORITHM = VIEW v1
3679
as SELECT * from tb2;
3680
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
3681
as SELECT * from tb2' at line 1
3682
CREATE or REPLACE TEMPTABLE = ALGORITHM VIEW v1
3683
as SELECT * from tb2;
3684
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
3685
as SELECT * from tb2' at line 1
3686
CREATE or REPLACE TEMPTABLE - ALGORITHM VIEW v1
3687
as SELECT * from tb2;
3688
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
3689
as SELECT * from tb2' at line 1
3690
CREATE or REPLACE GARBAGE = TEMPTABLE VIEW v1
3691
as SELECT * from tb2;
3692
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
3693
as SELECT * from tb2' at line 1
3694
CREATE or REPLACE ALGORITHM = GARBAGE VIEW v1
3695
as SELECT * from tb2;
3696
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
3697
as SELECT * from tb2' at line 1
3698
Drop view if exists v1 ;
3699
CREATE or REPLACE VIEW v1
3700
AS SELECT * from tb2 where f59 < 1;
3701
CREATE or REPLACE VIEW v1
3702
AS SELECT * from tb2 where f59 < 1 WITH CHECK OPTION;
3703
CREATE or REPLACE VIEW v1
3704
AS SELECT * from tb2 where f59 < 1 WITH CASCADED CHECK OPTION;
3705
CREATE or REPLACE VIEW v1
3706
AS SELECT * from tb2 where f59 < 1 WITH LOCAL CHECK OPTION;
3707
CREATE or REPLACE VIEW v1
3708
AS SELECT * from tb2 where f59 < 1 WITH NO CHECK OPTION;
3709
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
3710
CREATE or REPLACE VIEW v1
3711
AS SELECT * from tb2 where f59 < 1 CASCADED CHECK OPTION;
3712
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
3713
CREATE or REPLACE VIEW v1
3714
AS SELECT * from tb2 where f59 < 1 WITH CASCADED OPTION;
3715
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
3716
CREATE or REPLACE VIEW v1
3717
AS SELECT * from tb2 where f59 < 1 WITH CASCADED CHECK ;
3718
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
3721
--------------------------------------------------------------------------------
3722
DROP VIEW IF EXISTS v1 ;
3723
Create view test.v1 AS Select * from test.tb2;
3724
Alter view test.v1 AS Select F59 from test. tb2 limit 100 ;
3726
Create view v1 AS Select * from test.tb2 limit 100 ;
3727
Alter view v1 AS Select F59 from test.tb2 limit 100 ;
3731
--------------------------------------------------------------------------------
3732
DROP TABLE IF EXISTS t1 ;
3733
DROP VIEW IF EXISTS v1 ;
3734
DROP VIEW IF EXISTS V1 ;
3735
CREATE TABLE t1 (f1 NUMERIC(4)) ENGINE = ndb;
3736
INSERT INTO t1 VALUES(1111), (2222);
3737
CREATE VIEW v1 AS SELECT * FROM t1 WHERE f1 = 1111;
3738
CREATE VIEW V1 AS SELECT * FROM t1 WHERE f1 = 2222;
3742
DROP TABLE IF EXISTS t1 ;
3743
DROP VIEW IF EXISTS v1 ;
3744
DROP VIEW IF EXISTS V1 ;
3747
--------------------------------------------------------------------------------
3748
Create view select AS Select * from test.tb2 limit 100;
3749
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
3750
Create view as AS Select * from test.tb2 limit 100;
3751
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
3752
Create view where AS Select * from test.tb2 limit 100;
3753
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
3754
Create view from AS Select * from test.tb2 limit 100;
3755
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
3756
Create view while AS Select * from test.tb2 limit 100;
3757
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
3758
Create view asdkj*(&*&&^ as Select * from test.tb2 limit 100 ;
3759
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
3760
Drop view if exists test.procedure ;
3761
Create view test.procedure as Select * from test.tb2 limit 100 ;
3762
Drop view if exists test.procedure ;
3765
--------------------------------------------------------------------------------
3766
Drop TABLE IF EXISTS t1 ;
3767
Drop VIEW IF EXISTS v1;
3768
Drop VIEW IF EXISTS v2;
3769
Drop VIEW IF EXISTS v3;
3770
CREATE TABLE t1 ( f1 char(5));
3771
INSERT INTO t1 SET f1 = 'abcde';
3772
CREATE VIEW v1 AS SELECT f1 FROM t1;
3773
CREATE VIEW v2 AS SELECT * FROM v1;
3776
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
3778
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
3779
UPDATE v1 SET f1 = 'aaaaa';
3780
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
3781
INSERT INTO v1 SET f1 = "fffff";
3782
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
3784
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
3786
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
3787
UPDATE v2 SET f1 = 'aaaaa';
3788
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
3789
INSERT INTO v2 SET f1 = "fffff";
3790
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
3793
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
3795
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
3796
UPDATE v2 SET f1 = 'aaaaa';
3797
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
3798
INSERT INTO v2 SET f1 = "fffff";
3799
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
3801
DROP TABLE IF EXISTS t1 ;
3802
DROP VIEW IF EXISTS v1 ;
3803
CREATE TABLE t1 (f1 FLOAT);
3804
CREATE VIEW v1 AS SELECT * FROM v1;
3805
ERROR 42S02: Table 'test.v1' doesn't exist
3806
CREATE VIEW v1 AS SELECT * FROM t1;
3807
CREATE or REPLACE VIEW v1 AS SELECT * FROM v1;
3808
ERROR 42S02: Table 'test.v1' doesn't exist
3813
--------------------------------------------------------------------------------
3814
Drop view if exists test.v1 ;
3815
Create view test.v1 AS Select * from test.tb2 ;
3816
Create view test.v1 AS Select F59 from test.tb2 ;
3817
ERROR 42S01: Table 'v1' already exists
3818
Create view v1 AS Select F59 from test.tb2 ;
3819
ERROR 42S01: Table 'v1' already exists
3822
--------------------------------------------------------------------------------
3823
Create view test.tb2 AS Select f59,f60 from test.tb2 limit 100 ;
3824
ERROR 42S01: Table 'tb2' already exists
3825
Create view tb2 AS Select f59,f60 from test.tb2 limit 100 ;
3826
ERROR 42S01: Table 'tb2' already exists
3827
Drop view if exists test.v111 ;
3828
Create view test.v111 as select * from tb2 limit 50;
3829
Create table test.v111(f1 int );
3830
ERROR 42S01: Table 'v111' already exists
3831
Create table v111(f1 int );
3832
ERROR 42S01: Table 'v111' already exists
3833
DROP VIEW test.v111;
3836
--------------------------------------------------------------------------------
3838
Drop database if exists test2 ;
3839
Create database test2 ;
3840
DROP TABLE IF EXISTS test.t0, test.t1, test.t2;
3841
DROP VIEW IF EXISTS test.v1;
3842
DROP VIEW IF EXISTS test.v2;
3843
CREATE TABLE test.t1 ( f1 VARCHAR(20));
3844
CREATE TABLE test2.t1 ( f1 VARCHAR(20));
3845
CREATE TABLE test.t2 ( f1 VARCHAR(20));
3846
CREATE TABLE test2.v1 ( f1 VARCHAR(20));
3847
CREATE TABLE test.t0 ( f1 VARCHAR(20));
3848
CREATE TABLE test2.t0 ( f1 VARCHAR(20));
3849
CREATE VIEW test2.t2 AS SELECT * FROM test2.t0;
3850
CREATE VIEW test.v1 AS SELECT * FROM test.t0;
3851
CREATE VIEW test.v2 AS SELECT * FROM test.t0;
3852
CREATE VIEW test2.v2 AS SELECT * FROM test2.t0;
3853
INSERT INTO test.t1 VALUES('test.t1 - 1');
3854
INSERT INTO test2.t1 VALUES('test2.t1 - 1');
3855
INSERT INTO test.t2 VALUES('test.t2 - 1');
3856
INSERT INTO test2.v1 VALUES('test2.v1 - 1');
3857
INSERT INTO test.t0 VALUES('test.t0 - 1');
3858
INSERT INTO test2.t0 VALUES('test2.t0 - 1');
3860
INSERT INTO t1 VALUES('test.t1 - 2');
3861
INSERT INTO t2 VALUES('test.t2 - 2');
3862
INSERT INTO t0 VALUES('test.t0 - 2');
3864
INSERT INTO t1 VALUES('test2.t1 - 2');
3865
INSERT INTO v1 VALUES('test2.v1 - 2');
3866
INSERT INTO t0 VALUES('test2.t0 - 2');
3902
--------------------------------------------------------------------------------
3903
DROP TABLE IF EXISTS t1;
3904
DROP VIEW IF EXISTS v1;
3905
CREATE TABLE t1 (f1 BIGINT);
3906
INSERT INTO t1 VALUES(1);
3907
CREATE VIEW test.v1 AS SELECT * FROM t1 limit 2;
3908
SHOW CREATE VIEW test.v1;
3909
View Create View character_set_client collation_connection
3910
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
3911
SELECT * FROM test.v1;
3914
CREATE OR REPLACE ALGORITHM = TEMPTABLE VIEW test.v1
3915
AS SELECT * FROM t1 limit 2;
3916
SHOW CREATE VIEW test.v1;
3917
View Create View character_set_client collation_connection
3918
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
3919
SELECT * FROM test.v1;
3922
CREATE OR REPLACE VIEW test.v1 AS SELECT * FROM tb2 order by f59 limit 2;
3923
SHOW CREATE VIEW test.v1;
3924
View Create View character_set_client collation_connection
3925
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` from `tb2` order by `tb2`.`f59` limit 2 latin1 latin1_swedish_ci
3926
SELECT * FROM test.v1 order by f59,f60,f61,f62,f63,f64,f65;
3930
f62 0000000000000000000000000000000000000000000000000000000000000001
3932
f64 0000000000000000000000000000000000000000000000000000000000000001
3934
f66 0.000000000000000000000000000000
3936
f68 0.000000000000000000000000000000
3938
f70 000000000000000000000000000000000.000000000000000000000000000000
3940
f72 000000000000000000000000000000000.000000000000000000000000000000
3943
f75 00000001.175494352e-38
3944
f76 00000001.175494352e-38
3947
f79 00000001.175494352e-38
3948
f80 00000001.175494352e-38
3966
f98 00000001.175494352e-38
3968
f100 00000001.175494352e-38
3971
f103 1970-01-02 00:00:01
3972
f104 1970-01-02 00:00:01
3981
f62 0000000000000000000000000000000000000000000000000000000000000002
3983
f64 0000000000000000000000000000000000000000000000000000000000000002
3985
f66 1.100000000000000000000000000000
3987
f68 1.100000000000000000000000000000
3989
f70 000000000000000000000000000000001.100000000000000000000000000000
3991
f72 000000000000000000000000000000001.100000000000000000000000000000
3992
f73 -1.175494349e-38
3994
f75 00000001.175494353e-38
3995
f76 00000001.175494353e-38
3996
f77 -1.175494349e-38
3998
f79 00000001.175494353e-38
3999
f80 00000001.175494353e-38
4013
f94 -1.175494349e-38
4017
f98 00000001.175494353e-38
4019
f100 00000001.175494353e-38
4022
f103 1970-01-03 00:00:02
4023
f104 1970-01-03 00:00:02
4029
CREATE OR REPLACE VIEW test.v1 AS SELECT F59 FROM tb2;
4030
SHOW CREATE VIEW test.v1;
4031
View Create View character_set_client collation_connection
4032
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `tb2`.`f59` AS `F59` from `tb2` latin1 latin1_swedish_ci
4033
SELECT * FROM test.v1 order by F59 limit 10,100;
4075
Drop table test.t1 ;
4079
--------------------------------------------------------------------------------
4080
CREATE OR REPLACE VIEW test.tb2 AS SELECT * From tb2 LIMIT 2;
4081
ERROR HY000: 'test.tb2' is not VIEW
4082
CREATE OR REPLACE VIEW tb2 AS SELECT * From tb2 LIMIT 2;
4083
ERROR HY000: 'test.tb2' is not VIEW
4086
--------------------------------------------------------------------------------
4087
Drop table if exists test.v1 ;
4088
CREATE OR REPLACE view test.v1 as select * from tb2;
4089
SELECT * FROM test.v1;
4090
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
4091
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
4092
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
4093
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
4094
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
4095
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
4096
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
4097
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
4098
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
4099
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
4100
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
4101
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
4102
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
4103
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
4104
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
4105
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
4106
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
4107
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
4108
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
4109
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
4110
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
4111
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
4112
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
4113
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
4114
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
4115
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
4116
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
4117
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
4118
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
4119
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
4120
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
4121
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
4122
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
4123
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
4124
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
4125
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
4126
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
4127
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
4128
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
4129
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
4130
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
4131
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
4132
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
4133
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
4134
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
4135
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
4136
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
4137
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
4138
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
4139
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
4140
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
4143
Testcase 3.3.1.16 + 3.3.1.17
4144
--------------------------------------------------------------------------------
4145
Drop table if exists test.v1 ;
4146
CREATE OR REPLACE VIEW v1 AS SELECT * From tb2;
4147
SELECT * FROM tb2 WHERE 1 = 2;
4148
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
4149
SELECT * FROM v1 WHERE 1 = 2;
4150
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
4152
DROP TABLE IF EXISTS t1;
4153
DROP VIEW IF EXISTS v1;
4154
CREATE TABLE t1 (f1 NUMERIC(15,3));
4155
INSERT INTO t1 VALUES(8.8);
4156
CREATE VIEW v1 AS SELECT * FROM t1;
4157
SHOW CREATE VIEW v1;
4158
View Create View character_set_client collation_connection
4159
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`f1` AS `f1` from `t1` latin1 latin1_swedish_ci
4163
CREATE OR REPLACE VIEW v1 AS SELECT f1 FROM t1;
4164
SHOW CREATE VIEW v1;
4165
View Create View character_set_client collation_connection
4166
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`f1` AS `f1` from `t1` latin1 latin1_swedish_ci
4170
CREATE OR REPLACE VIEW v1 AS SELECT f1 As my_column FROM t1;
4171
SHOW CREATE VIEW v1;
4172
View Create View character_set_client collation_connection
4173
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
4177
CREATE OR REPLACE VIEW v1(column1,column2)
4178
AS SELECT f1 As my_column, f1 FROM t1;
4179
SHOW CREATE VIEW v1;
4180
View Create View character_set_client collation_connection
4181
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
4185
CREATE OR REPLACE VIEW test.v1(column1,column2)
4186
AS SELECT f1 As my_column, f1 FROM test.t1;
4187
SHOW CREATE VIEW v1;
4188
View Create View character_set_client collation_connection
4189
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
4195
--------------------------------------------------------------------------------
4196
Drop view if exists v1 ;
4197
Drop view if exists v1_1 ;
4199
as Select test.tb2.f59 as NewNameF1, test.tb2.f60
4200
from test.tb2 limit 0,100 ;
4202
as Select test.tb2.f59 as NewNameF1, test.tb2.f60 as NewNameF2
4203
from tb2 limit 0,100 ;
4204
SELECT NewNameF1,f60 FROM test.v1_1 ;
4205
ERROR 42S22: Unknown column 'f60' in 'field list'
4206
SELECT NewNameF1, v1_1.f60 FROM test.v1_1 ;
4207
ERROR 42S22: Unknown column 'v1_1.f60' in 'field list'
4208
SELECT f59, f60 FROM test.v1 ;
4209
ERROR 42S22: Unknown column 'f59' in 'field list'
4211
SELECT F59 FROM v1 ;
4212
ERROR 42S22: Unknown column 'F59' in 'field list'
4215
--------------------------------------------------------------------------------
4216
DROP TABLE IF EXISTS t1, t2;
4217
DROP VIEW IF EXISTS v1;
4218
CREATE TABLE t1( f1 BIGINT, f2 DECIMAL(5,2));
4219
INSERT INTO t1 VALUES(7, 7.7);
4220
CREATE TABLE t2( f1 BIGINT, f2 DECIMAL(5,2));
4221
INSERT INTO t2 VALUES(6, 6.6);
4222
CREATE VIEW v1 AS SELECT * FROM t1;
4226
CREATE OR REPLACE VIEW v1 AS SELECT f1, f2 FROM t1;
4230
CREATE OR REPLACE VIEW v1 AS SELECT f1 AS my_f1, f2 AS my_f2 FROM t1;
4234
CREATE OR REPLACE VIEW v1 (my_f1, my_f2) AS SELECT f1, f2 FROM t1;
4238
CREATE OR REPLACE VIEW v1 (my_f1, my_f2) AS SELECT t1.f1, t2.f2 FROM t1, t2;
4242
SELECT f1, f2 AS f1 FROM t1;
4245
CREATE OR REPLACE VIEW v1 AS SELECT f1, f2 AS f1 FROM t1;
4246
ERROR 42S21: Duplicate column name 'f1'
4247
SELECT t1.f1, t2.f1 AS f1 FROM t1, t2;
4250
CREATE OR REPLACE VIEW v1 AS SELECT t1.f1, t2.f1 AS f1 FROM t1, t2;
4251
ERROR 42S21: Duplicate column name 'f1'
4252
CREATE OR REPLACE VIEW v1 (my_col, my_col) AS SELECT * FROM t1;
4253
ERROR 42S21: Duplicate column name 'my_col'
4256
--------------------------------------------------------------------------------
4257
DROP TABLE IF EXISTS t1;
4258
CREATE TABLE t1( f1 BIGINT, f2 DECIMAL(5,2));
4259
CREATE OR REPLACE VIEW v1 (my_f1, my_f2) AS SELECT * FROM t1;
4260
CREATE OR REPLACE VIEW v1 (my_f1, my_f2) AS SELECT f1, f2 FROM t1;
4261
CREATE OR REPLACE VIEW v1 (my_f1 ) AS SELECT * FROM t1;
4262
ERROR HY000: View's SELECT and view's field list have different column counts
4263
CREATE OR REPLACE VIEW v1 (my_f1 ) AS SELECT f1, f2 FROM t1;
4264
ERROR HY000: View's SELECT and view's field list have different column counts
4265
CREATE OR REPLACE VIEW v1 (my_f1, my_f2, my_f3) AS SELECT * FROM t1;
4266
ERROR HY000: View's SELECT and view's field list have different column counts
4267
CREATE OR REPLACE VIEW v1 (my_f1, my_f2, my_f3) AS SELECT f1, f2 FROM t1;
4268
ERROR HY000: View's SELECT and view's field list have different column counts
4271
--------------------------------------------------------------------------------
4272
DROP VIEW IF EXISTS v1;
4273
CREATE VIEW test.v1( F59, F60 ) AS SELECT F59, F60 From tb2;
4274
SELECT * FROM test.v1 order by F59, F60 desc LIMIT 2;
4278
Drop view if exists test.v1 ;
4281
--------------------------------------------------------------------------------
4282
DROP VIEW IF EXISTS v1;
4283
CREATE VIEW test.v1( product ) AS SELECT f59*f60 From tb2 WHERE f59 < 3;
4284
SELECT * FROM test.v1;
4288
CREATE OR REPLACE VIEW test.v1( product ) AS SELECT 1*2;
4289
SELECT * FROM test.v1;
4292
CREATE OR REPLACE VIEW test.v1( product ) AS SELECT USER();
4293
SELECT * FROM test.v1;
4296
Drop view if exists test.v1 ;
4298
Testcase 3.3.1.23 + 3.3.1.24
4299
--------------------------------------------------------------------------------
4301
DROP TABLE IF EXISTS t1;
4302
DROP VIEW IF EXISTS v1;
4303
DROP VIEW IF EXISTS v2;
4304
CREATE VIEW test.v2 AS SELECT * FROM test.t1;
4305
ERROR 42S02: Table 'test.t1' doesn't exist
4306
CREATE VIEW v2 AS Select * from test.v1;
4307
ERROR 42S02: Table 'test.v1' doesn't exist
4308
DROP VIEW IF EXISTS v2;
4310
Note 1051 Unknown table 'test.v2'
4313
--------------------------------------------------------------------------------
4314
DROP TABLE IF EXISTS t1_temp;
4315
DROP TABLE IF EXISTS t2_temp;
4316
DROP VIEW IF EXISTS v1;
4317
Create table t1_temp(f59 char(10),f60 int) ;
4318
Create temporary table t1_temp(f59 char(10),f60 int) ;
4319
Insert into t1_temp values('FER',90);
4320
Insert into t1_temp values('CAR',27);
4321
Create view v1 as select * from t1_temp ;
4322
ERROR HY000: View's SELECT refers to a temporary table 't1_temp'
4323
Create temporary table t2_temp(f59 char(10),f60 int) ;
4324
Insert into t2_temp values('AAA',11);
4325
Insert into t2_temp values('BBB',22);
4326
Create or replace view v1
4327
as select t1_temp.f59,t2_temp.f59 from t1_temp,t2_temp ;
4328
ERROR HY000: View's SELECT refers to a temporary table 't1_temp'
4329
DROP temporary table t1_temp;
4331
DROP temporary table t2_temp;
4332
DROP TABLE IF EXISTS t1;
4333
DROP VIEW IF EXISTS v1;
4334
CREATE TABLE t1 (f1 char(10));
4335
CREATE TEMPORARY TABLE t2 (f2 char(10));
4336
INSERT INTO t1 VALUES('t1');
4337
INSERT INTO t1 VALUES('A');
4338
INSERT INTO t2 VALUES('t2');
4339
INSERT INTO t2 VALUES('B');
4340
CREATE OR REPLACE VIEW v1 AS SELECT f2 FROM t2;
4341
ERROR HY000: View's SELECT refers to a temporary table 't2'
4342
CREATE OR REPLACE VIEW v1 AS SELECT * FROM t2, t1;
4343
ERROR HY000: View's SELECT refers to a temporary table 't2'
4344
CREATE OR REPLACE VIEW v1 AS SELECT f2, f1 FROM t2, t1;
4345
ERROR HY000: View's SELECT refers to a temporary table 't2'
4346
CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1, t2;
4347
ERROR HY000: View's SELECT refers to a temporary table 't2'
4348
CREATE OR REPLACE VIEW v1 AS SELECT f1, f2 FROM t1, t2;
4349
ERROR HY000: View's SELECT refers to a temporary table 't2'
4350
CREATE OR REPLACE VIEW v1 AS SELECT * FROM t2 UNION SELECT * FROM t1;
4351
ERROR HY000: View's SELECT refers to a temporary table 't2'
4352
CREATE OR REPLACE VIEW v1 AS SELECT f2 FROM t2 UNION SELECT f1 FROM t1;
4353
ERROR HY000: View's SELECT refers to a temporary table 't2'
4354
CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1 UNION SELECT * FROM t2;
4355
ERROR HY000: View's SELECT refers to a temporary table 't2'
4356
CREATE OR REPLACE VIEW v1 AS SELECT f1 FROM t1 UNION SELECT f2 FROM t2;
4357
ERROR HY000: View's SELECT refers to a temporary table 't2'
4358
CREATE OR REPLACE VIEW v1 AS SELECT 1 FROM t2
4359
WHERE f2 = ( SELECT f1 FROM t1 );
4360
ERROR HY000: View's SELECT refers to a temporary table 't2'
4361
CREATE OR REPLACE VIEW v1 AS SELECT 1 FROM t1
4362
WHERE f1 = ( SELECT f2 FROM t2 );
4363
ERROR HY000: View's SELECT refers to a temporary table 't2'
4365
DROP TEMPORARY TABLE t2;
4368
--------------------------------------------------------------------------------
4369
DROP VIEW IF EXISTS v1;
4370
Create view test.v1 AS Select * from test.tb2;
4371
Select * from test.v1;
4372
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
4373
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
4374
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
4375
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
4376
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
4377
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
4378
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
4379
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
4380
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
4381
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
4382
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
4383
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
4384
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
4385
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
4386
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
4387
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
4388
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
4389
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
4390
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
4391
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
4392
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
4393
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
4394
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
4395
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
4396
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
4397
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
4398
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
4399
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
4400
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
4401
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
4402
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
4403
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
4404
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
4405
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
4406
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
4407
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
4408
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
4409
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
4410
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
4411
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
4412
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
4413
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
4414
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
4415
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
4416
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
4417
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
4418
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
4419
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
4420
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
4421
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
4422
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
4426
--------------------------------------------------------------------------------
4427
DROP VIEW IF EXISTS test.v1;
4428
Drop VIEW IF EXISTS test.v1_1 ;
4429
Create view test.v1 AS Select * from test.tb2;
4430
Create view test.v1_1 AS Select F59 from test.v1 ;
4431
Select * from test.v1_1 order by F59 limit 2;
4436
Drop view test.v1_1 ;
4439
--------------------------------------------------------------------------------
4440
Drop database if exists test2 ;
4441
create database test2 ;
4442
Create view test2.v2 AS Select * from test.tb2 limit 50,50;
4444
Create view v1 AS Select * from test.tb2 limit 50 ;
4445
Select * from v1 order by f59,f60,f61,f62,f63,f64,f65;
4449
f62 0000000000000000000000000000000000000000000000000000000000000001
4451
f64 0000000000000000000000000000000000000000000000000000000000000001
4453
f66 0.000000000000000000000000000000
4455
f68 0.000000000000000000000000000000
4457
f70 000000000000000000000000000000000.000000000000000000000000000000
4459
f72 000000000000000000000000000000000.000000000000000000000000000000
4462
f75 00000001.175494352e-38
4463
f76 00000001.175494352e-38
4466
f79 00000001.175494352e-38
4467
f80 00000001.175494352e-38
4485
f98 00000001.175494352e-38
4487
f100 00000001.175494352e-38
4490
f103 1970-01-02 00:00:01
4491
f104 1970-01-02 00:00:01
4500
f62 0000000000000000000000000000000000000000000000000000000000000002
4502
f64 0000000000000000000000000000000000000000000000000000000000000002
4504
f66 1.100000000000000000000000000000
4506
f68 1.100000000000000000000000000000
4508
f70 000000000000000000000000000000001.100000000000000000000000000000
4510
f72 000000000000000000000000000000001.100000000000000000000000000000
4511
f73 -1.175494349e-38
4513
f75 00000001.175494353e-38
4514
f76 00000001.175494353e-38
4515
f77 -1.175494349e-38
4517
f79 00000001.175494353e-38
4518
f80 00000001.175494353e-38
4532
f94 -1.175494349e-38
4536
f98 00000001.175494353e-38
4538
f100 00000001.175494353e-38
4541
f103 1970-01-03 00:00:02
4542
f104 1970-01-03 00:00:02
4551
f62 0000000000000000000000000000000000000000000000000000000000000003
4553
f64 0000000000000000000000000000000000000000000000000000000000000003
4555
f66 2.200000000000000000000000000000
4557
f68 2.200000000000000000000000000000
4559
f70 000000000000000000000000000000002.200000000000000000000000000000
4561
f72 000000000000000000000000000000002.200000000000000000000000000000
4562
f73 -1.175494348e-38
4564
f75 00000001.175494354e-38
4565
f76 00000001.175494354e-38
4566
f77 -1.175494348e-38
4568
f79 00000001.175494354e-38
4569
f80 00000001.175494354e-38
4583
f94 -1.175494348e-38
4587
f98 00000001.175494354e-38
4589
f100 00000001.175494354e-38
4592
f103 1970-01-04 00:00:03
4593
f104 1970-01-04 00:00:03
4602
f62 0000000000000000000000000000000000000000000000000000000000000004
4604
f64 0000000000000000000000000000000000000000000000000000000000000004
4606
f66 3.300000000000000000000000000000
4608
f68 3.300000000000000000000000000000
4610
f70 000000000000000000000000000000003.300000000000000000000000000000
4612
f72 000000000000000000000000000000003.300000000000000000000000000000
4613
f73 -1.175494347e-38
4615
f75 00000001.175494355e-38
4616
f76 00000001.175494355e-38
4617
f77 -1.175494347e-38
4619
f79 00000001.175494355e-38
4620
f80 00000001.175494355e-38
4634
f94 -1.175494347e-38
4638
f98 00000001.175494355e-38
4640
f100 00000001.175494355e-38
4643
f103 1970-01-05 00:00:04
4644
f104 1970-01-05 00:00:04
4670
f79 00000000000000000007.7
4671
f80 00000000000000000008.8
4689
f98 00000000000000000008.8
4691
f100 00000000000000000008.8
4694
f103 0002-02-02 00:00:00
4695
f104 2000-12-31 23:59:59
4704
f62 0000000000000000000000000000000000000000000000000000000000000005
4706
f64 0000000000000000000000000000000000000000000000000000000000000005
4708
f66 4.400000000000000000000000000000
4710
f68 4.400000000000000000000000000000
4712
f70 000000000000000000000000000000004.400000000000000000000000000000
4714
f72 000000000000000000000000000000004.400000000000000000000000000000
4715
f73 -1.175494346e-38
4717
f75 00000001.175494356e-38
4718
f76 00000001.175494356e-38
4719
f77 -1.175494346e-38
4721
f79 00000001.175494356e-38
4722
f80 00000001.175494356e-38
4736
f94 -1.175494346e-38
4740
f98 00000001.175494356e-38
4742
f100 00000001.175494356e-38
4745
f103 1970-01-06 00:00:05
4746
f104 1970-01-06 00:00:05
4755
f62 0000000000000000000000000000000000000000000000000000000000000006
4757
f64 0000000000000000000000000000000000000000000000000000000000000006
4759
f66 5.500000000000000000000000000000
4761
f68 5.500000000000000000000000000000
4763
f70 000000000000000000000000000000005.500000000000000000000000000000
4765
f72 000000000000000000000000000000005.500000000000000000000000000000
4766
f73 -1.175494345e-38
4768
f75 00000001.175494357e-38
4769
f76 00000001.175494357e-38
4770
f77 -1.175494345e-38
4772
f79 00000001.175494357e-38
4773
f80 00000001.175494357e-38
4787
f94 -1.175494345e-38
4791
f98 00000001.175494357e-38
4793
f100 00000001.175494357e-38
4796
f103 1970-01-07 00:00:06
4797
f104 1970-01-07 00:00:06
4806
f62 0000000000000000000000000000000000000000000000000000000000000007
4808
f64 0000000000000000000000000000000000000000000000000000000000000007
4810
f66 6.600000000000000000000000000000
4812
f68 6.600000000000000000000000000000
4814
f70 000000000000000000000000000000006.600000000000000000000000000000
4816
f72 000000000000000000000000000000006.600000000000000000000000000000
4817
f73 -1.175494344e-38
4819
f75 00000001.175494358e-38
4820
f76 00000001.175494358e-38
4821
f77 -1.175494344e-38
4823
f79 00000001.175494358e-38
4824
f80 00000001.175494358e-38
4838
f94 -1.175494344e-38
4842
f98 00000001.175494358e-38
4844
f100 00000001.175494358e-38
4847
f103 1970-01-08 00:00:07
4848
f104 1970-01-08 00:00:07
4857
f62 0000000000000000000000000000000000000000000000000000000000000008
4859
f64 0000000000000000000000000000000000000000000000000000000000000008
4861
f66 7.700000000000000000000000000000
4863
f68 7.700000000000000000000000000000
4865
f70 000000000000000000000000000000007.700000000000000000000000000000
4867
f72 000000000000000000000000000000007.700000000000000000000000000000
4868
f73 -1.175494343e-38
4870
f75 00000001.175494359e-38
4871
f76 00000001.175494359e-38
4872
f77 -1.175494343e-38
4874
f79 00000001.175494359e-38
4875
f80 00000001.175494359e-38
4889
f94 -1.175494343e-38
4893
f98 00000001.175494359e-38
4895
f100 00000001.175494359e-38
4898
f103 1970-01-09 00:00:08
4899
f104 1970-01-09 00:00:08
4908
f62 0000000000000000000000000000000000000000000000000000000000000009
4910
f64 0000000000000000000000000000000000000000000000000000000000000009
4912
f66 8.800000000000000000000000000000
4914
f68 8.800000000000000000000000000000
4916
f70 000000000000000000000000000000008.800000000000000000000000000000
4918
f72 000000000000000000000000000000008.800000000000000000000000000000
4919
f73 -1.175494342e-38
4921
f75 000000001.17549436e-38
4922
f76 000000001.17549436e-38
4923
f77 -1.175494342e-38
4925
f79 000000001.17549436e-38
4926
f80 000000001.17549436e-38
4940
f94 -1.175494342e-38
4944
f98 000000001.17549436e-38
4946
f100 000000001.17549436e-38
4949
f103 1970-01-10 00:00:09
4950
f104 1970-01-10 00:00:09
4959
f62 0000000000000000000000000000000000000000000000000000000000000010
4961
f64 0000000000000000000000000000000000000000000000000000000000000010
4963
f66 9.900000000000000000000000000000
4965
f68 9.900000000000000000000000000000
4967
f70 000000000000000000000000000000009.900000000000000000000000000000
4969
f72 000000000000000000000000000000009.900000000000000000000000000000
4970
f73 -1.175494341e-38
4972
f75 00000001.175494361e-38
4973
f76 00000001.175494361e-38
4974
f77 -1.175494341e-38
4976
f79 00000001.175494361e-38
4977
f80 00000001.175494361e-38
4991
f94 -1.175494341e-38
4995
f98 00000001.175494361e-38
4997
f100 00000001.175494361e-38
5000
f103 1970-01-11 00:00:10
5001
f104 1970-01-11 00:00:10
5027
f79 00000000000000000007.7
5028
f80 00000000000000000008.8
5046
f98 00000000000000000008.8
5048
f100 00000000000000000008.8
5051
f103 0002-02-02 00:00:00
5052
f104 2000-12-31 23:59:59
5078
f79 00000000000000000007.7
5079
f80 00000000000000000008.8
5097
f98 00000000000000000008.8
5099
f100 00000000000000000008.8
5102
f103 0002-02-02 00:00:00
5103
f104 2000-12-31 23:59:59
5129
f79 00000000000000000007.7
5130
f80 00000000000000000008.8
5148
f98 00000000000000000008.8
5150
f100 00000000000000000008.8
5153
f103 0002-02-02 00:00:00
5154
f104 2000-12-31 23:59:59
5180
f79 00000000000000000007.7
5181
f80 00000000000000000008.8
5199
f98 00000000000000000008.8
5201
f100 00000000000000000008.8
5204
f103 0002-02-02 00:00:00
5205
f104 2000-12-31 23:59:59
5231
f79 00000000000000000007.7
5232
f80 00000000000000000008.8
5250
f98 00000000000000000008.8
5252
f100 00000000000000000008.8
5255
f103 0002-02-02 00:00:00
5256
f104 2000-12-31 23:59:59
5282
f79 00000000000000000007.7
5283
f80 00000000000000000008.8
5301
f98 00000000000000000008.8
5303
f100 00000000000000000008.8
5306
f103 0002-02-02 00:00:00
5307
f104 2000-12-31 23:59:59
5333
f79 00000000000000000007.7
5334
f80 00000000000000000008.8
5352
f98 00000000000000000008.8
5354
f100 00000000000000000008.8
5357
f103 0002-02-02 00:00:00
5358
f104 2000-12-31 23:59:59
5384
f79 00000000000000000007.7
5385
f80 00000000000000000008.8
5403
f98 00000000000000000008.8
5405
f100 00000000000000000008.8
5408
f103 0002-02-02 00:00:00
5409
f104 2000-12-31 23:59:59
5435
f79 00000000000000000007.7
5436
f80 00000000000000000008.8
5454
f98 00000000000000000008.8
5456
f100 00000000000000000008.8
5459
f103 0002-02-02 00:00:00
5460
f104 2000-12-31 23:59:59
5486
f79 00000000000000000007.7
5487
f80 00000000000000000008.8
5505
f98 00000000000000000008.8
5507
f100 00000000000000000008.8
5510
f103 0002-02-02 00:00:00
5511
f104 2000-12-31 23:59:59
5537
f79 00000000000000000007.7
5538
f80 00000000000000000008.8
5556
f98 00000000000000000008.8
5558
f100 00000000000000000008.8
5561
f103 0002-02-02 00:00:00
5562
f104 2000-12-31 23:59:59
5588
f79 00000000000000000007.7
5589
f80 00000000000000000008.8
5607
f98 00000000000000000008.8
5609
f100 00000000000000000008.8
5612
f103 0002-02-02 00:00:00
5613
f104 2000-12-31 23:59:59
5639
f79 00000000000000000007.7
5640
f80 00000000000000000008.8
5658
f98 00000000000000000008.8
5660
f100 00000000000000000008.8
5663
f103 0002-02-02 00:00:00
5664
f104 2000-12-31 23:59:59
5690
f79 00000000000000000007.7
5691
f80 00000000000000000008.8
5709
f98 00000000000000000008.8
5711
f100 00000000000000000008.8
5714
f103 0002-02-02 00:00:00
5715
f104 2000-12-31 23:59:59
5741
f79 00000000000000000007.7
5742
f80 00000000000000000008.8
5760
f98 00000000000000000008.8
5762
f100 00000000000000000008.8
5765
f103 0002-02-02 00:00:00
5766
f104 2000-12-31 23:59:59
5792
f79 00000000000000000007.7
5793
f80 00000000000000000008.8
5811
f98 00000000000000000008.8
5813
f100 00000000000000000008.8
5816
f103 0002-02-02 00:00:00
5817
f104 2000-12-31 23:59:59
5843
f79 00000000000000000007.7
5844
f80 00000000000000000008.8
5862
f98 00000000000000000008.8
5864
f100 00000000000000000008.8
5867
f103 0002-02-02 00:00:00
5868
f104 2000-12-31 23:59:59
5894
f79 00000000000000000007.7
5895
f80 00000000000000000008.8
5913
f98 00000000000000000008.8
5915
f100 00000000000000000008.8
5918
f103 0002-02-02 00:00:00
5919
f104 2000-12-31 23:59:59
5945
f79 00000000000000000007.7
5946
f80 00000000000000000008.8
5964
f98 00000000000000000008.8
5966
f100 00000000000000000008.8
5969
f103 0002-02-02 00:00:00
5970
f104 2000-12-31 23:59:59
5996
f79 00000000000000000007.7
5997
f80 00000000000000000008.8
6015
f98 00000000000000000008.8
6017
f100 00000000000000000008.8
6020
f103 0002-02-02 00:00:00
6021
f104 2000-12-31 23:59:59
6047
f79 00000000000000000007.7
6048
f80 00000000000000000008.8
6066
f98 00000000000000000008.8
6068
f100 00000000000000000008.8
6071
f103 0002-02-02 00:00:00
6072
f104 2000-12-31 23:59:59
6098
f79 00000000000000000007.7
6099
f80 00000000000000000008.8
6117
f98 00000000000000000008.8
6119
f100 00000000000000000008.8
6122
f103 0002-02-02 00:00:00
6123
f104 2000-12-31 23:59:59
6149
f79 00000000000000000007.7
6150
f80 00000000000000000008.8
6168
f98 00000000000000000008.8
6170
f100 00000000000000000008.8
6173
f103 0002-02-02 00:00:00
6174
f104 2000-12-31 23:59:59
6200
f79 00000000000000000007.7
6201
f80 00000000000000000008.8
6219
f98 00000000000000000008.8
6221
f100 00000000000000000008.8
6224
f103 0002-02-02 00:00:00
6225
f104 2000-12-31 23:59:59
6251
f79 00000000000000000007.7
6252
f80 00000000000000000008.8
6270
f98 00000000000000000008.8
6272
f100 00000000000000000008.8
6275
f103 0002-02-02 00:00:00
6276
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
6353
f79 00000000000000000007.7
6354
f80 00000000000000000008.8
6372
f98 00000000000000000008.8
6374
f100 00000000000000000008.8
6377
f103 0002-02-02 00:00:00
6378
f104 2000-12-31 23:59:59
6404
f79 00000000000000000007.7
6405
f80 00000000000000000008.8
6423
f98 00000000000000000008.8
6425
f100 00000000000000000008.8
6428
f103 0002-02-02 00:00:00
6429
f104 2000-12-31 23:59:59
6455
f79 00000000000000000007.7
6456
f80 00000000000000000008.8
6474
f98 00000000000000000008.8
6476
f100 00000000000000000008.8
6479
f103 0002-02-02 00:00:00
6480
f104 2000-12-31 23:59:59
6506
f79 00000000000000000007.7
6507
f80 00000000000000000008.8
6525
f98 00000000000000000008.8
6527
f100 00000000000000000008.8
6530
f103 0002-02-02 00:00:00
6531
f104 2000-12-31 23:59:59
6557
f79 00000000000000000007.7
6558
f80 00000000000000000008.8
6576
f98 00000000000000000008.8
6578
f100 00000000000000000008.8
6581
f103 0002-02-02 00:00:00
6582
f104 2000-12-31 23:59:59
6608
f79 00000000000000000007.7
6609
f80 00000000000000000008.8
6627
f98 00000000000000000008.8
6629
f100 00000000000000000008.8
6632
f103 0002-02-02 00:00:00
6633
f104 2000-12-31 23:59:59
6659
f79 00000000000000000007.7
6660
f80 00000000000000000008.8
6678
f98 00000000000000000008.8
6680
f100 00000000000000000008.8
6683
f103 0002-02-02 00:00:00
6684
f104 2000-12-31 23:59:59
6710
f79 00000000000000000007.7
6711
f80 00000000000000000008.8
6729
f98 00000000000000000008.8
6731
f100 00000000000000000008.8
6734
f103 0002-02-02 00:00:00
6735
f104 2000-12-31 23:59:59
6761
f79 00000000000000000007.7
6762
f80 00000000000000000008.8
6780
f98 00000000000000000008.8
6782
f100 00000000000000000008.8
6785
f103 0002-02-02 00:00:00
6786
f104 2000-12-31 23:59:59
6812
f79 00000000000000000007.7
6813
f80 00000000000000000008.8
6831
f98 00000000000000000008.8
6833
f100 00000000000000000008.8
6836
f103 0002-02-02 00:00:00
6837
f104 2000-12-31 23:59:59
6863
f79 00000000000000000007.7
6864
f80 00000000000000000008.8
6882
f98 00000000000000000008.8
6884
f100 00000000000000000008.8
6887
f103 0002-02-02 00:00:00
6888
f104 2000-12-31 23:59:59
6914
f79 00000000000000000007.7
6915
f80 00000000000000000008.8
6933
f98 00000000000000000008.8
6935
f100 00000000000000000008.8
6938
f103 0002-02-02 00:00:00
6939
f104 2000-12-31 23:59:59
6965
f79 00000000000000000007.7
6966
f80 00000000000000000008.8
6984
f98 00000000000000000008.8
6986
f100 00000000000000000008.8
6989
f103 0002-02-02 00:00:00
6990
f104 2000-12-31 23:59:59
6996
Select * from test2.v2 ;
6997
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
6998
Drop view if exists test2.v1 ;
6999
Drop view if exists test2.v2 ;
7000
Drop database test2 ;
7003
--------------------------------------------------------------------------------
7004
Drop database if exists test2 ;
7005
Drop view if exists test.v1 ;
7006
create database test2 ;
7008
Create view test.v1 AS Select * from test.tb2 limit 50 ;
7009
Create view test2.v2 AS Select F59 from test.v1 ;
7010
Drop view if exists test.v1 ;
7011
Drop view if exists test2.v2 ;
7014
--------------------------------------------------------------------------------
7015
Drop table if exists test.t1 ;
7016
CREATE TABLE test.t1 ( f59 int, f60 int );
7017
INSERT INTO test.t1 VALUES( 34, 654 );
7018
INSERT INTO test.t1 VALUES( 906, 434 );
7019
INSERT INTO test.t1 VALUES( 445, 765 );
7020
Create or replace view test.v1
7021
AS SELECT test.t1.F59, test.tb2.F60
7022
FROM test.tb2 JOIN test.t1 ON test.tb2.F59 = test.t1.F59 ;
7023
Select * from test.v1;
7029
--------------------------------------------------------------------------------
7030
Drop table if exists test.t1 ;
7031
Drop database if exists test2 ;
7032
Drop view if exists test.v1 ;
7033
create database test2 ;
7035
CREATE TABLE t1 ( f59 int, f60 int );
7036
INSERT INTO t1 VALUES( 34, 654 );
7037
INSERT INTO t1 VALUES( 906, 434 );
7038
INSERT INTO t1 VALUES( 445, 765 );
7039
CREATE VIEW test2.v1
7040
AS SELECT test.tb2.F59, test.tb2.F60
7041
FROM test.tb2 INNER JOIN test2.t1 ON tb2.f59 = t1.f59;
7042
Select * from test2.v1;
7048
--------------------------------------------------------------------------------
7049
Drop view if exists test.v1_firstview ;
7050
Drop view if exists test.v1_secondview ;
7051
Drop view if exists test.v1 ;
7052
CREATE VIEW test.v1_firstview AS SELECT * FROM test.tb2;
7053
CREATE VIEW test.v1_secondview AS SELECT * FROM test.tb2;
7055
AS SELECT test.v1_firstview.f59, test.v1_firstview.f60
7056
FROM test.v1_firstview INNER JOIN test.v1_secondview
7057
ON test.v1_firstview.f59 = test.v1_secondview.f59 ;
7058
SELECT * FROM test.v1 order by f59,f60 limit 0,10;
7070
Drop view if exists test.v1_firstview ;
7071
Drop view if exists test.v1_secondview ;
7072
Drop view if exists test.v1 ;
7075
--------------------------------------------------------------------------------
7076
Drop database if exists test2 ;
7077
Drop view if exists test.v1_firstview ;
7078
Drop view if exists test.v1_secondview ;
7079
create database test2 ;
7081
CREATE VIEW test.v1_firstview AS SELECT * FROM test.tb2 ;
7082
CREATE VIEW test.v1_secondview AS SELECT * FROM test.tb2 ;
7084
AS SELECT test.v1_firstview.F59, test.v1_firstview.F60
7085
FROM test.v1_firstview INNER JOIN test.v1_secondview
7086
ON test.v1_firstview.f59 = test.v1_secondview.f59 ;
7087
SELECT * FROM v1 order by f59,f60 limit 0,10;
7100
Drop view test.v1_firstview ;
7101
Drop view test.v1_secondview ;
7104
--------------------------------------------------------------------------------
7106
Drop view if exists test.v1;
7107
Drop view if exists test.v1_firstview;
7108
CREATE VIEW test.v1_firstview AS SELECT * FROM test.tb2;
7110
AS SELECT test.v1_firstview.f59, test.v1_firstview.f60
7111
FROM test.v1_firstview INNER JOIN test.tb2
7112
ON test.v1_firstview.f59 = test.tb2.f59;
7113
SELECT * FROM test.v1 order by f59,f60 limit 0,10;
7126
Drop view test.v1_firstview;
7129
--------------------------------------------------------------------------------
7130
Drop database if exists test2 ;
7131
create database test2 ;
7133
CREATE VIEW v1_firstview AS SELECT * FROM test.tb2 ;
7135
AS SELECT v1_firstview.f59, v1_firstview.f60
7136
FROM v1_firstview INNER JOIN test.tb2 ON v1_firstview.f59 = test.tb2.f59 ;
7137
SELECT * FROM v1 order by f59,f60 limit 0,10;
7149
Drop database test2 ;
7152
--------------------------------------------------------------------------------
7154
Drop table if exists t1;
7155
Drop view if exists test.v1 ;
7156
Drop view if exists test.v1_1 ;
7157
Drop view if exists test.v1_1 ;
7158
Drop view if exists test.v1_main ;
7159
Create view test.v1 as Select f59, f60 FROM test.tb2;
7160
Select * from test.v1 order by f59,f60 limit 0,10;
7172
Create table t1(f59 int, f60 int);
7173
Insert into t1 values (90,507) ;
7174
Create view v1_1 as Select f59,f60 from t1 ;
7175
Select * from v1_1 ;
7179
as SELECT test.tb2.f59 FROM test.tb2 JOIN test.v1
7180
ON test.tb2.f59 = test.v1.f59;
7181
Select * from v1_main order by f59 limit 0,10;
7195
Drop view test.v1_1 ;
7196
Drop view test.v1_main ;
7198
Testcase 3.3.1.31 - 3.3.1.37 New Implementation
7199
--------------------------------------------------------------------------------
7201
DROP DATABASE IF EXISTS test2;
7202
DROP TABLE IF EXISTS t0,t1;
7203
DROP VIEW IF EXISTS t3,t4;
7204
CREATE DATABASE test2;
7205
CREATE TABLE test1.t0 (f1 VARCHAR(20));
7206
CREATE TABLE test1.t1 (f1 VARCHAR(20));
7207
CREATE TABLE test2.t0 (f1 VARCHAR(20));
7208
CREATE TABLE test2.t1 (f1 VARCHAR(20));
7209
CREATE VIEW test1.t2 AS SELECT * FROM test1.t0;
7210
CREATE VIEW test1.t3 AS SELECT * FROM test2.t0;
7211
CREATE VIEW test2.t2 AS SELECT * FROM test2.t0;
7212
CREATE VIEW test2.t3 AS SELECT * FROM test1.t0;
7213
INSERT INTO test1.t0 VALUES('test1.t0');
7214
INSERT INTO test1.t1 VALUES('test1.t1');
7215
INSERT INTO test2.t0 VALUES('test2.t0');
7216
INSERT INTO test2.t1 VALUES('test2.t1');
7217
CREATE OR REPLACE VIEW test.v1 AS
7218
SELECT ta.f1 AS col1,
7220
FROM test2.t3 ta, test2.t3 tb;
7221
SELECT * FROM test.v1;
7224
CREATE OR REPLACE VIEW test.v1 AS
7225
SELECT ta.f1 AS col1,
7227
FROM test2.t3 ta, test1.t3 tb;
7228
SELECT * FROM test.v1;
7231
CREATE OR REPLACE VIEW test.v1 AS
7232
SELECT ta.f1 AS col1,
7234
FROM test1.t3 ta, test2.t3 tb;
7235
SELECT * FROM test.v1;
7238
CREATE OR REPLACE VIEW test.v1 AS
7239
SELECT ta.f1 AS col1,
7241
FROM test1.t3 ta, test1.t3 tb;
7242
SELECT * FROM test.v1;
7245
CREATE OR REPLACE VIEW test.v1 AS
7246
SELECT ta.f1 AS col1,
7248
FROM test2.t3 ta, test2.t2 tb;
7249
SELECT * FROM test.v1;
7252
CREATE OR REPLACE VIEW test.v1 AS
7253
SELECT ta.f1 AS col1,
7255
FROM test2.t3 ta, test1.t2 tb;
7256
SELECT * FROM test.v1;
7259
CREATE OR REPLACE VIEW test.v1 AS
7260
SELECT ta.f1 AS col1,
7262
FROM test1.t3 ta, test2.t2 tb;
7263
SELECT * FROM test.v1;
7266
CREATE OR REPLACE VIEW test.v1 AS
7267
SELECT ta.f1 AS col1,
7269
FROM test1.t3 ta, test1.t2 tb;
7270
SELECT * FROM test.v1;
7273
CREATE OR REPLACE VIEW test.v1 AS
7274
SELECT ta.f1 AS col1,
7276
FROM test2.t3 ta, test2.t1 tb;
7277
SELECT * FROM test.v1;
7280
CREATE OR REPLACE VIEW test.v1 AS
7281
SELECT ta.f1 AS col1,
7283
FROM test2.t3 ta, test1.t1 tb;
7284
SELECT * FROM test.v1;
7287
CREATE OR REPLACE VIEW test.v1 AS
7288
SELECT ta.f1 AS col1,
7290
FROM test1.t3 ta, test2.t1 tb;
7291
SELECT * FROM test.v1;
7294
CREATE OR REPLACE VIEW test.v1 AS
7295
SELECT ta.f1 AS col1,
7297
FROM test1.t3 ta, test1.t1 tb;
7298
SELECT * FROM test.v1;
7301
CREATE OR REPLACE VIEW test.v1 AS
7302
SELECT ta.f1 AS col1,
7304
FROM test2.t2 ta, test2.t3 tb;
7305
SELECT * FROM test.v1;
7308
CREATE OR REPLACE VIEW test.v1 AS
7309
SELECT ta.f1 AS col1,
7311
FROM test2.t2 ta, test1.t3 tb;
7312
SELECT * FROM test.v1;
7315
CREATE OR REPLACE VIEW test.v1 AS
7316
SELECT ta.f1 AS col1,
7318
FROM test1.t2 ta, test2.t3 tb;
7319
SELECT * FROM test.v1;
7322
CREATE OR REPLACE VIEW test.v1 AS
7323
SELECT ta.f1 AS col1,
7325
FROM test1.t2 ta, test1.t3 tb;
7326
SELECT * FROM test.v1;
7329
CREATE OR REPLACE VIEW test.v1 AS
7330
SELECT ta.f1 AS col1,
7332
FROM test2.t2 ta, test2.t2 tb;
7333
SELECT * FROM test.v1;
7336
CREATE OR REPLACE VIEW test.v1 AS
7337
SELECT ta.f1 AS col1,
7339
FROM test2.t2 ta, test1.t2 tb;
7340
SELECT * FROM test.v1;
7343
CREATE OR REPLACE VIEW test.v1 AS
7344
SELECT ta.f1 AS col1,
7346
FROM test1.t2 ta, test2.t2 tb;
7347
SELECT * FROM test.v1;
7350
CREATE OR REPLACE VIEW test.v1 AS
7351
SELECT ta.f1 AS col1,
7353
FROM test1.t2 ta, test1.t2 tb;
7354
SELECT * FROM test.v1;
7357
CREATE OR REPLACE VIEW test.v1 AS
7358
SELECT ta.f1 AS col1,
7360
FROM test2.t2 ta, test2.t1 tb;
7361
SELECT * FROM test.v1;
7364
CREATE OR REPLACE VIEW test.v1 AS
7365
SELECT ta.f1 AS col1,
7367
FROM test2.t2 ta, test1.t1 tb;
7368
SELECT * FROM test.v1;
7371
CREATE OR REPLACE VIEW test.v1 AS
7372
SELECT ta.f1 AS col1,
7374
FROM test1.t2 ta, test2.t1 tb;
7375
SELECT * FROM test.v1;
7378
CREATE OR REPLACE VIEW test.v1 AS
7379
SELECT ta.f1 AS col1,
7381
FROM test1.t2 ta, test1.t1 tb;
7382
SELECT * FROM test.v1;
7385
CREATE OR REPLACE VIEW test.v1 AS
7386
SELECT ta.f1 AS col1,
7388
FROM test2.t1 ta, test2.t3 tb;
7389
SELECT * FROM test.v1;
7392
CREATE OR REPLACE VIEW test.v1 AS
7393
SELECT ta.f1 AS col1,
7395
FROM test2.t1 ta, test1.t3 tb;
7396
SELECT * FROM test.v1;
7399
CREATE OR REPLACE VIEW test.v1 AS
7400
SELECT ta.f1 AS col1,
7402
FROM test1.t1 ta, test2.t3 tb;
7403
SELECT * FROM test.v1;
7406
CREATE OR REPLACE VIEW test.v1 AS
7407
SELECT ta.f1 AS col1,
7409
FROM test1.t1 ta, test1.t3 tb;
7410
SELECT * FROM test.v1;
7413
CREATE OR REPLACE VIEW test.v1 AS
7414
SELECT ta.f1 AS col1,
7416
FROM test2.t1 ta, test2.t2 tb;
7417
SELECT * FROM test.v1;
7420
CREATE OR REPLACE VIEW test.v1 AS
7421
SELECT ta.f1 AS col1,
7423
FROM test2.t1 ta, test1.t2 tb;
7424
SELECT * FROM test.v1;
7427
CREATE OR REPLACE VIEW test.v1 AS
7428
SELECT ta.f1 AS col1,
7430
FROM test1.t1 ta, test2.t2 tb;
7431
SELECT * FROM test.v1;
7434
CREATE OR REPLACE VIEW test.v1 AS
7435
SELECT ta.f1 AS col1,
7437
FROM test1.t1 ta, test1.t2 tb;
7438
SELECT * FROM test.v1;
7441
CREATE OR REPLACE VIEW test.v1 AS
7442
SELECT ta.f1 AS col1,
7444
FROM test2.t1 ta, test2.t1 tb;
7445
SELECT * FROM test.v1;
7448
CREATE OR REPLACE VIEW test.v1 AS
7449
SELECT ta.f1 AS col1,
7451
FROM test2.t1 ta, test1.t1 tb;
7452
SELECT * FROM test.v1;
7455
CREATE OR REPLACE VIEW test.v1 AS
7456
SELECT ta.f1 AS col1,
7458
FROM test1.t1 ta, test2.t1 tb;
7459
SELECT * FROM test.v1;
7462
CREATE OR REPLACE VIEW test.v1 AS
7463
SELECT ta.f1 AS col1,
7465
FROM test1.t1 ta, test1.t1 tb;
7466
SELECT * FROM test.v1;
7471
--------------------------------------------------------------------------------
7472
Drop table if exists test1.t1 ;
7473
Drop view if exists test.v1 ;
7474
Drop view if exists test.v1_main;
7475
Drop view if exists test1.v1_1 ;
7476
Drop database if exists test3 ;
7477
Create view test.v1 as Select f59, f60 FROM test.tb2;
7478
Select * from test.v1 order by f59,f60 limit 20;
7500
Create table test1.t1 (f59 int,f60 int) ;
7501
Insert into test1.t1 values (199,507) ;
7502
Create view test1.v1_1 as Select f59,f60 from test1.t1 ;
7503
Select * from test1.v1_1 ;
7506
Create database test3 ;
7507
Create table test3.t1(f59 int,f60 int) ;
7508
Insert into test3.t1 values (1023,7670) ;
7509
Create view test3.v1_2 as Select f59,f60 from test3.t1 ;
7510
Select * from test3.v1_2 ;
7515
as SELECT test.tb2.f59 as f1, test1.v1_1.f59 as f2,
7516
test3.v1_2.f59 as f3
7517
FROM (test.tb2,test1.v1_1,test.v1) JOIN test3.v1_2
7518
ON (test.v1.f59 = test1.v1_1.f59) ;
7519
Select * from v1_main ;
7522
DROP VIEW test1.v1_1 ;
7523
DROP VIEW test.v1_main ;
7524
DROP DATABASE test3;
7527
--------------------------------------------------------------------------------
7528
Drop view if exists test.v1 ;
7530
AS Select f59 from (Select * FROM tb2 limit 20) tx ;
7531
ERROR HY000: View's SELECT contains a subquery in the FROM clause
7532
SELECT * FROM test.v1 order by f59 ;
7533
ERROR 42S02: Table 'test.v1' doesn't exist
7534
Drop view if exists test.v1 ;
7537
--------------------------------------------------------------------------------
7538
Drop view if exists test.v1 ;
7541
CREATE VIEW test.v1 AS SELECT @var1, @var2 ;
7542
ERROR HY000: View's SELECT contains a variable or parameter
7543
CREATE VIEW test.v1 AS SELECT @@global.sort_buffer_size;
7544
ERROR HY000: View's SELECT contains a variable or parameter
7545
Drop view if exists test.v1 ;
7548
--------------------------------------------------------------------------------
7549
Drop view if exists test.v1 ;
7550
Drop procedure if exists sp1 ;
7551
Create procedure sp1() DETERMINISTIC
7555
Create view test.v1 as SELECT * FROM tb2 WHERE f59 = x ;
7557
ERROR HY000: View's SELECT contains a variable or parameter
7559
ERROR 42000: PROCEDURE test.sp1 does not exist
7560
Drop view if exists test.v1 ;
7562
Note 1051 Unknown table 'test.v1'
7563
Drop procedure sp1 ;
7564
ERROR 42000: PROCEDURE test.sp1 does not exist
7567
--------------------------------------------------------------------------------
7568
Drop VIEW if exists test.v1 ;
7569
CREATE TEMPORARY VIEW test.v1 AS
7570
SELECT * FROM test.tb2 limit 2 ;
7571
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
7572
SELECT * FROM test.tb2 limit 2' at line 1
7573
CREATE OR REPLACE TEMPORARY VIEW test.v1 AS
7574
SELECT * FROM test.tb2 limit 2 ;
7575
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
7576
SELECT * FROM test.tb2 limit 2' at line 1
7577
Drop view if exists test.v1 ;
7581
--------------------------------------------------------------------------------
7582
Drop view if exists test.v1 ;
7583
CREATE VIEW test.v1 AS SELECT f59,f60 FROM test.tb2;
7584
INSERT INTO test.v1 values(122,432);
7585
SELECT * FROM test.tb2 where f59 = 122 and f60 = 432 limit 0,20;
7606
f79 00000000000000000007.7
7607
f80 00000000000000000008.8
7625
f98 00000000000000000008.8
7627
f100 00000000000000000008.8
7630
f103 0002-02-02 00:00:00
7631
f104 2000-12-31 23:59:59
7637
UPDATE test.v1 SET f59 = 3000 WHERE test.v1.f59 = 122 ;
7638
SELECT * FROM test.tb2 where f59 = 3000 limit 0,20;
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
7691
where test.v1.f59 = 3000 and test.v1.f60 = 432;
7692
SELECT * FROM test.tb2 where f59 = 3000 and f60 = 432;
7693
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
7697
--------------------------------------------------------------------------------
7698
Drop view if exists test.v1 ;
7699
CREATE VIEW test.v1 AS SELECT f59,f60 FROM test.tb2 limit 100;
7700
INSERT INTO test.v1 values(31, 32, 33) ;
7701
ERROR HY000: The target table v1 of the INSERT is not insertable-into
7705
--------------------------------------------------------------------------------
7706
Drop view if exists test.v1 ;
7707
CREATE VIEW test.v1 AS SELECT * FROM test.tb2 where f59 = 04;
7708
UPDATE test.v1 SET f59 = 30 where F59 = 04 ;
7710
info: Rows matched: 2 Changed: 2 Warnings: 0
7711
SELECT * FROM test.v1 where f59 = 30 order by f59;
7712
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
7713
SELECT * FROM test.tb2 where f59 = 30 ;
7717
f62 0000000000000000000000000000000000000000000000000000000000000004
7719
f64 0000000000000000000000000000000000000000000000000000000000000004
7721
f66 3.300000000000000000000000000000
7723
f68 3.300000000000000000000000000000
7725
f70 000000000000000000000000000000003.300000000000000000000000000000
7727
f72 000000000000000000000000000000003.300000000000000000000000000000
7728
f73 -1.175494347e-38
7730
f75 00000001.175494355e-38
7731
f76 00000001.175494355e-38
7732
f77 -1.175494347e-38
7734
f79 00000001.175494355e-38
7735
f80 00000001.175494355e-38
7749
f94 -1.175494347e-38
7753
f98 00000001.175494355e-38
7755
f100 00000001.175494355e-38
7758
f103 1970-01-05 00:00:04
7759
f104 1970-01-05 00:00:04
7785
f79 00000000000000000007.7
7786
f80 00000000000000000008.8
7804
f98 00000000000000000008.8
7806
f100 00000000000000000008.8
7809
f103 0002-02-02 00:00:00
7810
f104 2000-12-31 23:59:59
7816
UPDATE tb2 SET f59 = 100 where f59 = 30 ;
7818
info: Rows matched: 2 Changed: 2 Warnings: 0
7819
SELECT * FROM tb2 where f59 = 100 ;
7823
f62 0000000000000000000000000000000000000000000000000000000000000004
7825
f64 0000000000000000000000000000000000000000000000000000000000000004
7827
f66 3.300000000000000000000000000000
7829
f68 3.300000000000000000000000000000
7831
f70 000000000000000000000000000000003.300000000000000000000000000000
7833
f72 000000000000000000000000000000003.300000000000000000000000000000
7834
f73 -1.175494347e-38
7836
f75 00000001.175494355e-38
7837
f76 00000001.175494355e-38
7838
f77 -1.175494347e-38
7840
f79 00000001.175494355e-38
7841
f80 00000001.175494355e-38
7855
f94 -1.175494347e-38
7859
f98 00000001.175494355e-38
7861
f100 00000001.175494355e-38
7864
f103 1970-01-05 00:00:04
7865
f104 1970-01-05 00:00:04
7891
f79 00000000000000000007.7
7892
f80 00000000000000000008.8
7910
f98 00000000000000000008.8
7912
f100 00000000000000000008.8
7915
f103 0002-02-02 00:00:00
7916
f104 2000-12-31 23:59:59
7922
SELECT * FROM test.v1 order by f59 ;
7923
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
7924
drop view if exists test.v1 ;
7925
Drop TABLE IF EXISTS test.t1 ;
7926
Drop VIEW IF EXISTS test.v1 ;
7927
CREATE TABLE t1 (f1 BIGINT, f2 VARCHAR(20), PRIMARY KEY(f1))
7929
INSERT INTO t1 VALUES(1,'one');
7930
INSERT INTO t1 VALUES(2,'two');
7931
INSERT INTO t1 VALUES(3,'three');
7932
INSERT INTO t1 VALUES(5,'five');
7933
CREATE VIEW v1 AS SELECT * FROM t1 WHERE f1 BETWEEN 2 AND 4;
7934
SELECT COUNT(*) FROM v1 WHERE f1 = 2;
7937
SELECT COUNT(*) FROM v1 WHERE f1 = 4;
7940
SELECT COUNT(*) FROM v1 WHERE f1 = 5;
7943
SELECT COUNT(*) FROM v1 WHERE f1 = 10;
7946
INSERT INTO t1 VALUES(4,'four');
7947
DELETE FROM v1 WHERE f1 = 3;
7949
DELETE FROM v1 WHERE f1 = 5;
7951
SELECT * FROM t1 ORDER BY f1;
7957
SELECT * FROM v1 ORDER BY f1;
7961
INSERT INTO v1 VALUES(2,'two');
7962
ERROR 23000: Duplicate entry '2' for key 'PRIMARY'
7963
INSERT INTO v1 VALUES(3,'three');
7965
INSERT INTO v1 VALUES(6,'six');
7967
SELECT * FROM t1 ORDER BY f1;
7975
SELECT * FROM v1 ORDER BY f1;
7980
UPDATE v1 SET f1 = 2 WHERE f1 = 3;
7981
ERROR 23000: Duplicate entry '2' for key 'PRIMARY'
7982
UPDATE v1 SET f2 = 'number' WHERE f1 = 3;
7984
info: Rows matched: 1 Changed: 1 Warnings: 0
7985
UPDATE v1 SET f1 = 10 WHERE f1 = 3;
7987
info: Rows matched: 1 Changed: 1 Warnings: 0
7988
UPDATE v1 SET f2 = 'number' WHERE f1 = 1;
7992
--------------------------------------------------------------------------------
7993
Drop view if exists test.v1 ;
7994
CREATE VIEW test.v1 AS SELECT f59,f60
7995
FROM test.tb2 where f59 = 195 WITH CHECK OPTION ;
7996
UPDATE test.v1 SET f59 = 198 where f59=195 ;
7997
ERROR HY000: CHECK OPTION failed 'test.v1'
7998
SELECT * FROM test.v1 order by f59 ;
8001
drop view if exists test.v1 ;
8004
--------------------------------------------------------------------------------
8005
Drop view if exists test.v1 ;
8006
Drop view if exists test.v2 ;
8007
CREATE VIEW test.v1 AS SELECT f59,f60
8008
FROM test.tb2 where F59 = 0987 WITH LOCAL CHECK OPTION ;
8009
CREATE VIEW test.v2 as SELECT * FROM test.v1 ;
8010
UPDATE test.v1 SET F59 = 919 where f59 = 0987 ;
8011
ERROR HY000: CHECK OPTION failed 'test.v1'
8012
SELECT * FROM test.v1 order by f59 ;
8015
UPDATE test.v2 SET F59 = 9879 where f59 = 919 ;
8016
SELECT * FROM tb2 where f59 = 9879 ;
8017
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
8018
drop view if exists v1 ;
8019
drop view if exists v2 ;
8022
--------------------------------------------------------------------------------
8023
DROP TABLE IF EXISTS test.t1;
8024
DROP VIEW IF EXISTS test.v1;
8025
CREATE TABLE t1 (f1 ENUM('A', 'B', 'C') NOT NULL, f2 INTEGER)
8027
INSERT INTO t1 VALUES ('A', 1);
8028
SELECT * FROM t1 order by f1, f2;
8031
CREATE VIEW v1 AS SELECT * FROM t1 WHERE f2 BETWEEN 1 AND 2
8032
WITH CASCADED CHECK OPTION ;
8033
SELECT * FROM v1 order by f1, f2;
8036
UPDATE v1 SET f2 = 2 WHERE f2 = 1;
8038
info: Rows matched: 1 Changed: 1 Warnings: 0
8039
INSERT INTO v1 VALUES('B',2);
8041
SELECT * FROM v1 order by f1, f2;
8045
UPDATE v1 SET f2 = 4;
8046
ERROR HY000: CHECK OPTION failed 'test.v1'
8047
INSERT INTO v1 VALUES('B',3);
8048
ERROR HY000: CHECK OPTION failed 'test.v1'
8049
SELECT * FROM v1 order by f1, f2;
8055
--------------------------------------------------------------------------------
8056
Drop table if exists test.t1 ;
8057
Drop view if exists test.v1 ;
8058
Drop view if exists test.v2 ;
8059
Drop view if exists test.v3 ;
8060
Create table test.t1 (f59 INT, f60 INT) ;
8061
Insert into test.t1 values (100,4234);
8062
Insert into test.t1 values (290,6624);
8063
Insert into test.t1 values (410,765);
8064
Insert into test.t1 values (300,433334);
8065
Insert into test.t1 values (800,9788);
8066
Insert into test.t1 values (501,9866);
8067
Create view test.v1 as select f59
8068
FROM test.t1 where f59<500 with check option ;
8069
Create view test.v2 as select *
8070
from test.v1 where f59>0 with local check option ;
8071
Create view test.v3 as select *
8072
from test.v1 where f59>0 with cascaded check option ;
8073
Insert into test.v2 values(23) ;
8074
Insert into test.v3 values(24) ;
8075
drop view if exists test.v1 ;
8076
drop view if exists test.v2 ;
8077
drop view if exists test.v3 ;
8080
--------------------------------------------------------------------------------
8082
DROP TABLE IF EXISTS test.t1 ;
8083
DROP TABLE IF EXISTS test.t1_results ;
8084
DROP VIEW IF EXISTS test.v1;
8085
DROP VIEW IF EXISTS test.v2;
8086
DROP VIEW IF EXISTS test.v3;
8087
CREATE TABLE t1 (f1 INTEGER, f2 CHAR(20));
8088
CREATE TABLE t1_results (v3_to_v1_options VARCHAR(100), statement VARCHAR(10),
8089
v3_to_v1_violation VARCHAR(20), errno CHAR(10));
8090
CREATE VIEW v1 AS SELECT f1, f2
8091
FROM t1 WHERE f1 BETWEEN 0 AND 10 WITH LOCAL CHECK OPTION ;
8092
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
8093
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH LOCAL CHECK OPTION ;
8094
option_variant WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION
8095
option_variant --------------------------------------------------------------------------------
8096
INSERT INTO t1 VALUES(16, 'sixteen');
8097
INSERT INTO t1 VALUES(0, 'zero');
8098
INSERT INTO t1 VALUES(7, 'seven');
8099
INSERT INTO t1 VALUES(8, 'eight');
8119
INSERT INTO t1 VALUES(16, 'sixteen');
8120
INSERT INTO t1 VALUES(0, 'zero');
8121
INSERT INTO t1 VALUES(7, 'seven');
8122
INSERT INTO t1 VALUES(8, 'eight');
8123
DELETE FROM v3 WHERE my_col1 = 16;
8125
DELETE FROM v3 WHERE my_col1 = 0;
8127
DELETE FROM v3 WHERE my_col1 = 7;
8129
DELETE FROM v3 WHERE my_col1 = 8;
8137
INSERT INTO t1 VALUES(16, 'sixteen');
8138
INSERT INTO t1 VALUES(0, 'zero');
8139
INSERT INTO t1 VALUES(7, 'seven');
8140
INSERT INTO t1 VALUES(8, 'eight');
8141
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
8143
info: Rows matched: 0 Changed: 0 Warnings: 0
8144
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
8146
info: Rows matched: 0 Changed: 0 Warnings: 0
8147
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
8149
info: Rows matched: 0 Changed: 0 Warnings: 0
8150
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
8152
info: Rows matched: 1 Changed: 1 Warnings: 0
8160
INSERT INTO t1 VALUES(8, 'eight');
8161
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
8162
ERROR HY000: CHECK OPTION failed 'test.v3'
8167
INSERT INTO t1 VALUES(8, 'eight');
8168
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
8170
info: Rows matched: 1 Changed: 1 Warnings: 0
8175
INSERT INTO t1 VALUES(8, 'eight');
8176
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
8178
info: Rows matched: 1 Changed: 1 Warnings: 0
8183
INSERT INTO t1 VALUES(8, 'eight');
8184
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
8186
info: Rows matched: 1 Changed: 1 Warnings: 0
8191
INSERT INTO v3 VALUES(16, 'sixteen');
8193
INSERT INTO v3 VALUES(0, 'zero');
8195
INSERT INTO v3 VALUES(7, 'seven');
8196
ERROR HY000: CHECK OPTION failed 'test.v3'
8197
INSERT INTO v3 VALUES(8, 'eight');
8206
option_variant WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION
8207
option_variant --------------------------------------------------------------------------------
8208
INSERT INTO t1 VALUES(16, 'sixteen');
8209
INSERT INTO t1 VALUES(0, 'zero');
8210
INSERT INTO t1 VALUES(7, 'seven');
8211
INSERT INTO t1 VALUES(8, 'eight');
8231
INSERT INTO t1 VALUES(16, 'sixteen');
8232
INSERT INTO t1 VALUES(0, 'zero');
8233
INSERT INTO t1 VALUES(7, 'seven');
8234
INSERT INTO t1 VALUES(8, 'eight');
8235
DELETE FROM v3 WHERE my_col1 = 16;
8237
DELETE FROM v3 WHERE my_col1 = 0;
8239
DELETE FROM v3 WHERE my_col1 = 7;
8241
DELETE FROM v3 WHERE my_col1 = 8;
8249
INSERT INTO t1 VALUES(16, 'sixteen');
8250
INSERT INTO t1 VALUES(0, 'zero');
8251
INSERT INTO t1 VALUES(7, 'seven');
8252
INSERT INTO t1 VALUES(8, 'eight');
8253
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
8255
info: Rows matched: 0 Changed: 0 Warnings: 0
8256
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
8258
info: Rows matched: 0 Changed: 0 Warnings: 0
8259
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
8261
info: Rows matched: 0 Changed: 0 Warnings: 0
8262
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
8264
info: Rows matched: 1 Changed: 1 Warnings: 0
8272
INSERT INTO t1 VALUES(8, 'eight');
8273
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
8274
ERROR HY000: CHECK OPTION failed 'test.v3'
8279
INSERT INTO t1 VALUES(8, 'eight');
8280
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
8281
ERROR HY000: CHECK OPTION failed 'test.v3'
8286
INSERT INTO t1 VALUES(8, 'eight');
8287
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
8288
ERROR HY000: CHECK OPTION failed 'test.v3'
8293
INSERT INTO t1 VALUES(8, 'eight');
8294
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
8296
info: Rows matched: 1 Changed: 1 Warnings: 0
8301
INSERT INTO v3 VALUES(16, 'sixteen');
8302
ERROR HY000: CHECK OPTION failed 'test.v3'
8303
INSERT INTO v3 VALUES(0, 'zero');
8304
ERROR HY000: CHECK OPTION failed 'test.v3'
8305
INSERT INTO v3 VALUES(7, 'seven');
8306
ERROR HY000: CHECK OPTION failed 'test.v3'
8307
INSERT INTO v3 VALUES(8, 'eight');
8314
option_variant WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION
8315
option_variant --------------------------------------------------------------------------------
8316
INSERT INTO t1 VALUES(16, 'sixteen');
8317
INSERT INTO t1 VALUES(0, 'zero');
8318
INSERT INTO t1 VALUES(7, 'seven');
8319
INSERT INTO t1 VALUES(8, 'eight');
8339
INSERT INTO t1 VALUES(16, 'sixteen');
8340
INSERT INTO t1 VALUES(0, 'zero');
8341
INSERT INTO t1 VALUES(7, 'seven');
8342
INSERT INTO t1 VALUES(8, 'eight');
8343
DELETE FROM v3 WHERE my_col1 = 16;
8345
DELETE FROM v3 WHERE my_col1 = 0;
8347
DELETE FROM v3 WHERE my_col1 = 7;
8349
DELETE FROM v3 WHERE my_col1 = 8;
8357
INSERT INTO t1 VALUES(16, 'sixteen');
8358
INSERT INTO t1 VALUES(0, 'zero');
8359
INSERT INTO t1 VALUES(7, 'seven');
8360
INSERT INTO t1 VALUES(8, 'eight');
8361
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
8363
info: Rows matched: 0 Changed: 0 Warnings: 0
8364
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
8366
info: Rows matched: 0 Changed: 0 Warnings: 0
8367
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
8369
info: Rows matched: 0 Changed: 0 Warnings: 0
8370
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
8372
info: Rows matched: 1 Changed: 1 Warnings: 0
8380
INSERT INTO t1 VALUES(8, 'eight');
8381
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
8382
ERROR HY000: CHECK OPTION failed 'test.v3'
8387
INSERT INTO t1 VALUES(8, 'eight');
8388
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
8389
ERROR HY000: CHECK OPTION failed 'test.v3'
8394
INSERT INTO t1 VALUES(8, 'eight');
8395
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
8396
ERROR HY000: CHECK OPTION failed 'test.v3'
8401
INSERT INTO t1 VALUES(8, 'eight');
8402
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
8404
info: Rows matched: 1 Changed: 1 Warnings: 0
8409
INSERT INTO v3 VALUES(16, 'sixteen');
8410
ERROR HY000: CHECK OPTION failed 'test.v3'
8411
INSERT INTO v3 VALUES(0, 'zero');
8412
ERROR HY000: CHECK OPTION failed 'test.v3'
8413
INSERT INTO v3 VALUES(7, 'seven');
8414
ERROR HY000: CHECK OPTION failed 'test.v3'
8415
INSERT INTO v3 VALUES(8, 'eight');
8422
option_variant <nothing> - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION
8423
option_variant --------------------------------------------------------------------------------
8424
INSERT INTO t1 VALUES(16, 'sixteen');
8425
INSERT INTO t1 VALUES(0, 'zero');
8426
INSERT INTO t1 VALUES(7, 'seven');
8427
INSERT INTO t1 VALUES(8, 'eight');
8447
INSERT INTO t1 VALUES(16, 'sixteen');
8448
INSERT INTO t1 VALUES(0, 'zero');
8449
INSERT INTO t1 VALUES(7, 'seven');
8450
INSERT INTO t1 VALUES(8, 'eight');
8451
DELETE FROM v3 WHERE my_col1 = 16;
8453
DELETE FROM v3 WHERE my_col1 = 0;
8455
DELETE FROM v3 WHERE my_col1 = 7;
8457
DELETE FROM v3 WHERE my_col1 = 8;
8465
INSERT INTO t1 VALUES(16, 'sixteen');
8466
INSERT INTO t1 VALUES(0, 'zero');
8467
INSERT INTO t1 VALUES(7, 'seven');
8468
INSERT INTO t1 VALUES(8, 'eight');
8469
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
8471
info: Rows matched: 0 Changed: 0 Warnings: 0
8472
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
8474
info: Rows matched: 0 Changed: 0 Warnings: 0
8475
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
8477
info: Rows matched: 0 Changed: 0 Warnings: 0
8478
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
8480
info: Rows matched: 1 Changed: 1 Warnings: 0
8488
INSERT INTO t1 VALUES(8, 'eight');
8489
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
8491
info: Rows matched: 1 Changed: 1 Warnings: 0
8496
INSERT INTO t1 VALUES(8, 'eight');
8497
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
8499
info: Rows matched: 1 Changed: 1 Warnings: 0
8504
INSERT INTO t1 VALUES(8, 'eight');
8505
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
8507
info: Rows matched: 1 Changed: 1 Warnings: 0
8512
INSERT INTO t1 VALUES(8, 'eight');
8513
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
8515
info: Rows matched: 1 Changed: 1 Warnings: 0
8520
INSERT INTO v3 VALUES(16, 'sixteen');
8522
INSERT INTO v3 VALUES(0, 'zero');
8524
INSERT INTO v3 VALUES(7, 'seven');
8526
INSERT INTO v3 VALUES(8, 'eight');
8537
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
8538
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH CASCADED CHECK OPTION ;
8539
option_variant WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION
8540
option_variant --------------------------------------------------------------------------------
8541
INSERT INTO t1 VALUES(16, 'sixteen');
8542
INSERT INTO t1 VALUES(0, 'zero');
8543
INSERT INTO t1 VALUES(7, 'seven');
8544
INSERT INTO t1 VALUES(8, 'eight');
8564
INSERT INTO t1 VALUES(16, 'sixteen');
8565
INSERT INTO t1 VALUES(0, 'zero');
8566
INSERT INTO t1 VALUES(7, 'seven');
8567
INSERT INTO t1 VALUES(8, 'eight');
8568
DELETE FROM v3 WHERE my_col1 = 16;
8570
DELETE FROM v3 WHERE my_col1 = 0;
8572
DELETE FROM v3 WHERE my_col1 = 7;
8574
DELETE FROM v3 WHERE my_col1 = 8;
8582
INSERT INTO t1 VALUES(16, 'sixteen');
8583
INSERT INTO t1 VALUES(0, 'zero');
8584
INSERT INTO t1 VALUES(7, 'seven');
8585
INSERT INTO t1 VALUES(8, 'eight');
8586
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
8588
info: Rows matched: 0 Changed: 0 Warnings: 0
8589
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
8591
info: Rows matched: 0 Changed: 0 Warnings: 0
8592
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
8594
info: Rows matched: 0 Changed: 0 Warnings: 0
8595
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
8597
info: Rows matched: 1 Changed: 1 Warnings: 0
8605
INSERT INTO t1 VALUES(8, 'eight');
8606
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
8607
ERROR HY000: CHECK OPTION failed 'test.v3'
8612
INSERT INTO t1 VALUES(8, 'eight');
8613
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
8615
info: Rows matched: 1 Changed: 1 Warnings: 0
8620
INSERT INTO t1 VALUES(8, 'eight');
8621
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
8623
info: Rows matched: 1 Changed: 1 Warnings: 0
8628
INSERT INTO t1 VALUES(8, 'eight');
8629
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
8631
info: Rows matched: 1 Changed: 1 Warnings: 0
8636
INSERT INTO v3 VALUES(16, 'sixteen');
8638
INSERT INTO v3 VALUES(0, 'zero');
8640
INSERT INTO v3 VALUES(7, 'seven');
8641
ERROR HY000: CHECK OPTION failed 'test.v3'
8642
INSERT INTO v3 VALUES(8, 'eight');
8651
option_variant WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION
8652
option_variant --------------------------------------------------------------------------------
8653
INSERT INTO t1 VALUES(16, 'sixteen');
8654
INSERT INTO t1 VALUES(0, 'zero');
8655
INSERT INTO t1 VALUES(7, 'seven');
8656
INSERT INTO t1 VALUES(8, 'eight');
8676
INSERT INTO t1 VALUES(16, 'sixteen');
8677
INSERT INTO t1 VALUES(0, 'zero');
8678
INSERT INTO t1 VALUES(7, 'seven');
8679
INSERT INTO t1 VALUES(8, 'eight');
8680
DELETE FROM v3 WHERE my_col1 = 16;
8682
DELETE FROM v3 WHERE my_col1 = 0;
8684
DELETE FROM v3 WHERE my_col1 = 7;
8686
DELETE FROM v3 WHERE my_col1 = 8;
8694
INSERT INTO t1 VALUES(16, 'sixteen');
8695
INSERT INTO t1 VALUES(0, 'zero');
8696
INSERT INTO t1 VALUES(7, 'seven');
8697
INSERT INTO t1 VALUES(8, 'eight');
8698
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
8700
info: Rows matched: 0 Changed: 0 Warnings: 0
8701
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
8703
info: Rows matched: 0 Changed: 0 Warnings: 0
8704
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
8706
info: Rows matched: 0 Changed: 0 Warnings: 0
8707
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
8709
info: Rows matched: 1 Changed: 1 Warnings: 0
8717
INSERT INTO t1 VALUES(8, 'eight');
8718
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
8719
ERROR HY000: CHECK OPTION failed 'test.v3'
8724
INSERT INTO t1 VALUES(8, 'eight');
8725
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
8726
ERROR HY000: CHECK OPTION failed 'test.v3'
8731
INSERT INTO t1 VALUES(8, 'eight');
8732
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
8733
ERROR HY000: CHECK OPTION failed 'test.v3'
8738
INSERT INTO t1 VALUES(8, 'eight');
8739
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
8741
info: Rows matched: 1 Changed: 1 Warnings: 0
8746
INSERT INTO v3 VALUES(16, 'sixteen');
8747
ERROR HY000: CHECK OPTION failed 'test.v3'
8748
INSERT INTO v3 VALUES(0, 'zero');
8749
ERROR HY000: CHECK OPTION failed 'test.v3'
8750
INSERT INTO v3 VALUES(7, 'seven');
8751
ERROR HY000: CHECK OPTION failed 'test.v3'
8752
INSERT INTO v3 VALUES(8, 'eight');
8759
option_variant WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION
8760
option_variant --------------------------------------------------------------------------------
8761
INSERT INTO t1 VALUES(16, 'sixteen');
8762
INSERT INTO t1 VALUES(0, 'zero');
8763
INSERT INTO t1 VALUES(7, 'seven');
8764
INSERT INTO t1 VALUES(8, 'eight');
8784
INSERT INTO t1 VALUES(16, 'sixteen');
8785
INSERT INTO t1 VALUES(0, 'zero');
8786
INSERT INTO t1 VALUES(7, 'seven');
8787
INSERT INTO t1 VALUES(8, 'eight');
8788
DELETE FROM v3 WHERE my_col1 = 16;
8790
DELETE FROM v3 WHERE my_col1 = 0;
8792
DELETE FROM v3 WHERE my_col1 = 7;
8794
DELETE FROM v3 WHERE my_col1 = 8;
8802
INSERT INTO t1 VALUES(16, 'sixteen');
8803
INSERT INTO t1 VALUES(0, 'zero');
8804
INSERT INTO t1 VALUES(7, 'seven');
8805
INSERT INTO t1 VALUES(8, 'eight');
8806
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
8808
info: Rows matched: 0 Changed: 0 Warnings: 0
8809
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
8811
info: Rows matched: 0 Changed: 0 Warnings: 0
8812
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
8814
info: Rows matched: 0 Changed: 0 Warnings: 0
8815
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
8817
info: Rows matched: 1 Changed: 1 Warnings: 0
8825
INSERT INTO t1 VALUES(8, 'eight');
8826
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
8827
ERROR HY000: CHECK OPTION failed 'test.v3'
8832
INSERT INTO t1 VALUES(8, 'eight');
8833
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
8834
ERROR HY000: CHECK OPTION failed 'test.v3'
8839
INSERT INTO t1 VALUES(8, 'eight');
8840
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
8841
ERROR HY000: CHECK OPTION failed 'test.v3'
8846
INSERT INTO t1 VALUES(8, 'eight');
8847
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
8849
info: Rows matched: 1 Changed: 1 Warnings: 0
8854
INSERT INTO v3 VALUES(16, 'sixteen');
8855
ERROR HY000: CHECK OPTION failed 'test.v3'
8856
INSERT INTO v3 VALUES(0, 'zero');
8857
ERROR HY000: CHECK OPTION failed 'test.v3'
8858
INSERT INTO v3 VALUES(7, 'seven');
8859
ERROR HY000: CHECK OPTION failed 'test.v3'
8860
INSERT INTO v3 VALUES(8, 'eight');
8867
option_variant <nothing> - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION
8868
option_variant --------------------------------------------------------------------------------
8869
INSERT INTO t1 VALUES(16, 'sixteen');
8870
INSERT INTO t1 VALUES(0, 'zero');
8871
INSERT INTO t1 VALUES(7, 'seven');
8872
INSERT INTO t1 VALUES(8, 'eight');
8892
INSERT INTO t1 VALUES(16, 'sixteen');
8893
INSERT INTO t1 VALUES(0, 'zero');
8894
INSERT INTO t1 VALUES(7, 'seven');
8895
INSERT INTO t1 VALUES(8, 'eight');
8896
DELETE FROM v3 WHERE my_col1 = 16;
8898
DELETE FROM v3 WHERE my_col1 = 0;
8900
DELETE FROM v3 WHERE my_col1 = 7;
8902
DELETE FROM v3 WHERE my_col1 = 8;
8910
INSERT INTO t1 VALUES(16, 'sixteen');
8911
INSERT INTO t1 VALUES(0, 'zero');
8912
INSERT INTO t1 VALUES(7, 'seven');
8913
INSERT INTO t1 VALUES(8, 'eight');
8914
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
8916
info: Rows matched: 0 Changed: 0 Warnings: 0
8917
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
8919
info: Rows matched: 0 Changed: 0 Warnings: 0
8920
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
8922
info: Rows matched: 0 Changed: 0 Warnings: 0
8923
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
8925
info: Rows matched: 1 Changed: 1 Warnings: 0
8933
INSERT INTO t1 VALUES(8, 'eight');
8934
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
8936
info: Rows matched: 1 Changed: 1 Warnings: 0
8941
INSERT INTO t1 VALUES(8, 'eight');
8942
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
8944
info: Rows matched: 1 Changed: 1 Warnings: 0
8949
INSERT INTO t1 VALUES(8, 'eight');
8950
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
8952
info: Rows matched: 1 Changed: 1 Warnings: 0
8957
INSERT INTO t1 VALUES(8, 'eight');
8958
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
8960
info: Rows matched: 1 Changed: 1 Warnings: 0
8965
INSERT INTO v3 VALUES(16, 'sixteen');
8967
INSERT INTO v3 VALUES(0, 'zero');
8969
INSERT INTO v3 VALUES(7, 'seven');
8971
INSERT INTO v3 VALUES(8, 'eight');
8982
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
8983
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH CHECK OPTION ;
8984
option_variant WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION
8985
option_variant --------------------------------------------------------------------------------
8986
INSERT INTO t1 VALUES(16, 'sixteen');
8987
INSERT INTO t1 VALUES(0, 'zero');
8988
INSERT INTO t1 VALUES(7, 'seven');
8989
INSERT INTO t1 VALUES(8, 'eight');
9009
INSERT INTO t1 VALUES(16, 'sixteen');
9010
INSERT INTO t1 VALUES(0, 'zero');
9011
INSERT INTO t1 VALUES(7, 'seven');
9012
INSERT INTO t1 VALUES(8, 'eight');
9013
DELETE FROM v3 WHERE my_col1 = 16;
9015
DELETE FROM v3 WHERE my_col1 = 0;
9017
DELETE FROM v3 WHERE my_col1 = 7;
9019
DELETE FROM v3 WHERE my_col1 = 8;
9027
INSERT INTO t1 VALUES(16, 'sixteen');
9028
INSERT INTO t1 VALUES(0, 'zero');
9029
INSERT INTO t1 VALUES(7, 'seven');
9030
INSERT INTO t1 VALUES(8, 'eight');
9031
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
9033
info: Rows matched: 0 Changed: 0 Warnings: 0
9034
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
9036
info: Rows matched: 0 Changed: 0 Warnings: 0
9037
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
9039
info: Rows matched: 0 Changed: 0 Warnings: 0
9040
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
9042
info: Rows matched: 1 Changed: 1 Warnings: 0
9050
INSERT INTO t1 VALUES(8, 'eight');
9051
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
9052
ERROR HY000: CHECK OPTION failed 'test.v3'
9057
INSERT INTO t1 VALUES(8, 'eight');
9058
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
9060
info: Rows matched: 1 Changed: 1 Warnings: 0
9065
INSERT INTO t1 VALUES(8, 'eight');
9066
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
9068
info: Rows matched: 1 Changed: 1 Warnings: 0
9073
INSERT INTO t1 VALUES(8, 'eight');
9074
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
9076
info: Rows matched: 1 Changed: 1 Warnings: 0
9081
INSERT INTO v3 VALUES(16, 'sixteen');
9083
INSERT INTO v3 VALUES(0, 'zero');
9085
INSERT INTO v3 VALUES(7, 'seven');
9086
ERROR HY000: CHECK OPTION failed 'test.v3'
9087
INSERT INTO v3 VALUES(8, 'eight');
9096
option_variant WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION
9097
option_variant --------------------------------------------------------------------------------
9098
INSERT INTO t1 VALUES(16, 'sixteen');
9099
INSERT INTO t1 VALUES(0, 'zero');
9100
INSERT INTO t1 VALUES(7, 'seven');
9101
INSERT INTO t1 VALUES(8, 'eight');
9121
INSERT INTO t1 VALUES(16, 'sixteen');
9122
INSERT INTO t1 VALUES(0, 'zero');
9123
INSERT INTO t1 VALUES(7, 'seven');
9124
INSERT INTO t1 VALUES(8, 'eight');
9125
DELETE FROM v3 WHERE my_col1 = 16;
9127
DELETE FROM v3 WHERE my_col1 = 0;
9129
DELETE FROM v3 WHERE my_col1 = 7;
9131
DELETE FROM v3 WHERE my_col1 = 8;
9139
INSERT INTO t1 VALUES(16, 'sixteen');
9140
INSERT INTO t1 VALUES(0, 'zero');
9141
INSERT INTO t1 VALUES(7, 'seven');
9142
INSERT INTO t1 VALUES(8, 'eight');
9143
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
9145
info: Rows matched: 0 Changed: 0 Warnings: 0
9146
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
9148
info: Rows matched: 0 Changed: 0 Warnings: 0
9149
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
9151
info: Rows matched: 0 Changed: 0 Warnings: 0
9152
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
9154
info: Rows matched: 1 Changed: 1 Warnings: 0
9162
INSERT INTO t1 VALUES(8, 'eight');
9163
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
9164
ERROR HY000: CHECK OPTION failed 'test.v3'
9169
INSERT INTO t1 VALUES(8, 'eight');
9170
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
9171
ERROR HY000: CHECK OPTION failed 'test.v3'
9176
INSERT INTO t1 VALUES(8, 'eight');
9177
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
9178
ERROR HY000: CHECK OPTION failed 'test.v3'
9183
INSERT INTO t1 VALUES(8, 'eight');
9184
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
9186
info: Rows matched: 1 Changed: 1 Warnings: 0
9191
INSERT INTO v3 VALUES(16, 'sixteen');
9192
ERROR HY000: CHECK OPTION failed 'test.v3'
9193
INSERT INTO v3 VALUES(0, 'zero');
9194
ERROR HY000: CHECK OPTION failed 'test.v3'
9195
INSERT INTO v3 VALUES(7, 'seven');
9196
ERROR HY000: CHECK OPTION failed 'test.v3'
9197
INSERT INTO v3 VALUES(8, 'eight');
9204
option_variant WITH CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION
9205
option_variant --------------------------------------------------------------------------------
9206
INSERT INTO t1 VALUES(16, 'sixteen');
9207
INSERT INTO t1 VALUES(0, 'zero');
9208
INSERT INTO t1 VALUES(7, 'seven');
9209
INSERT INTO t1 VALUES(8, 'eight');
9229
INSERT INTO t1 VALUES(16, 'sixteen');
9230
INSERT INTO t1 VALUES(0, 'zero');
9231
INSERT INTO t1 VALUES(7, 'seven');
9232
INSERT INTO t1 VALUES(8, 'eight');
9233
DELETE FROM v3 WHERE my_col1 = 16;
9235
DELETE FROM v3 WHERE my_col1 = 0;
9237
DELETE FROM v3 WHERE my_col1 = 7;
9239
DELETE FROM v3 WHERE my_col1 = 8;
9247
INSERT INTO t1 VALUES(16, 'sixteen');
9248
INSERT INTO t1 VALUES(0, 'zero');
9249
INSERT INTO t1 VALUES(7, 'seven');
9250
INSERT INTO t1 VALUES(8, 'eight');
9251
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
9253
info: Rows matched: 0 Changed: 0 Warnings: 0
9254
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
9256
info: Rows matched: 0 Changed: 0 Warnings: 0
9257
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
9259
info: Rows matched: 0 Changed: 0 Warnings: 0
9260
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
9262
info: Rows matched: 1 Changed: 1 Warnings: 0
9270
INSERT INTO t1 VALUES(8, 'eight');
9271
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
9272
ERROR HY000: CHECK OPTION failed 'test.v3'
9277
INSERT INTO t1 VALUES(8, 'eight');
9278
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
9279
ERROR HY000: CHECK OPTION failed 'test.v3'
9284
INSERT INTO t1 VALUES(8, 'eight');
9285
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
9286
ERROR HY000: CHECK OPTION failed 'test.v3'
9291
INSERT INTO t1 VALUES(8, 'eight');
9292
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
9294
info: Rows matched: 1 Changed: 1 Warnings: 0
9299
INSERT INTO v3 VALUES(16, 'sixteen');
9300
ERROR HY000: CHECK OPTION failed 'test.v3'
9301
INSERT INTO v3 VALUES(0, 'zero');
9302
ERROR HY000: CHECK OPTION failed 'test.v3'
9303
INSERT INTO v3 VALUES(7, 'seven');
9304
ERROR HY000: CHECK OPTION failed 'test.v3'
9305
INSERT INTO v3 VALUES(8, 'eight');
9312
option_variant <nothing> - WITH CHECK OPTION - WITH LOCAL CHECK OPTION
9313
option_variant --------------------------------------------------------------------------------
9314
INSERT INTO t1 VALUES(16, 'sixteen');
9315
INSERT INTO t1 VALUES(0, 'zero');
9316
INSERT INTO t1 VALUES(7, 'seven');
9317
INSERT INTO t1 VALUES(8, 'eight');
9337
INSERT INTO t1 VALUES(16, 'sixteen');
9338
INSERT INTO t1 VALUES(0, 'zero');
9339
INSERT INTO t1 VALUES(7, 'seven');
9340
INSERT INTO t1 VALUES(8, 'eight');
9341
DELETE FROM v3 WHERE my_col1 = 16;
9343
DELETE FROM v3 WHERE my_col1 = 0;
9345
DELETE FROM v3 WHERE my_col1 = 7;
9347
DELETE FROM v3 WHERE my_col1 = 8;
9355
INSERT INTO t1 VALUES(16, 'sixteen');
9356
INSERT INTO t1 VALUES(0, 'zero');
9357
INSERT INTO t1 VALUES(7, 'seven');
9358
INSERT INTO t1 VALUES(8, 'eight');
9359
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
9361
info: Rows matched: 0 Changed: 0 Warnings: 0
9362
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
9364
info: Rows matched: 0 Changed: 0 Warnings: 0
9365
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
9367
info: Rows matched: 0 Changed: 0 Warnings: 0
9368
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
9370
info: Rows matched: 1 Changed: 1 Warnings: 0
9378
INSERT INTO t1 VALUES(8, 'eight');
9379
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
9381
info: Rows matched: 1 Changed: 1 Warnings: 0
9386
INSERT INTO t1 VALUES(8, 'eight');
9387
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
9389
info: Rows matched: 1 Changed: 1 Warnings: 0
9394
INSERT INTO t1 VALUES(8, 'eight');
9395
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
9397
info: Rows matched: 1 Changed: 1 Warnings: 0
9402
INSERT INTO t1 VALUES(8, 'eight');
9403
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
9405
info: Rows matched: 1 Changed: 1 Warnings: 0
9410
INSERT INTO v3 VALUES(16, 'sixteen');
9412
INSERT INTO v3 VALUES(0, 'zero');
9414
INSERT INTO v3 VALUES(7, 'seven');
9416
INSERT INTO v3 VALUES(8, 'eight');
9427
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
9428
FROM v1 WHERE f1 BETWEEN 6 AND 16 ;
9429
option_variant WITH LOCAL CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION
9430
option_variant --------------------------------------------------------------------------------
9431
INSERT INTO t1 VALUES(16, 'sixteen');
9432
INSERT INTO t1 VALUES(0, 'zero');
9433
INSERT INTO t1 VALUES(7, 'seven');
9434
INSERT INTO t1 VALUES(8, 'eight');
9454
INSERT INTO t1 VALUES(16, 'sixteen');
9455
INSERT INTO t1 VALUES(0, 'zero');
9456
INSERT INTO t1 VALUES(7, 'seven');
9457
INSERT INTO t1 VALUES(8, 'eight');
9458
DELETE FROM v3 WHERE my_col1 = 16;
9460
DELETE FROM v3 WHERE my_col1 = 0;
9462
DELETE FROM v3 WHERE my_col1 = 7;
9464
DELETE FROM v3 WHERE my_col1 = 8;
9472
INSERT INTO t1 VALUES(16, 'sixteen');
9473
INSERT INTO t1 VALUES(0, 'zero');
9474
INSERT INTO t1 VALUES(7, 'seven');
9475
INSERT INTO t1 VALUES(8, 'eight');
9476
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
9478
info: Rows matched: 0 Changed: 0 Warnings: 0
9479
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
9481
info: Rows matched: 0 Changed: 0 Warnings: 0
9482
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
9484
info: Rows matched: 0 Changed: 0 Warnings: 0
9485
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
9487
info: Rows matched: 1 Changed: 1 Warnings: 0
9495
INSERT INTO t1 VALUES(8, 'eight');
9496
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
9497
ERROR HY000: CHECK OPTION failed 'test.v3'
9502
INSERT INTO t1 VALUES(8, 'eight');
9503
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
9505
info: Rows matched: 1 Changed: 1 Warnings: 0
9510
INSERT INTO t1 VALUES(8, 'eight');
9511
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
9513
info: Rows matched: 1 Changed: 1 Warnings: 0
9518
INSERT INTO t1 VALUES(8, 'eight');
9519
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
9521
info: Rows matched: 1 Changed: 1 Warnings: 0
9526
INSERT INTO v3 VALUES(16, 'sixteen');
9528
INSERT INTO v3 VALUES(0, 'zero');
9530
INSERT INTO v3 VALUES(7, 'seven');
9531
ERROR HY000: CHECK OPTION failed 'test.v3'
9532
INSERT INTO v3 VALUES(8, 'eight');
9541
option_variant WITH CASCADED CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION
9542
option_variant --------------------------------------------------------------------------------
9543
INSERT INTO t1 VALUES(16, 'sixteen');
9544
INSERT INTO t1 VALUES(0, 'zero');
9545
INSERT INTO t1 VALUES(7, 'seven');
9546
INSERT INTO t1 VALUES(8, 'eight');
9566
INSERT INTO t1 VALUES(16, 'sixteen');
9567
INSERT INTO t1 VALUES(0, 'zero');
9568
INSERT INTO t1 VALUES(7, 'seven');
9569
INSERT INTO t1 VALUES(8, 'eight');
9570
DELETE FROM v3 WHERE my_col1 = 16;
9572
DELETE FROM v3 WHERE my_col1 = 0;
9574
DELETE FROM v3 WHERE my_col1 = 7;
9576
DELETE FROM v3 WHERE my_col1 = 8;
9584
INSERT INTO t1 VALUES(16, 'sixteen');
9585
INSERT INTO t1 VALUES(0, 'zero');
9586
INSERT INTO t1 VALUES(7, 'seven');
9587
INSERT INTO t1 VALUES(8, 'eight');
9588
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
9590
info: Rows matched: 0 Changed: 0 Warnings: 0
9591
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
9593
info: Rows matched: 0 Changed: 0 Warnings: 0
9594
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
9596
info: Rows matched: 0 Changed: 0 Warnings: 0
9597
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
9599
info: Rows matched: 1 Changed: 1 Warnings: 0
9607
INSERT INTO t1 VALUES(8, 'eight');
9608
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
9609
ERROR HY000: CHECK OPTION failed 'test.v3'
9614
INSERT INTO t1 VALUES(8, 'eight');
9615
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
9616
ERROR HY000: CHECK OPTION failed 'test.v3'
9621
INSERT INTO t1 VALUES(8, 'eight');
9622
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
9623
ERROR HY000: CHECK OPTION failed 'test.v3'
9628
INSERT INTO t1 VALUES(8, 'eight');
9629
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
9631
info: Rows matched: 1 Changed: 1 Warnings: 0
9636
INSERT INTO v3 VALUES(16, 'sixteen');
9637
ERROR HY000: CHECK OPTION failed 'test.v3'
9638
INSERT INTO v3 VALUES(0, 'zero');
9639
ERROR HY000: CHECK OPTION failed 'test.v3'
9640
INSERT INTO v3 VALUES(7, 'seven');
9641
ERROR HY000: CHECK OPTION failed 'test.v3'
9642
INSERT INTO v3 VALUES(8, 'eight');
9649
option_variant WITH CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION
9650
option_variant --------------------------------------------------------------------------------
9651
INSERT INTO t1 VALUES(16, 'sixteen');
9652
INSERT INTO t1 VALUES(0, 'zero');
9653
INSERT INTO t1 VALUES(7, 'seven');
9654
INSERT INTO t1 VALUES(8, 'eight');
9674
INSERT INTO t1 VALUES(16, 'sixteen');
9675
INSERT INTO t1 VALUES(0, 'zero');
9676
INSERT INTO t1 VALUES(7, 'seven');
9677
INSERT INTO t1 VALUES(8, 'eight');
9678
DELETE FROM v3 WHERE my_col1 = 16;
9680
DELETE FROM v3 WHERE my_col1 = 0;
9682
DELETE FROM v3 WHERE my_col1 = 7;
9684
DELETE FROM v3 WHERE my_col1 = 8;
9692
INSERT INTO t1 VALUES(16, 'sixteen');
9693
INSERT INTO t1 VALUES(0, 'zero');
9694
INSERT INTO t1 VALUES(7, 'seven');
9695
INSERT INTO t1 VALUES(8, 'eight');
9696
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
9698
info: Rows matched: 0 Changed: 0 Warnings: 0
9699
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
9701
info: Rows matched: 0 Changed: 0 Warnings: 0
9702
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
9704
info: Rows matched: 0 Changed: 0 Warnings: 0
9705
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
9707
info: Rows matched: 1 Changed: 1 Warnings: 0
9715
INSERT INTO t1 VALUES(8, 'eight');
9716
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
9717
ERROR HY000: CHECK OPTION failed 'test.v3'
9722
INSERT INTO t1 VALUES(8, 'eight');
9723
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
9724
ERROR HY000: CHECK OPTION failed 'test.v3'
9729
INSERT INTO t1 VALUES(8, 'eight');
9730
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
9731
ERROR HY000: CHECK OPTION failed 'test.v3'
9736
INSERT INTO t1 VALUES(8, 'eight');
9737
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
9739
info: Rows matched: 1 Changed: 1 Warnings: 0
9744
INSERT INTO v3 VALUES(16, 'sixteen');
9745
ERROR HY000: CHECK OPTION failed 'test.v3'
9746
INSERT INTO v3 VALUES(0, 'zero');
9747
ERROR HY000: CHECK OPTION failed 'test.v3'
9748
INSERT INTO v3 VALUES(7, 'seven');
9749
ERROR HY000: CHECK OPTION failed 'test.v3'
9750
INSERT INTO v3 VALUES(8, 'eight');
9757
option_variant <nothing> - <nothing> - WITH LOCAL CHECK OPTION
9758
option_variant --------------------------------------------------------------------------------
9759
INSERT INTO t1 VALUES(16, 'sixteen');
9760
INSERT INTO t1 VALUES(0, 'zero');
9761
INSERT INTO t1 VALUES(7, 'seven');
9762
INSERT INTO t1 VALUES(8, 'eight');
9782
INSERT INTO t1 VALUES(16, 'sixteen');
9783
INSERT INTO t1 VALUES(0, 'zero');
9784
INSERT INTO t1 VALUES(7, 'seven');
9785
INSERT INTO t1 VALUES(8, 'eight');
9786
DELETE FROM v3 WHERE my_col1 = 16;
9788
DELETE FROM v3 WHERE my_col1 = 0;
9790
DELETE FROM v3 WHERE my_col1 = 7;
9792
DELETE FROM v3 WHERE my_col1 = 8;
9800
INSERT INTO t1 VALUES(16, 'sixteen');
9801
INSERT INTO t1 VALUES(0, 'zero');
9802
INSERT INTO t1 VALUES(7, 'seven');
9803
INSERT INTO t1 VALUES(8, 'eight');
9804
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
9806
info: Rows matched: 0 Changed: 0 Warnings: 0
9807
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
9809
info: Rows matched: 0 Changed: 0 Warnings: 0
9810
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
9812
info: Rows matched: 0 Changed: 0 Warnings: 0
9813
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
9815
info: Rows matched: 1 Changed: 1 Warnings: 0
9823
INSERT INTO t1 VALUES(8, 'eight');
9824
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
9826
info: Rows matched: 1 Changed: 1 Warnings: 0
9831
INSERT INTO t1 VALUES(8, 'eight');
9832
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
9834
info: Rows matched: 1 Changed: 1 Warnings: 0
9839
INSERT INTO t1 VALUES(8, 'eight');
9840
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
9842
info: Rows matched: 1 Changed: 1 Warnings: 0
9847
INSERT INTO t1 VALUES(8, 'eight');
9848
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
9850
info: Rows matched: 1 Changed: 1 Warnings: 0
9855
INSERT INTO v3 VALUES(16, 'sixteen');
9857
INSERT INTO v3 VALUES(0, 'zero');
9859
INSERT INTO v3 VALUES(7, 'seven');
9861
INSERT INTO v3 VALUES(8, 'eight');
9873
CREATE VIEW v1 AS SELECT f1, f2
9874
FROM t1 WHERE f1 BETWEEN 0 AND 10 WITH CASCADED CHECK OPTION ;
9875
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
9876
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH LOCAL CHECK OPTION ;
9877
option_variant WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION
9878
option_variant --------------------------------------------------------------------------------
9879
INSERT INTO t1 VALUES(16, 'sixteen');
9880
INSERT INTO t1 VALUES(0, 'zero');
9881
INSERT INTO t1 VALUES(7, 'seven');
9882
INSERT INTO t1 VALUES(8, 'eight');
9902
INSERT INTO t1 VALUES(16, 'sixteen');
9903
INSERT INTO t1 VALUES(0, 'zero');
9904
INSERT INTO t1 VALUES(7, 'seven');
9905
INSERT INTO t1 VALUES(8, 'eight');
9906
DELETE FROM v3 WHERE my_col1 = 16;
9908
DELETE FROM v3 WHERE my_col1 = 0;
9910
DELETE FROM v3 WHERE my_col1 = 7;
9912
DELETE FROM v3 WHERE my_col1 = 8;
9920
INSERT INTO t1 VALUES(16, 'sixteen');
9921
INSERT INTO t1 VALUES(0, 'zero');
9922
INSERT INTO t1 VALUES(7, 'seven');
9923
INSERT INTO t1 VALUES(8, 'eight');
9924
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
9926
info: Rows matched: 0 Changed: 0 Warnings: 0
9927
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
9929
info: Rows matched: 0 Changed: 0 Warnings: 0
9930
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
9932
info: Rows matched: 0 Changed: 0 Warnings: 0
9933
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
9935
info: Rows matched: 1 Changed: 1 Warnings: 0
9943
INSERT INTO t1 VALUES(8, 'eight');
9944
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
9945
ERROR HY000: CHECK OPTION failed 'test.v3'
9950
INSERT INTO t1 VALUES(8, 'eight');
9951
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
9953
info: Rows matched: 1 Changed: 1 Warnings: 0
9958
INSERT INTO t1 VALUES(8, 'eight');
9959
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
9961
info: Rows matched: 1 Changed: 1 Warnings: 0
9966
INSERT INTO t1 VALUES(8, 'eight');
9967
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
9969
info: Rows matched: 1 Changed: 1 Warnings: 0
9974
INSERT INTO v3 VALUES(16, 'sixteen');
9976
INSERT INTO v3 VALUES(0, 'zero');
9978
INSERT INTO v3 VALUES(7, 'seven');
9979
ERROR HY000: CHECK OPTION failed 'test.v3'
9980
INSERT INTO v3 VALUES(8, 'eight');
9989
option_variant WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION
9990
option_variant --------------------------------------------------------------------------------
9991
INSERT INTO t1 VALUES(16, 'sixteen');
9992
INSERT INTO t1 VALUES(0, 'zero');
9993
INSERT INTO t1 VALUES(7, 'seven');
9994
INSERT INTO t1 VALUES(8, 'eight');
10014
INSERT INTO t1 VALUES(16, 'sixteen');
10015
INSERT INTO t1 VALUES(0, 'zero');
10016
INSERT INTO t1 VALUES(7, 'seven');
10017
INSERT INTO t1 VALUES(8, 'eight');
10018
DELETE FROM v3 WHERE my_col1 = 16;
10020
DELETE FROM v3 WHERE my_col1 = 0;
10022
DELETE FROM v3 WHERE my_col1 = 7;
10024
DELETE FROM v3 WHERE my_col1 = 8;
10032
INSERT INTO t1 VALUES(16, 'sixteen');
10033
INSERT INTO t1 VALUES(0, 'zero');
10034
INSERT INTO t1 VALUES(7, 'seven');
10035
INSERT INTO t1 VALUES(8, 'eight');
10036
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
10038
info: Rows matched: 0 Changed: 0 Warnings: 0
10039
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
10041
info: Rows matched: 0 Changed: 0 Warnings: 0
10042
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
10044
info: Rows matched: 0 Changed: 0 Warnings: 0
10045
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
10047
info: Rows matched: 1 Changed: 1 Warnings: 0
10055
INSERT INTO t1 VALUES(8, 'eight');
10056
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
10057
ERROR HY000: CHECK OPTION failed 'test.v3'
10062
INSERT INTO t1 VALUES(8, 'eight');
10063
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
10064
ERROR HY000: CHECK OPTION failed 'test.v3'
10069
INSERT INTO t1 VALUES(8, 'eight');
10070
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
10071
ERROR HY000: CHECK OPTION failed 'test.v3'
10076
INSERT INTO t1 VALUES(8, 'eight');
10077
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
10079
info: Rows matched: 1 Changed: 1 Warnings: 0
10084
INSERT INTO v3 VALUES(16, 'sixteen');
10085
ERROR HY000: CHECK OPTION failed 'test.v3'
10086
INSERT INTO v3 VALUES(0, 'zero');
10087
ERROR HY000: CHECK OPTION failed 'test.v3'
10088
INSERT INTO v3 VALUES(7, 'seven');
10089
ERROR HY000: CHECK OPTION failed 'test.v3'
10090
INSERT INTO v3 VALUES(8, 'eight');
10097
option_variant WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION
10098
option_variant --------------------------------------------------------------------------------
10099
INSERT INTO t1 VALUES(16, 'sixteen');
10100
INSERT INTO t1 VALUES(0, 'zero');
10101
INSERT INTO t1 VALUES(7, 'seven');
10102
INSERT INTO t1 VALUES(8, 'eight');
10122
INSERT INTO t1 VALUES(16, 'sixteen');
10123
INSERT INTO t1 VALUES(0, 'zero');
10124
INSERT INTO t1 VALUES(7, 'seven');
10125
INSERT INTO t1 VALUES(8, 'eight');
10126
DELETE FROM v3 WHERE my_col1 = 16;
10128
DELETE FROM v3 WHERE my_col1 = 0;
10130
DELETE FROM v3 WHERE my_col1 = 7;
10132
DELETE FROM v3 WHERE my_col1 = 8;
10140
INSERT INTO t1 VALUES(16, 'sixteen');
10141
INSERT INTO t1 VALUES(0, 'zero');
10142
INSERT INTO t1 VALUES(7, 'seven');
10143
INSERT INTO t1 VALUES(8, 'eight');
10144
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
10146
info: Rows matched: 0 Changed: 0 Warnings: 0
10147
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
10149
info: Rows matched: 0 Changed: 0 Warnings: 0
10150
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
10152
info: Rows matched: 0 Changed: 0 Warnings: 0
10153
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
10155
info: Rows matched: 1 Changed: 1 Warnings: 0
10163
INSERT INTO t1 VALUES(8, 'eight');
10164
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
10165
ERROR HY000: CHECK OPTION failed 'test.v3'
10170
INSERT INTO t1 VALUES(8, 'eight');
10171
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
10172
ERROR HY000: CHECK OPTION failed 'test.v3'
10177
INSERT INTO t1 VALUES(8, 'eight');
10178
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
10179
ERROR HY000: CHECK OPTION failed 'test.v3'
10184
INSERT INTO t1 VALUES(8, 'eight');
10185
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
10187
info: Rows matched: 1 Changed: 1 Warnings: 0
10192
INSERT INTO v3 VALUES(16, 'sixteen');
10193
ERROR HY000: CHECK OPTION failed 'test.v3'
10194
INSERT INTO v3 VALUES(0, 'zero');
10195
ERROR HY000: CHECK OPTION failed 'test.v3'
10196
INSERT INTO v3 VALUES(7, 'seven');
10197
ERROR HY000: CHECK OPTION failed 'test.v3'
10198
INSERT INTO v3 VALUES(8, 'eight');
10205
option_variant <nothing> - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION
10206
option_variant --------------------------------------------------------------------------------
10207
INSERT INTO t1 VALUES(16, 'sixteen');
10208
INSERT INTO t1 VALUES(0, 'zero');
10209
INSERT INTO t1 VALUES(7, 'seven');
10210
INSERT INTO t1 VALUES(8, 'eight');
10230
INSERT INTO t1 VALUES(16, 'sixteen');
10231
INSERT INTO t1 VALUES(0, 'zero');
10232
INSERT INTO t1 VALUES(7, 'seven');
10233
INSERT INTO t1 VALUES(8, 'eight');
10234
DELETE FROM v3 WHERE my_col1 = 16;
10236
DELETE FROM v3 WHERE my_col1 = 0;
10238
DELETE FROM v3 WHERE my_col1 = 7;
10240
DELETE FROM v3 WHERE my_col1 = 8;
10248
INSERT INTO t1 VALUES(16, 'sixteen');
10249
INSERT INTO t1 VALUES(0, 'zero');
10250
INSERT INTO t1 VALUES(7, 'seven');
10251
INSERT INTO t1 VALUES(8, 'eight');
10252
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
10254
info: Rows matched: 0 Changed: 0 Warnings: 0
10255
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
10257
info: Rows matched: 0 Changed: 0 Warnings: 0
10258
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
10260
info: Rows matched: 0 Changed: 0 Warnings: 0
10261
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
10263
info: Rows matched: 1 Changed: 1 Warnings: 0
10271
INSERT INTO t1 VALUES(8, 'eight');
10272
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
10274
info: Rows matched: 1 Changed: 1 Warnings: 0
10279
INSERT INTO t1 VALUES(8, 'eight');
10280
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
10282
info: Rows matched: 1 Changed: 1 Warnings: 0
10287
INSERT INTO t1 VALUES(8, 'eight');
10288
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
10290
info: Rows matched: 1 Changed: 1 Warnings: 0
10295
INSERT INTO t1 VALUES(8, 'eight');
10296
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
10298
info: Rows matched: 1 Changed: 1 Warnings: 0
10303
INSERT INTO v3 VALUES(16, 'sixteen');
10305
INSERT INTO v3 VALUES(0, 'zero');
10307
INSERT INTO v3 VALUES(7, 'seven');
10309
INSERT INTO v3 VALUES(8, 'eight');
10320
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
10321
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH CASCADED CHECK OPTION ;
10322
option_variant WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION
10323
option_variant --------------------------------------------------------------------------------
10324
INSERT INTO t1 VALUES(16, 'sixteen');
10325
INSERT INTO t1 VALUES(0, 'zero');
10326
INSERT INTO t1 VALUES(7, 'seven');
10327
INSERT INTO t1 VALUES(8, 'eight');
10347
INSERT INTO t1 VALUES(16, 'sixteen');
10348
INSERT INTO t1 VALUES(0, 'zero');
10349
INSERT INTO t1 VALUES(7, 'seven');
10350
INSERT INTO t1 VALUES(8, 'eight');
10351
DELETE FROM v3 WHERE my_col1 = 16;
10353
DELETE FROM v3 WHERE my_col1 = 0;
10355
DELETE FROM v3 WHERE my_col1 = 7;
10357
DELETE FROM v3 WHERE my_col1 = 8;
10365
INSERT INTO t1 VALUES(16, 'sixteen');
10366
INSERT INTO t1 VALUES(0, 'zero');
10367
INSERT INTO t1 VALUES(7, 'seven');
10368
INSERT INTO t1 VALUES(8, 'eight');
10369
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
10371
info: Rows matched: 0 Changed: 0 Warnings: 0
10372
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
10374
info: Rows matched: 0 Changed: 0 Warnings: 0
10375
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
10377
info: Rows matched: 0 Changed: 0 Warnings: 0
10378
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
10380
info: Rows matched: 1 Changed: 1 Warnings: 0
10388
INSERT INTO t1 VALUES(8, 'eight');
10389
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
10390
ERROR HY000: CHECK OPTION failed 'test.v3'
10395
INSERT INTO t1 VALUES(8, 'eight');
10396
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
10398
info: Rows matched: 1 Changed: 1 Warnings: 0
10403
INSERT INTO t1 VALUES(8, 'eight');
10404
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
10406
info: Rows matched: 1 Changed: 1 Warnings: 0
10411
INSERT INTO t1 VALUES(8, 'eight');
10412
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
10414
info: Rows matched: 1 Changed: 1 Warnings: 0
10419
INSERT INTO v3 VALUES(16, 'sixteen');
10421
INSERT INTO v3 VALUES(0, 'zero');
10423
INSERT INTO v3 VALUES(7, 'seven');
10424
ERROR HY000: CHECK OPTION failed 'test.v3'
10425
INSERT INTO v3 VALUES(8, 'eight');
10434
option_variant WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION
10435
option_variant --------------------------------------------------------------------------------
10436
INSERT INTO t1 VALUES(16, 'sixteen');
10437
INSERT INTO t1 VALUES(0, 'zero');
10438
INSERT INTO t1 VALUES(7, 'seven');
10439
INSERT INTO t1 VALUES(8, 'eight');
10459
INSERT INTO t1 VALUES(16, 'sixteen');
10460
INSERT INTO t1 VALUES(0, 'zero');
10461
INSERT INTO t1 VALUES(7, 'seven');
10462
INSERT INTO t1 VALUES(8, 'eight');
10463
DELETE FROM v3 WHERE my_col1 = 16;
10465
DELETE FROM v3 WHERE my_col1 = 0;
10467
DELETE FROM v3 WHERE my_col1 = 7;
10469
DELETE FROM v3 WHERE my_col1 = 8;
10477
INSERT INTO t1 VALUES(16, 'sixteen');
10478
INSERT INTO t1 VALUES(0, 'zero');
10479
INSERT INTO t1 VALUES(7, 'seven');
10480
INSERT INTO t1 VALUES(8, 'eight');
10481
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
10483
info: Rows matched: 0 Changed: 0 Warnings: 0
10484
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
10486
info: Rows matched: 0 Changed: 0 Warnings: 0
10487
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
10489
info: Rows matched: 0 Changed: 0 Warnings: 0
10490
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
10492
info: Rows matched: 1 Changed: 1 Warnings: 0
10500
INSERT INTO t1 VALUES(8, 'eight');
10501
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
10502
ERROR HY000: CHECK OPTION failed 'test.v3'
10507
INSERT INTO t1 VALUES(8, 'eight');
10508
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
10509
ERROR HY000: CHECK OPTION failed 'test.v3'
10514
INSERT INTO t1 VALUES(8, 'eight');
10515
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
10516
ERROR HY000: CHECK OPTION failed 'test.v3'
10521
INSERT INTO t1 VALUES(8, 'eight');
10522
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
10524
info: Rows matched: 1 Changed: 1 Warnings: 0
10529
INSERT INTO v3 VALUES(16, 'sixteen');
10530
ERROR HY000: CHECK OPTION failed 'test.v3'
10531
INSERT INTO v3 VALUES(0, 'zero');
10532
ERROR HY000: CHECK OPTION failed 'test.v3'
10533
INSERT INTO v3 VALUES(7, 'seven');
10534
ERROR HY000: CHECK OPTION failed 'test.v3'
10535
INSERT INTO v3 VALUES(8, 'eight');
10542
option_variant WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION
10543
option_variant --------------------------------------------------------------------------------
10544
INSERT INTO t1 VALUES(16, 'sixteen');
10545
INSERT INTO t1 VALUES(0, 'zero');
10546
INSERT INTO t1 VALUES(7, 'seven');
10547
INSERT INTO t1 VALUES(8, 'eight');
10567
INSERT INTO t1 VALUES(16, 'sixteen');
10568
INSERT INTO t1 VALUES(0, 'zero');
10569
INSERT INTO t1 VALUES(7, 'seven');
10570
INSERT INTO t1 VALUES(8, 'eight');
10571
DELETE FROM v3 WHERE my_col1 = 16;
10573
DELETE FROM v3 WHERE my_col1 = 0;
10575
DELETE FROM v3 WHERE my_col1 = 7;
10577
DELETE FROM v3 WHERE my_col1 = 8;
10585
INSERT INTO t1 VALUES(16, 'sixteen');
10586
INSERT INTO t1 VALUES(0, 'zero');
10587
INSERT INTO t1 VALUES(7, 'seven');
10588
INSERT INTO t1 VALUES(8, 'eight');
10589
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
10591
info: Rows matched: 0 Changed: 0 Warnings: 0
10592
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
10594
info: Rows matched: 0 Changed: 0 Warnings: 0
10595
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
10597
info: Rows matched: 0 Changed: 0 Warnings: 0
10598
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
10600
info: Rows matched: 1 Changed: 1 Warnings: 0
10608
INSERT INTO t1 VALUES(8, 'eight');
10609
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
10610
ERROR HY000: CHECK OPTION failed 'test.v3'
10615
INSERT INTO t1 VALUES(8, 'eight');
10616
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
10617
ERROR HY000: CHECK OPTION failed 'test.v3'
10622
INSERT INTO t1 VALUES(8, 'eight');
10623
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
10624
ERROR HY000: CHECK OPTION failed 'test.v3'
10629
INSERT INTO t1 VALUES(8, 'eight');
10630
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
10632
info: Rows matched: 1 Changed: 1 Warnings: 0
10637
INSERT INTO v3 VALUES(16, 'sixteen');
10638
ERROR HY000: CHECK OPTION failed 'test.v3'
10639
INSERT INTO v3 VALUES(0, 'zero');
10640
ERROR HY000: CHECK OPTION failed 'test.v3'
10641
INSERT INTO v3 VALUES(7, 'seven');
10642
ERROR HY000: CHECK OPTION failed 'test.v3'
10643
INSERT INTO v3 VALUES(8, 'eight');
10650
option_variant <nothing> - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION
10651
option_variant --------------------------------------------------------------------------------
10652
INSERT INTO t1 VALUES(16, 'sixteen');
10653
INSERT INTO t1 VALUES(0, 'zero');
10654
INSERT INTO t1 VALUES(7, 'seven');
10655
INSERT INTO t1 VALUES(8, 'eight');
10675
INSERT INTO t1 VALUES(16, 'sixteen');
10676
INSERT INTO t1 VALUES(0, 'zero');
10677
INSERT INTO t1 VALUES(7, 'seven');
10678
INSERT INTO t1 VALUES(8, 'eight');
10679
DELETE FROM v3 WHERE my_col1 = 16;
10681
DELETE FROM v3 WHERE my_col1 = 0;
10683
DELETE FROM v3 WHERE my_col1 = 7;
10685
DELETE FROM v3 WHERE my_col1 = 8;
10693
INSERT INTO t1 VALUES(16, 'sixteen');
10694
INSERT INTO t1 VALUES(0, 'zero');
10695
INSERT INTO t1 VALUES(7, 'seven');
10696
INSERT INTO t1 VALUES(8, 'eight');
10697
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
10699
info: Rows matched: 0 Changed: 0 Warnings: 0
10700
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
10702
info: Rows matched: 0 Changed: 0 Warnings: 0
10703
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
10705
info: Rows matched: 0 Changed: 0 Warnings: 0
10706
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
10708
info: Rows matched: 1 Changed: 1 Warnings: 0
10716
INSERT INTO t1 VALUES(8, 'eight');
10717
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
10719
info: Rows matched: 1 Changed: 1 Warnings: 0
10724
INSERT INTO t1 VALUES(8, 'eight');
10725
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
10727
info: Rows matched: 1 Changed: 1 Warnings: 0
10732
INSERT INTO t1 VALUES(8, 'eight');
10733
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
10735
info: Rows matched: 1 Changed: 1 Warnings: 0
10740
INSERT INTO t1 VALUES(8, 'eight');
10741
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
10743
info: Rows matched: 1 Changed: 1 Warnings: 0
10748
INSERT INTO v3 VALUES(16, 'sixteen');
10750
INSERT INTO v3 VALUES(0, 'zero');
10752
INSERT INTO v3 VALUES(7, 'seven');
10754
INSERT INTO v3 VALUES(8, 'eight');
10765
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
10766
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH CHECK OPTION ;
10767
option_variant WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION
10768
option_variant --------------------------------------------------------------------------------
10769
INSERT INTO t1 VALUES(16, 'sixteen');
10770
INSERT INTO t1 VALUES(0, 'zero');
10771
INSERT INTO t1 VALUES(7, 'seven');
10772
INSERT INTO t1 VALUES(8, 'eight');
10792
INSERT INTO t1 VALUES(16, 'sixteen');
10793
INSERT INTO t1 VALUES(0, 'zero');
10794
INSERT INTO t1 VALUES(7, 'seven');
10795
INSERT INTO t1 VALUES(8, 'eight');
10796
DELETE FROM v3 WHERE my_col1 = 16;
10798
DELETE FROM v3 WHERE my_col1 = 0;
10800
DELETE FROM v3 WHERE my_col1 = 7;
10802
DELETE FROM v3 WHERE my_col1 = 8;
10810
INSERT INTO t1 VALUES(16, 'sixteen');
10811
INSERT INTO t1 VALUES(0, 'zero');
10812
INSERT INTO t1 VALUES(7, 'seven');
10813
INSERT INTO t1 VALUES(8, 'eight');
10814
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
10816
info: Rows matched: 0 Changed: 0 Warnings: 0
10817
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
10819
info: Rows matched: 0 Changed: 0 Warnings: 0
10820
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
10822
info: Rows matched: 0 Changed: 0 Warnings: 0
10823
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
10825
info: Rows matched: 1 Changed: 1 Warnings: 0
10833
INSERT INTO t1 VALUES(8, 'eight');
10834
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
10835
ERROR HY000: CHECK OPTION failed 'test.v3'
10840
INSERT INTO t1 VALUES(8, 'eight');
10841
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
10843
info: Rows matched: 1 Changed: 1 Warnings: 0
10848
INSERT INTO t1 VALUES(8, 'eight');
10849
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
10851
info: Rows matched: 1 Changed: 1 Warnings: 0
10856
INSERT INTO t1 VALUES(8, 'eight');
10857
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
10859
info: Rows matched: 1 Changed: 1 Warnings: 0
10864
INSERT INTO v3 VALUES(16, 'sixteen');
10866
INSERT INTO v3 VALUES(0, 'zero');
10868
INSERT INTO v3 VALUES(7, 'seven');
10869
ERROR HY000: CHECK OPTION failed 'test.v3'
10870
INSERT INTO v3 VALUES(8, 'eight');
10879
option_variant WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION
10880
option_variant --------------------------------------------------------------------------------
10881
INSERT INTO t1 VALUES(16, 'sixteen');
10882
INSERT INTO t1 VALUES(0, 'zero');
10883
INSERT INTO t1 VALUES(7, 'seven');
10884
INSERT INTO t1 VALUES(8, 'eight');
10904
INSERT INTO t1 VALUES(16, 'sixteen');
10905
INSERT INTO t1 VALUES(0, 'zero');
10906
INSERT INTO t1 VALUES(7, 'seven');
10907
INSERT INTO t1 VALUES(8, 'eight');
10908
DELETE FROM v3 WHERE my_col1 = 16;
10910
DELETE FROM v3 WHERE my_col1 = 0;
10912
DELETE FROM v3 WHERE my_col1 = 7;
10914
DELETE FROM v3 WHERE my_col1 = 8;
10922
INSERT INTO t1 VALUES(16, 'sixteen');
10923
INSERT INTO t1 VALUES(0, 'zero');
10924
INSERT INTO t1 VALUES(7, 'seven');
10925
INSERT INTO t1 VALUES(8, 'eight');
10926
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
10928
info: Rows matched: 0 Changed: 0 Warnings: 0
10929
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
10931
info: Rows matched: 0 Changed: 0 Warnings: 0
10932
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
10934
info: Rows matched: 0 Changed: 0 Warnings: 0
10935
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
10937
info: Rows matched: 1 Changed: 1 Warnings: 0
10945
INSERT INTO t1 VALUES(8, 'eight');
10946
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
10947
ERROR HY000: CHECK OPTION failed 'test.v3'
10952
INSERT INTO t1 VALUES(8, 'eight');
10953
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
10954
ERROR HY000: CHECK OPTION failed 'test.v3'
10959
INSERT INTO t1 VALUES(8, 'eight');
10960
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
10961
ERROR HY000: CHECK OPTION failed 'test.v3'
10966
INSERT INTO t1 VALUES(8, 'eight');
10967
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
10969
info: Rows matched: 1 Changed: 1 Warnings: 0
10974
INSERT INTO v3 VALUES(16, 'sixteen');
10975
ERROR HY000: CHECK OPTION failed 'test.v3'
10976
INSERT INTO v3 VALUES(0, 'zero');
10977
ERROR HY000: CHECK OPTION failed 'test.v3'
10978
INSERT INTO v3 VALUES(7, 'seven');
10979
ERROR HY000: CHECK OPTION failed 'test.v3'
10980
INSERT INTO v3 VALUES(8, 'eight');
10987
option_variant WITH CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION
10988
option_variant --------------------------------------------------------------------------------
10989
INSERT INTO t1 VALUES(16, 'sixteen');
10990
INSERT INTO t1 VALUES(0, 'zero');
10991
INSERT INTO t1 VALUES(7, 'seven');
10992
INSERT INTO t1 VALUES(8, 'eight');
11012
INSERT INTO t1 VALUES(16, 'sixteen');
11013
INSERT INTO t1 VALUES(0, 'zero');
11014
INSERT INTO t1 VALUES(7, 'seven');
11015
INSERT INTO t1 VALUES(8, 'eight');
11016
DELETE FROM v3 WHERE my_col1 = 16;
11018
DELETE FROM v3 WHERE my_col1 = 0;
11020
DELETE FROM v3 WHERE my_col1 = 7;
11022
DELETE FROM v3 WHERE my_col1 = 8;
11030
INSERT INTO t1 VALUES(16, 'sixteen');
11031
INSERT INTO t1 VALUES(0, 'zero');
11032
INSERT INTO t1 VALUES(7, 'seven');
11033
INSERT INTO t1 VALUES(8, 'eight');
11034
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
11036
info: Rows matched: 0 Changed: 0 Warnings: 0
11037
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
11039
info: Rows matched: 0 Changed: 0 Warnings: 0
11040
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
11042
info: Rows matched: 0 Changed: 0 Warnings: 0
11043
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
11045
info: Rows matched: 1 Changed: 1 Warnings: 0
11053
INSERT INTO t1 VALUES(8, 'eight');
11054
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
11055
ERROR HY000: CHECK OPTION failed 'test.v3'
11060
INSERT INTO t1 VALUES(8, 'eight');
11061
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
11062
ERROR HY000: CHECK OPTION failed 'test.v3'
11067
INSERT INTO t1 VALUES(8, 'eight');
11068
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
11069
ERROR HY000: CHECK OPTION failed 'test.v3'
11074
INSERT INTO t1 VALUES(8, 'eight');
11075
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
11077
info: Rows matched: 1 Changed: 1 Warnings: 0
11082
INSERT INTO v3 VALUES(16, 'sixteen');
11083
ERROR HY000: CHECK OPTION failed 'test.v3'
11084
INSERT INTO v3 VALUES(0, 'zero');
11085
ERROR HY000: CHECK OPTION failed 'test.v3'
11086
INSERT INTO v3 VALUES(7, 'seven');
11087
ERROR HY000: CHECK OPTION failed 'test.v3'
11088
INSERT INTO v3 VALUES(8, 'eight');
11095
option_variant <nothing> - WITH CHECK OPTION - WITH CASCADED CHECK OPTION
11096
option_variant --------------------------------------------------------------------------------
11097
INSERT INTO t1 VALUES(16, 'sixteen');
11098
INSERT INTO t1 VALUES(0, 'zero');
11099
INSERT INTO t1 VALUES(7, 'seven');
11100
INSERT INTO t1 VALUES(8, 'eight');
11120
INSERT INTO t1 VALUES(16, 'sixteen');
11121
INSERT INTO t1 VALUES(0, 'zero');
11122
INSERT INTO t1 VALUES(7, 'seven');
11123
INSERT INTO t1 VALUES(8, 'eight');
11124
DELETE FROM v3 WHERE my_col1 = 16;
11126
DELETE FROM v3 WHERE my_col1 = 0;
11128
DELETE FROM v3 WHERE my_col1 = 7;
11130
DELETE FROM v3 WHERE my_col1 = 8;
11138
INSERT INTO t1 VALUES(16, 'sixteen');
11139
INSERT INTO t1 VALUES(0, 'zero');
11140
INSERT INTO t1 VALUES(7, 'seven');
11141
INSERT INTO t1 VALUES(8, 'eight');
11142
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
11144
info: Rows matched: 0 Changed: 0 Warnings: 0
11145
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
11147
info: Rows matched: 0 Changed: 0 Warnings: 0
11148
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
11150
info: Rows matched: 0 Changed: 0 Warnings: 0
11151
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
11153
info: Rows matched: 1 Changed: 1 Warnings: 0
11161
INSERT INTO t1 VALUES(8, 'eight');
11162
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
11164
info: Rows matched: 1 Changed: 1 Warnings: 0
11169
INSERT INTO t1 VALUES(8, 'eight');
11170
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
11172
info: Rows matched: 1 Changed: 1 Warnings: 0
11177
INSERT INTO t1 VALUES(8, 'eight');
11178
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
11180
info: Rows matched: 1 Changed: 1 Warnings: 0
11185
INSERT INTO t1 VALUES(8, 'eight');
11186
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
11188
info: Rows matched: 1 Changed: 1 Warnings: 0
11193
INSERT INTO v3 VALUES(16, 'sixteen');
11195
INSERT INTO v3 VALUES(0, 'zero');
11197
INSERT INTO v3 VALUES(7, 'seven');
11199
INSERT INTO v3 VALUES(8, 'eight');
11210
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
11211
FROM v1 WHERE f1 BETWEEN 6 AND 16 ;
11212
option_variant WITH LOCAL CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION
11213
option_variant --------------------------------------------------------------------------------
11214
INSERT INTO t1 VALUES(16, 'sixteen');
11215
INSERT INTO t1 VALUES(0, 'zero');
11216
INSERT INTO t1 VALUES(7, 'seven');
11217
INSERT INTO t1 VALUES(8, 'eight');
11237
INSERT INTO t1 VALUES(16, 'sixteen');
11238
INSERT INTO t1 VALUES(0, 'zero');
11239
INSERT INTO t1 VALUES(7, 'seven');
11240
INSERT INTO t1 VALUES(8, 'eight');
11241
DELETE FROM v3 WHERE my_col1 = 16;
11243
DELETE FROM v3 WHERE my_col1 = 0;
11245
DELETE FROM v3 WHERE my_col1 = 7;
11247
DELETE FROM v3 WHERE my_col1 = 8;
11255
INSERT INTO t1 VALUES(16, 'sixteen');
11256
INSERT INTO t1 VALUES(0, 'zero');
11257
INSERT INTO t1 VALUES(7, 'seven');
11258
INSERT INTO t1 VALUES(8, 'eight');
11259
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
11261
info: Rows matched: 0 Changed: 0 Warnings: 0
11262
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
11264
info: Rows matched: 0 Changed: 0 Warnings: 0
11265
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
11267
info: Rows matched: 0 Changed: 0 Warnings: 0
11268
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
11270
info: Rows matched: 1 Changed: 1 Warnings: 0
11278
INSERT INTO t1 VALUES(8, 'eight');
11279
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
11280
ERROR HY000: CHECK OPTION failed 'test.v3'
11285
INSERT INTO t1 VALUES(8, 'eight');
11286
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
11288
info: Rows matched: 1 Changed: 1 Warnings: 0
11293
INSERT INTO t1 VALUES(8, 'eight');
11294
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
11296
info: Rows matched: 1 Changed: 1 Warnings: 0
11301
INSERT INTO t1 VALUES(8, 'eight');
11302
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
11304
info: Rows matched: 1 Changed: 1 Warnings: 0
11309
INSERT INTO v3 VALUES(16, 'sixteen');
11311
INSERT INTO v3 VALUES(0, 'zero');
11313
INSERT INTO v3 VALUES(7, 'seven');
11314
ERROR HY000: CHECK OPTION failed 'test.v3'
11315
INSERT INTO v3 VALUES(8, 'eight');
11324
option_variant WITH CASCADED CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION
11325
option_variant --------------------------------------------------------------------------------
11326
INSERT INTO t1 VALUES(16, 'sixteen');
11327
INSERT INTO t1 VALUES(0, 'zero');
11328
INSERT INTO t1 VALUES(7, 'seven');
11329
INSERT INTO t1 VALUES(8, 'eight');
11349
INSERT INTO t1 VALUES(16, 'sixteen');
11350
INSERT INTO t1 VALUES(0, 'zero');
11351
INSERT INTO t1 VALUES(7, 'seven');
11352
INSERT INTO t1 VALUES(8, 'eight');
11353
DELETE FROM v3 WHERE my_col1 = 16;
11355
DELETE FROM v3 WHERE my_col1 = 0;
11357
DELETE FROM v3 WHERE my_col1 = 7;
11359
DELETE FROM v3 WHERE my_col1 = 8;
11367
INSERT INTO t1 VALUES(16, 'sixteen');
11368
INSERT INTO t1 VALUES(0, 'zero');
11369
INSERT INTO t1 VALUES(7, 'seven');
11370
INSERT INTO t1 VALUES(8, 'eight');
11371
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
11373
info: Rows matched: 0 Changed: 0 Warnings: 0
11374
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
11376
info: Rows matched: 0 Changed: 0 Warnings: 0
11377
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
11379
info: Rows matched: 0 Changed: 0 Warnings: 0
11380
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
11382
info: Rows matched: 1 Changed: 1 Warnings: 0
11390
INSERT INTO t1 VALUES(8, 'eight');
11391
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
11392
ERROR HY000: CHECK OPTION failed 'test.v3'
11397
INSERT INTO t1 VALUES(8, 'eight');
11398
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
11399
ERROR HY000: CHECK OPTION failed 'test.v3'
11404
INSERT INTO t1 VALUES(8, 'eight');
11405
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
11406
ERROR HY000: CHECK OPTION failed 'test.v3'
11411
INSERT INTO t1 VALUES(8, 'eight');
11412
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
11414
info: Rows matched: 1 Changed: 1 Warnings: 0
11419
INSERT INTO v3 VALUES(16, 'sixteen');
11420
ERROR HY000: CHECK OPTION failed 'test.v3'
11421
INSERT INTO v3 VALUES(0, 'zero');
11422
ERROR HY000: CHECK OPTION failed 'test.v3'
11423
INSERT INTO v3 VALUES(7, 'seven');
11424
ERROR HY000: CHECK OPTION failed 'test.v3'
11425
INSERT INTO v3 VALUES(8, 'eight');
11432
option_variant WITH CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION
11433
option_variant --------------------------------------------------------------------------------
11434
INSERT INTO t1 VALUES(16, 'sixteen');
11435
INSERT INTO t1 VALUES(0, 'zero');
11436
INSERT INTO t1 VALUES(7, 'seven');
11437
INSERT INTO t1 VALUES(8, 'eight');
11457
INSERT INTO t1 VALUES(16, 'sixteen');
11458
INSERT INTO t1 VALUES(0, 'zero');
11459
INSERT INTO t1 VALUES(7, 'seven');
11460
INSERT INTO t1 VALUES(8, 'eight');
11461
DELETE FROM v3 WHERE my_col1 = 16;
11463
DELETE FROM v3 WHERE my_col1 = 0;
11465
DELETE FROM v3 WHERE my_col1 = 7;
11467
DELETE FROM v3 WHERE my_col1 = 8;
11475
INSERT INTO t1 VALUES(16, 'sixteen');
11476
INSERT INTO t1 VALUES(0, 'zero');
11477
INSERT INTO t1 VALUES(7, 'seven');
11478
INSERT INTO t1 VALUES(8, 'eight');
11479
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
11481
info: Rows matched: 0 Changed: 0 Warnings: 0
11482
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
11484
info: Rows matched: 0 Changed: 0 Warnings: 0
11485
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
11487
info: Rows matched: 0 Changed: 0 Warnings: 0
11488
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
11490
info: Rows matched: 1 Changed: 1 Warnings: 0
11498
INSERT INTO t1 VALUES(8, 'eight');
11499
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
11500
ERROR HY000: CHECK OPTION failed 'test.v3'
11505
INSERT INTO t1 VALUES(8, 'eight');
11506
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
11507
ERROR HY000: CHECK OPTION failed 'test.v3'
11512
INSERT INTO t1 VALUES(8, 'eight');
11513
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
11514
ERROR HY000: CHECK OPTION failed 'test.v3'
11519
INSERT INTO t1 VALUES(8, 'eight');
11520
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
11522
info: Rows matched: 1 Changed: 1 Warnings: 0
11527
INSERT INTO v3 VALUES(16, 'sixteen');
11528
ERROR HY000: CHECK OPTION failed 'test.v3'
11529
INSERT INTO v3 VALUES(0, 'zero');
11530
ERROR HY000: CHECK OPTION failed 'test.v3'
11531
INSERT INTO v3 VALUES(7, 'seven');
11532
ERROR HY000: CHECK OPTION failed 'test.v3'
11533
INSERT INTO v3 VALUES(8, 'eight');
11540
option_variant <nothing> - <nothing> - WITH CASCADED CHECK OPTION
11541
option_variant --------------------------------------------------------------------------------
11542
INSERT INTO t1 VALUES(16, 'sixteen');
11543
INSERT INTO t1 VALUES(0, 'zero');
11544
INSERT INTO t1 VALUES(7, 'seven');
11545
INSERT INTO t1 VALUES(8, 'eight');
11565
INSERT INTO t1 VALUES(16, 'sixteen');
11566
INSERT INTO t1 VALUES(0, 'zero');
11567
INSERT INTO t1 VALUES(7, 'seven');
11568
INSERT INTO t1 VALUES(8, 'eight');
11569
DELETE FROM v3 WHERE my_col1 = 16;
11571
DELETE FROM v3 WHERE my_col1 = 0;
11573
DELETE FROM v3 WHERE my_col1 = 7;
11575
DELETE FROM v3 WHERE my_col1 = 8;
11583
INSERT INTO t1 VALUES(16, 'sixteen');
11584
INSERT INTO t1 VALUES(0, 'zero');
11585
INSERT INTO t1 VALUES(7, 'seven');
11586
INSERT INTO t1 VALUES(8, 'eight');
11587
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
11589
info: Rows matched: 0 Changed: 0 Warnings: 0
11590
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
11592
info: Rows matched: 0 Changed: 0 Warnings: 0
11593
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
11595
info: Rows matched: 0 Changed: 0 Warnings: 0
11596
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
11598
info: Rows matched: 1 Changed: 1 Warnings: 0
11606
INSERT INTO t1 VALUES(8, 'eight');
11607
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
11609
info: Rows matched: 1 Changed: 1 Warnings: 0
11614
INSERT INTO t1 VALUES(8, 'eight');
11615
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
11617
info: Rows matched: 1 Changed: 1 Warnings: 0
11622
INSERT INTO t1 VALUES(8, 'eight');
11623
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
11625
info: Rows matched: 1 Changed: 1 Warnings: 0
11630
INSERT INTO t1 VALUES(8, 'eight');
11631
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
11633
info: Rows matched: 1 Changed: 1 Warnings: 0
11638
INSERT INTO v3 VALUES(16, 'sixteen');
11640
INSERT INTO v3 VALUES(0, 'zero');
11642
INSERT INTO v3 VALUES(7, 'seven');
11644
INSERT INTO v3 VALUES(8, 'eight');
11656
CREATE VIEW v1 AS SELECT f1, f2
11657
FROM t1 WHERE f1 BETWEEN 0 AND 10 WITH CHECK OPTION ;
11658
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
11659
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH LOCAL CHECK OPTION ;
11660
option_variant WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION
11661
option_variant --------------------------------------------------------------------------------
11662
INSERT INTO t1 VALUES(16, 'sixteen');
11663
INSERT INTO t1 VALUES(0, 'zero');
11664
INSERT INTO t1 VALUES(7, 'seven');
11665
INSERT INTO t1 VALUES(8, 'eight');
11685
INSERT INTO t1 VALUES(16, 'sixteen');
11686
INSERT INTO t1 VALUES(0, 'zero');
11687
INSERT INTO t1 VALUES(7, 'seven');
11688
INSERT INTO t1 VALUES(8, 'eight');
11689
DELETE FROM v3 WHERE my_col1 = 16;
11691
DELETE FROM v3 WHERE my_col1 = 0;
11693
DELETE FROM v3 WHERE my_col1 = 7;
11695
DELETE FROM v3 WHERE my_col1 = 8;
11703
INSERT INTO t1 VALUES(16, 'sixteen');
11704
INSERT INTO t1 VALUES(0, 'zero');
11705
INSERT INTO t1 VALUES(7, 'seven');
11706
INSERT INTO t1 VALUES(8, 'eight');
11707
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
11709
info: Rows matched: 0 Changed: 0 Warnings: 0
11710
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
11712
info: Rows matched: 0 Changed: 0 Warnings: 0
11713
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
11715
info: Rows matched: 0 Changed: 0 Warnings: 0
11716
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
11718
info: Rows matched: 1 Changed: 1 Warnings: 0
11726
INSERT INTO t1 VALUES(8, 'eight');
11727
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
11728
ERROR HY000: CHECK OPTION failed 'test.v3'
11733
INSERT INTO t1 VALUES(8, 'eight');
11734
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
11736
info: Rows matched: 1 Changed: 1 Warnings: 0
11741
INSERT INTO t1 VALUES(8, 'eight');
11742
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
11744
info: Rows matched: 1 Changed: 1 Warnings: 0
11749
INSERT INTO t1 VALUES(8, 'eight');
11750
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
11752
info: Rows matched: 1 Changed: 1 Warnings: 0
11757
INSERT INTO v3 VALUES(16, 'sixteen');
11759
INSERT INTO v3 VALUES(0, 'zero');
11761
INSERT INTO v3 VALUES(7, 'seven');
11762
ERROR HY000: CHECK OPTION failed 'test.v3'
11763
INSERT INTO v3 VALUES(8, 'eight');
11772
option_variant WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION
11773
option_variant --------------------------------------------------------------------------------
11774
INSERT INTO t1 VALUES(16, 'sixteen');
11775
INSERT INTO t1 VALUES(0, 'zero');
11776
INSERT INTO t1 VALUES(7, 'seven');
11777
INSERT INTO t1 VALUES(8, 'eight');
11797
INSERT INTO t1 VALUES(16, 'sixteen');
11798
INSERT INTO t1 VALUES(0, 'zero');
11799
INSERT INTO t1 VALUES(7, 'seven');
11800
INSERT INTO t1 VALUES(8, 'eight');
11801
DELETE FROM v3 WHERE my_col1 = 16;
11803
DELETE FROM v3 WHERE my_col1 = 0;
11805
DELETE FROM v3 WHERE my_col1 = 7;
11807
DELETE FROM v3 WHERE my_col1 = 8;
11815
INSERT INTO t1 VALUES(16, 'sixteen');
11816
INSERT INTO t1 VALUES(0, 'zero');
11817
INSERT INTO t1 VALUES(7, 'seven');
11818
INSERT INTO t1 VALUES(8, 'eight');
11819
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
11821
info: Rows matched: 0 Changed: 0 Warnings: 0
11822
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
11824
info: Rows matched: 0 Changed: 0 Warnings: 0
11825
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
11827
info: Rows matched: 0 Changed: 0 Warnings: 0
11828
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
11830
info: Rows matched: 1 Changed: 1 Warnings: 0
11838
INSERT INTO t1 VALUES(8, 'eight');
11839
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
11840
ERROR HY000: CHECK OPTION failed 'test.v3'
11845
INSERT INTO t1 VALUES(8, 'eight');
11846
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
11847
ERROR HY000: CHECK OPTION failed 'test.v3'
11852
INSERT INTO t1 VALUES(8, 'eight');
11853
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
11854
ERROR HY000: CHECK OPTION failed 'test.v3'
11859
INSERT INTO t1 VALUES(8, 'eight');
11860
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
11862
info: Rows matched: 1 Changed: 1 Warnings: 0
11867
INSERT INTO v3 VALUES(16, 'sixteen');
11868
ERROR HY000: CHECK OPTION failed 'test.v3'
11869
INSERT INTO v3 VALUES(0, 'zero');
11870
ERROR HY000: CHECK OPTION failed 'test.v3'
11871
INSERT INTO v3 VALUES(7, 'seven');
11872
ERROR HY000: CHECK OPTION failed 'test.v3'
11873
INSERT INTO v3 VALUES(8, 'eight');
11880
option_variant WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION
11881
option_variant --------------------------------------------------------------------------------
11882
INSERT INTO t1 VALUES(16, 'sixteen');
11883
INSERT INTO t1 VALUES(0, 'zero');
11884
INSERT INTO t1 VALUES(7, 'seven');
11885
INSERT INTO t1 VALUES(8, 'eight');
11905
INSERT INTO t1 VALUES(16, 'sixteen');
11906
INSERT INTO t1 VALUES(0, 'zero');
11907
INSERT INTO t1 VALUES(7, 'seven');
11908
INSERT INTO t1 VALUES(8, 'eight');
11909
DELETE FROM v3 WHERE my_col1 = 16;
11911
DELETE FROM v3 WHERE my_col1 = 0;
11913
DELETE FROM v3 WHERE my_col1 = 7;
11915
DELETE FROM v3 WHERE my_col1 = 8;
11923
INSERT INTO t1 VALUES(16, 'sixteen');
11924
INSERT INTO t1 VALUES(0, 'zero');
11925
INSERT INTO t1 VALUES(7, 'seven');
11926
INSERT INTO t1 VALUES(8, 'eight');
11927
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
11929
info: Rows matched: 0 Changed: 0 Warnings: 0
11930
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
11932
info: Rows matched: 0 Changed: 0 Warnings: 0
11933
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
11935
info: Rows matched: 0 Changed: 0 Warnings: 0
11936
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
11938
info: Rows matched: 1 Changed: 1 Warnings: 0
11946
INSERT INTO t1 VALUES(8, 'eight');
11947
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
11948
ERROR HY000: CHECK OPTION failed 'test.v3'
11953
INSERT INTO t1 VALUES(8, 'eight');
11954
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
11955
ERROR HY000: CHECK OPTION failed 'test.v3'
11960
INSERT INTO t1 VALUES(8, 'eight');
11961
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
11962
ERROR HY000: CHECK OPTION failed 'test.v3'
11967
INSERT INTO t1 VALUES(8, 'eight');
11968
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
11970
info: Rows matched: 1 Changed: 1 Warnings: 0
11975
INSERT INTO v3 VALUES(16, 'sixteen');
11976
ERROR HY000: CHECK OPTION failed 'test.v3'
11977
INSERT INTO v3 VALUES(0, 'zero');
11978
ERROR HY000: CHECK OPTION failed 'test.v3'
11979
INSERT INTO v3 VALUES(7, 'seven');
11980
ERROR HY000: CHECK OPTION failed 'test.v3'
11981
INSERT INTO v3 VALUES(8, 'eight');
11988
option_variant <nothing> - WITH LOCAL CHECK OPTION - WITH CHECK OPTION
11989
option_variant --------------------------------------------------------------------------------
11990
INSERT INTO t1 VALUES(16, 'sixteen');
11991
INSERT INTO t1 VALUES(0, 'zero');
11992
INSERT INTO t1 VALUES(7, 'seven');
11993
INSERT INTO t1 VALUES(8, 'eight');
12013
INSERT INTO t1 VALUES(16, 'sixteen');
12014
INSERT INTO t1 VALUES(0, 'zero');
12015
INSERT INTO t1 VALUES(7, 'seven');
12016
INSERT INTO t1 VALUES(8, 'eight');
12017
DELETE FROM v3 WHERE my_col1 = 16;
12019
DELETE FROM v3 WHERE my_col1 = 0;
12021
DELETE FROM v3 WHERE my_col1 = 7;
12023
DELETE FROM v3 WHERE my_col1 = 8;
12031
INSERT INTO t1 VALUES(16, 'sixteen');
12032
INSERT INTO t1 VALUES(0, 'zero');
12033
INSERT INTO t1 VALUES(7, 'seven');
12034
INSERT INTO t1 VALUES(8, 'eight');
12035
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
12037
info: Rows matched: 0 Changed: 0 Warnings: 0
12038
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
12040
info: Rows matched: 0 Changed: 0 Warnings: 0
12041
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
12043
info: Rows matched: 0 Changed: 0 Warnings: 0
12044
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
12046
info: Rows matched: 1 Changed: 1 Warnings: 0
12054
INSERT INTO t1 VALUES(8, 'eight');
12055
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
12057
info: Rows matched: 1 Changed: 1 Warnings: 0
12062
INSERT INTO t1 VALUES(8, 'eight');
12063
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
12065
info: Rows matched: 1 Changed: 1 Warnings: 0
12070
INSERT INTO t1 VALUES(8, 'eight');
12071
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
12073
info: Rows matched: 1 Changed: 1 Warnings: 0
12078
INSERT INTO t1 VALUES(8, 'eight');
12079
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
12081
info: Rows matched: 1 Changed: 1 Warnings: 0
12086
INSERT INTO v3 VALUES(16, 'sixteen');
12088
INSERT INTO v3 VALUES(0, 'zero');
12090
INSERT INTO v3 VALUES(7, 'seven');
12092
INSERT INTO v3 VALUES(8, 'eight');
12103
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
12104
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH CASCADED CHECK OPTION ;
12105
option_variant WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION
12106
option_variant --------------------------------------------------------------------------------
12107
INSERT INTO t1 VALUES(16, 'sixteen');
12108
INSERT INTO t1 VALUES(0, 'zero');
12109
INSERT INTO t1 VALUES(7, 'seven');
12110
INSERT INTO t1 VALUES(8, 'eight');
12130
INSERT INTO t1 VALUES(16, 'sixteen');
12131
INSERT INTO t1 VALUES(0, 'zero');
12132
INSERT INTO t1 VALUES(7, 'seven');
12133
INSERT INTO t1 VALUES(8, 'eight');
12134
DELETE FROM v3 WHERE my_col1 = 16;
12136
DELETE FROM v3 WHERE my_col1 = 0;
12138
DELETE FROM v3 WHERE my_col1 = 7;
12140
DELETE FROM v3 WHERE my_col1 = 8;
12148
INSERT INTO t1 VALUES(16, 'sixteen');
12149
INSERT INTO t1 VALUES(0, 'zero');
12150
INSERT INTO t1 VALUES(7, 'seven');
12151
INSERT INTO t1 VALUES(8, 'eight');
12152
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
12154
info: Rows matched: 0 Changed: 0 Warnings: 0
12155
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
12157
info: Rows matched: 0 Changed: 0 Warnings: 0
12158
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
12160
info: Rows matched: 0 Changed: 0 Warnings: 0
12161
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
12163
info: Rows matched: 1 Changed: 1 Warnings: 0
12171
INSERT INTO t1 VALUES(8, 'eight');
12172
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
12173
ERROR HY000: CHECK OPTION failed 'test.v3'
12178
INSERT INTO t1 VALUES(8, 'eight');
12179
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
12181
info: Rows matched: 1 Changed: 1 Warnings: 0
12186
INSERT INTO t1 VALUES(8, 'eight');
12187
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
12189
info: Rows matched: 1 Changed: 1 Warnings: 0
12194
INSERT INTO t1 VALUES(8, 'eight');
12195
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
12197
info: Rows matched: 1 Changed: 1 Warnings: 0
12202
INSERT INTO v3 VALUES(16, 'sixteen');
12204
INSERT INTO v3 VALUES(0, 'zero');
12206
INSERT INTO v3 VALUES(7, 'seven');
12207
ERROR HY000: CHECK OPTION failed 'test.v3'
12208
INSERT INTO v3 VALUES(8, 'eight');
12217
option_variant WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION
12218
option_variant --------------------------------------------------------------------------------
12219
INSERT INTO t1 VALUES(16, 'sixteen');
12220
INSERT INTO t1 VALUES(0, 'zero');
12221
INSERT INTO t1 VALUES(7, 'seven');
12222
INSERT INTO t1 VALUES(8, 'eight');
12242
INSERT INTO t1 VALUES(16, 'sixteen');
12243
INSERT INTO t1 VALUES(0, 'zero');
12244
INSERT INTO t1 VALUES(7, 'seven');
12245
INSERT INTO t1 VALUES(8, 'eight');
12246
DELETE FROM v3 WHERE my_col1 = 16;
12248
DELETE FROM v3 WHERE my_col1 = 0;
12250
DELETE FROM v3 WHERE my_col1 = 7;
12252
DELETE FROM v3 WHERE my_col1 = 8;
12260
INSERT INTO t1 VALUES(16, 'sixteen');
12261
INSERT INTO t1 VALUES(0, 'zero');
12262
INSERT INTO t1 VALUES(7, 'seven');
12263
INSERT INTO t1 VALUES(8, 'eight');
12264
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
12266
info: Rows matched: 0 Changed: 0 Warnings: 0
12267
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
12269
info: Rows matched: 0 Changed: 0 Warnings: 0
12270
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
12272
info: Rows matched: 0 Changed: 0 Warnings: 0
12273
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
12275
info: Rows matched: 1 Changed: 1 Warnings: 0
12283
INSERT INTO t1 VALUES(8, 'eight');
12284
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
12285
ERROR HY000: CHECK OPTION failed 'test.v3'
12290
INSERT INTO t1 VALUES(8, 'eight');
12291
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
12292
ERROR HY000: CHECK OPTION failed 'test.v3'
12297
INSERT INTO t1 VALUES(8, 'eight');
12298
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
12299
ERROR HY000: CHECK OPTION failed 'test.v3'
12304
INSERT INTO t1 VALUES(8, 'eight');
12305
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
12307
info: Rows matched: 1 Changed: 1 Warnings: 0
12312
INSERT INTO v3 VALUES(16, 'sixteen');
12313
ERROR HY000: CHECK OPTION failed 'test.v3'
12314
INSERT INTO v3 VALUES(0, 'zero');
12315
ERROR HY000: CHECK OPTION failed 'test.v3'
12316
INSERT INTO v3 VALUES(7, 'seven');
12317
ERROR HY000: CHECK OPTION failed 'test.v3'
12318
INSERT INTO v3 VALUES(8, 'eight');
12325
option_variant WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION
12326
option_variant --------------------------------------------------------------------------------
12327
INSERT INTO t1 VALUES(16, 'sixteen');
12328
INSERT INTO t1 VALUES(0, 'zero');
12329
INSERT INTO t1 VALUES(7, 'seven');
12330
INSERT INTO t1 VALUES(8, 'eight');
12350
INSERT INTO t1 VALUES(16, 'sixteen');
12351
INSERT INTO t1 VALUES(0, 'zero');
12352
INSERT INTO t1 VALUES(7, 'seven');
12353
INSERT INTO t1 VALUES(8, 'eight');
12354
DELETE FROM v3 WHERE my_col1 = 16;
12356
DELETE FROM v3 WHERE my_col1 = 0;
12358
DELETE FROM v3 WHERE my_col1 = 7;
12360
DELETE FROM v3 WHERE my_col1 = 8;
12368
INSERT INTO t1 VALUES(16, 'sixteen');
12369
INSERT INTO t1 VALUES(0, 'zero');
12370
INSERT INTO t1 VALUES(7, 'seven');
12371
INSERT INTO t1 VALUES(8, 'eight');
12372
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
12374
info: Rows matched: 0 Changed: 0 Warnings: 0
12375
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
12377
info: Rows matched: 0 Changed: 0 Warnings: 0
12378
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
12380
info: Rows matched: 0 Changed: 0 Warnings: 0
12381
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
12383
info: Rows matched: 1 Changed: 1 Warnings: 0
12391
INSERT INTO t1 VALUES(8, 'eight');
12392
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
12393
ERROR HY000: CHECK OPTION failed 'test.v3'
12398
INSERT INTO t1 VALUES(8, 'eight');
12399
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
12400
ERROR HY000: CHECK OPTION failed 'test.v3'
12405
INSERT INTO t1 VALUES(8, 'eight');
12406
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
12407
ERROR HY000: CHECK OPTION failed 'test.v3'
12412
INSERT INTO t1 VALUES(8, 'eight');
12413
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
12415
info: Rows matched: 1 Changed: 1 Warnings: 0
12420
INSERT INTO v3 VALUES(16, 'sixteen');
12421
ERROR HY000: CHECK OPTION failed 'test.v3'
12422
INSERT INTO v3 VALUES(0, 'zero');
12423
ERROR HY000: CHECK OPTION failed 'test.v3'
12424
INSERT INTO v3 VALUES(7, 'seven');
12425
ERROR HY000: CHECK OPTION failed 'test.v3'
12426
INSERT INTO v3 VALUES(8, 'eight');
12433
option_variant <nothing> - WITH CASCADED CHECK OPTION - WITH CHECK OPTION
12434
option_variant --------------------------------------------------------------------------------
12435
INSERT INTO t1 VALUES(16, 'sixteen');
12436
INSERT INTO t1 VALUES(0, 'zero');
12437
INSERT INTO t1 VALUES(7, 'seven');
12438
INSERT INTO t1 VALUES(8, 'eight');
12458
INSERT INTO t1 VALUES(16, 'sixteen');
12459
INSERT INTO t1 VALUES(0, 'zero');
12460
INSERT INTO t1 VALUES(7, 'seven');
12461
INSERT INTO t1 VALUES(8, 'eight');
12462
DELETE FROM v3 WHERE my_col1 = 16;
12464
DELETE FROM v3 WHERE my_col1 = 0;
12466
DELETE FROM v3 WHERE my_col1 = 7;
12468
DELETE FROM v3 WHERE my_col1 = 8;
12476
INSERT INTO t1 VALUES(16, 'sixteen');
12477
INSERT INTO t1 VALUES(0, 'zero');
12478
INSERT INTO t1 VALUES(7, 'seven');
12479
INSERT INTO t1 VALUES(8, 'eight');
12480
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
12482
info: Rows matched: 0 Changed: 0 Warnings: 0
12483
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
12485
info: Rows matched: 0 Changed: 0 Warnings: 0
12486
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
12488
info: Rows matched: 0 Changed: 0 Warnings: 0
12489
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
12491
info: Rows matched: 1 Changed: 1 Warnings: 0
12499
INSERT INTO t1 VALUES(8, 'eight');
12500
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
12502
info: Rows matched: 1 Changed: 1 Warnings: 0
12507
INSERT INTO t1 VALUES(8, 'eight');
12508
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
12510
info: Rows matched: 1 Changed: 1 Warnings: 0
12515
INSERT INTO t1 VALUES(8, 'eight');
12516
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
12518
info: Rows matched: 1 Changed: 1 Warnings: 0
12523
INSERT INTO t1 VALUES(8, 'eight');
12524
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
12526
info: Rows matched: 1 Changed: 1 Warnings: 0
12531
INSERT INTO v3 VALUES(16, 'sixteen');
12533
INSERT INTO v3 VALUES(0, 'zero');
12535
INSERT INTO v3 VALUES(7, 'seven');
12537
INSERT INTO v3 VALUES(8, 'eight');
12548
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
12549
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH CHECK OPTION ;
12550
option_variant WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION
12551
option_variant --------------------------------------------------------------------------------
12552
INSERT INTO t1 VALUES(16, 'sixteen');
12553
INSERT INTO t1 VALUES(0, 'zero');
12554
INSERT INTO t1 VALUES(7, 'seven');
12555
INSERT INTO t1 VALUES(8, 'eight');
12575
INSERT INTO t1 VALUES(16, 'sixteen');
12576
INSERT INTO t1 VALUES(0, 'zero');
12577
INSERT INTO t1 VALUES(7, 'seven');
12578
INSERT INTO t1 VALUES(8, 'eight');
12579
DELETE FROM v3 WHERE my_col1 = 16;
12581
DELETE FROM v3 WHERE my_col1 = 0;
12583
DELETE FROM v3 WHERE my_col1 = 7;
12585
DELETE FROM v3 WHERE my_col1 = 8;
12593
INSERT INTO t1 VALUES(16, 'sixteen');
12594
INSERT INTO t1 VALUES(0, 'zero');
12595
INSERT INTO t1 VALUES(7, 'seven');
12596
INSERT INTO t1 VALUES(8, 'eight');
12597
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
12599
info: Rows matched: 0 Changed: 0 Warnings: 0
12600
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
12602
info: Rows matched: 0 Changed: 0 Warnings: 0
12603
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
12605
info: Rows matched: 0 Changed: 0 Warnings: 0
12606
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
12608
info: Rows matched: 1 Changed: 1 Warnings: 0
12616
INSERT INTO t1 VALUES(8, 'eight');
12617
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
12618
ERROR HY000: CHECK OPTION failed 'test.v3'
12623
INSERT INTO t1 VALUES(8, 'eight');
12624
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
12626
info: Rows matched: 1 Changed: 1 Warnings: 0
12631
INSERT INTO t1 VALUES(8, 'eight');
12632
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
12634
info: Rows matched: 1 Changed: 1 Warnings: 0
12639
INSERT INTO t1 VALUES(8, 'eight');
12640
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
12642
info: Rows matched: 1 Changed: 1 Warnings: 0
12647
INSERT INTO v3 VALUES(16, 'sixteen');
12649
INSERT INTO v3 VALUES(0, 'zero');
12651
INSERT INTO v3 VALUES(7, 'seven');
12652
ERROR HY000: CHECK OPTION failed 'test.v3'
12653
INSERT INTO v3 VALUES(8, 'eight');
12662
option_variant WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION
12663
option_variant --------------------------------------------------------------------------------
12664
INSERT INTO t1 VALUES(16, 'sixteen');
12665
INSERT INTO t1 VALUES(0, 'zero');
12666
INSERT INTO t1 VALUES(7, 'seven');
12667
INSERT INTO t1 VALUES(8, 'eight');
12687
INSERT INTO t1 VALUES(16, 'sixteen');
12688
INSERT INTO t1 VALUES(0, 'zero');
12689
INSERT INTO t1 VALUES(7, 'seven');
12690
INSERT INTO t1 VALUES(8, 'eight');
12691
DELETE FROM v3 WHERE my_col1 = 16;
12693
DELETE FROM v3 WHERE my_col1 = 0;
12695
DELETE FROM v3 WHERE my_col1 = 7;
12697
DELETE FROM v3 WHERE my_col1 = 8;
12705
INSERT INTO t1 VALUES(16, 'sixteen');
12706
INSERT INTO t1 VALUES(0, 'zero');
12707
INSERT INTO t1 VALUES(7, 'seven');
12708
INSERT INTO t1 VALUES(8, 'eight');
12709
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
12711
info: Rows matched: 0 Changed: 0 Warnings: 0
12712
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
12714
info: Rows matched: 0 Changed: 0 Warnings: 0
12715
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
12717
info: Rows matched: 0 Changed: 0 Warnings: 0
12718
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
12720
info: Rows matched: 1 Changed: 1 Warnings: 0
12728
INSERT INTO t1 VALUES(8, 'eight');
12729
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
12730
ERROR HY000: CHECK OPTION failed 'test.v3'
12735
INSERT INTO t1 VALUES(8, 'eight');
12736
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
12737
ERROR HY000: CHECK OPTION failed 'test.v3'
12742
INSERT INTO t1 VALUES(8, 'eight');
12743
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
12744
ERROR HY000: CHECK OPTION failed 'test.v3'
12749
INSERT INTO t1 VALUES(8, 'eight');
12750
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
12752
info: Rows matched: 1 Changed: 1 Warnings: 0
12757
INSERT INTO v3 VALUES(16, 'sixteen');
12758
ERROR HY000: CHECK OPTION failed 'test.v3'
12759
INSERT INTO v3 VALUES(0, 'zero');
12760
ERROR HY000: CHECK OPTION failed 'test.v3'
12761
INSERT INTO v3 VALUES(7, 'seven');
12762
ERROR HY000: CHECK OPTION failed 'test.v3'
12763
INSERT INTO v3 VALUES(8, 'eight');
12770
option_variant WITH CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION
12771
option_variant --------------------------------------------------------------------------------
12772
INSERT INTO t1 VALUES(16, 'sixteen');
12773
INSERT INTO t1 VALUES(0, 'zero');
12774
INSERT INTO t1 VALUES(7, 'seven');
12775
INSERT INTO t1 VALUES(8, 'eight');
12795
INSERT INTO t1 VALUES(16, 'sixteen');
12796
INSERT INTO t1 VALUES(0, 'zero');
12797
INSERT INTO t1 VALUES(7, 'seven');
12798
INSERT INTO t1 VALUES(8, 'eight');
12799
DELETE FROM v3 WHERE my_col1 = 16;
12801
DELETE FROM v3 WHERE my_col1 = 0;
12803
DELETE FROM v3 WHERE my_col1 = 7;
12805
DELETE FROM v3 WHERE my_col1 = 8;
12813
INSERT INTO t1 VALUES(16, 'sixteen');
12814
INSERT INTO t1 VALUES(0, 'zero');
12815
INSERT INTO t1 VALUES(7, 'seven');
12816
INSERT INTO t1 VALUES(8, 'eight');
12817
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
12819
info: Rows matched: 0 Changed: 0 Warnings: 0
12820
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
12822
info: Rows matched: 0 Changed: 0 Warnings: 0
12823
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
12825
info: Rows matched: 0 Changed: 0 Warnings: 0
12826
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
12828
info: Rows matched: 1 Changed: 1 Warnings: 0
12836
INSERT INTO t1 VALUES(8, 'eight');
12837
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
12838
ERROR HY000: CHECK OPTION failed 'test.v3'
12843
INSERT INTO t1 VALUES(8, 'eight');
12844
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
12845
ERROR HY000: CHECK OPTION failed 'test.v3'
12850
INSERT INTO t1 VALUES(8, 'eight');
12851
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
12852
ERROR HY000: CHECK OPTION failed 'test.v3'
12857
INSERT INTO t1 VALUES(8, 'eight');
12858
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
12860
info: Rows matched: 1 Changed: 1 Warnings: 0
12865
INSERT INTO v3 VALUES(16, 'sixteen');
12866
ERROR HY000: CHECK OPTION failed 'test.v3'
12867
INSERT INTO v3 VALUES(0, 'zero');
12868
ERROR HY000: CHECK OPTION failed 'test.v3'
12869
INSERT INTO v3 VALUES(7, 'seven');
12870
ERROR HY000: CHECK OPTION failed 'test.v3'
12871
INSERT INTO v3 VALUES(8, 'eight');
12878
option_variant <nothing> - WITH CHECK OPTION - WITH CHECK OPTION
12879
option_variant --------------------------------------------------------------------------------
12880
INSERT INTO t1 VALUES(16, 'sixteen');
12881
INSERT INTO t1 VALUES(0, 'zero');
12882
INSERT INTO t1 VALUES(7, 'seven');
12883
INSERT INTO t1 VALUES(8, 'eight');
12903
INSERT INTO t1 VALUES(16, 'sixteen');
12904
INSERT INTO t1 VALUES(0, 'zero');
12905
INSERT INTO t1 VALUES(7, 'seven');
12906
INSERT INTO t1 VALUES(8, 'eight');
12907
DELETE FROM v3 WHERE my_col1 = 16;
12909
DELETE FROM v3 WHERE my_col1 = 0;
12911
DELETE FROM v3 WHERE my_col1 = 7;
12913
DELETE FROM v3 WHERE my_col1 = 8;
12921
INSERT INTO t1 VALUES(16, 'sixteen');
12922
INSERT INTO t1 VALUES(0, 'zero');
12923
INSERT INTO t1 VALUES(7, 'seven');
12924
INSERT INTO t1 VALUES(8, 'eight');
12925
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
12927
info: Rows matched: 0 Changed: 0 Warnings: 0
12928
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
12930
info: Rows matched: 0 Changed: 0 Warnings: 0
12931
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
12933
info: Rows matched: 0 Changed: 0 Warnings: 0
12934
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
12936
info: Rows matched: 1 Changed: 1 Warnings: 0
12944
INSERT INTO t1 VALUES(8, 'eight');
12945
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
12947
info: Rows matched: 1 Changed: 1 Warnings: 0
12952
INSERT INTO t1 VALUES(8, 'eight');
12953
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
12955
info: Rows matched: 1 Changed: 1 Warnings: 0
12960
INSERT INTO t1 VALUES(8, 'eight');
12961
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
12963
info: Rows matched: 1 Changed: 1 Warnings: 0
12968
INSERT INTO t1 VALUES(8, 'eight');
12969
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
12971
info: Rows matched: 1 Changed: 1 Warnings: 0
12976
INSERT INTO v3 VALUES(16, 'sixteen');
12978
INSERT INTO v3 VALUES(0, 'zero');
12980
INSERT INTO v3 VALUES(7, 'seven');
12982
INSERT INTO v3 VALUES(8, 'eight');
12993
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
12994
FROM v1 WHERE f1 BETWEEN 6 AND 16 ;
12995
option_variant WITH LOCAL CHECK OPTION - <nothing> - WITH CHECK OPTION
12996
option_variant --------------------------------------------------------------------------------
12997
INSERT INTO t1 VALUES(16, 'sixteen');
12998
INSERT INTO t1 VALUES(0, 'zero');
12999
INSERT INTO t1 VALUES(7, 'seven');
13000
INSERT INTO t1 VALUES(8, 'eight');
13020
INSERT INTO t1 VALUES(16, 'sixteen');
13021
INSERT INTO t1 VALUES(0, 'zero');
13022
INSERT INTO t1 VALUES(7, 'seven');
13023
INSERT INTO t1 VALUES(8, 'eight');
13024
DELETE FROM v3 WHERE my_col1 = 16;
13026
DELETE FROM v3 WHERE my_col1 = 0;
13028
DELETE FROM v3 WHERE my_col1 = 7;
13030
DELETE FROM v3 WHERE my_col1 = 8;
13038
INSERT INTO t1 VALUES(16, 'sixteen');
13039
INSERT INTO t1 VALUES(0, 'zero');
13040
INSERT INTO t1 VALUES(7, 'seven');
13041
INSERT INTO t1 VALUES(8, 'eight');
13042
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
13044
info: Rows matched: 0 Changed: 0 Warnings: 0
13045
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
13047
info: Rows matched: 0 Changed: 0 Warnings: 0
13048
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
13050
info: Rows matched: 0 Changed: 0 Warnings: 0
13051
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
13053
info: Rows matched: 1 Changed: 1 Warnings: 0
13061
INSERT INTO t1 VALUES(8, 'eight');
13062
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
13063
ERROR HY000: CHECK OPTION failed 'test.v3'
13068
INSERT INTO t1 VALUES(8, 'eight');
13069
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
13071
info: Rows matched: 1 Changed: 1 Warnings: 0
13076
INSERT INTO t1 VALUES(8, 'eight');
13077
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
13079
info: Rows matched: 1 Changed: 1 Warnings: 0
13084
INSERT INTO t1 VALUES(8, 'eight');
13085
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
13087
info: Rows matched: 1 Changed: 1 Warnings: 0
13092
INSERT INTO v3 VALUES(16, 'sixteen');
13094
INSERT INTO v3 VALUES(0, 'zero');
13096
INSERT INTO v3 VALUES(7, 'seven');
13097
ERROR HY000: CHECK OPTION failed 'test.v3'
13098
INSERT INTO v3 VALUES(8, 'eight');
13107
option_variant WITH CASCADED CHECK OPTION - <nothing> - WITH CHECK OPTION
13108
option_variant --------------------------------------------------------------------------------
13109
INSERT INTO t1 VALUES(16, 'sixteen');
13110
INSERT INTO t1 VALUES(0, 'zero');
13111
INSERT INTO t1 VALUES(7, 'seven');
13112
INSERT INTO t1 VALUES(8, 'eight');
13132
INSERT INTO t1 VALUES(16, 'sixteen');
13133
INSERT INTO t1 VALUES(0, 'zero');
13134
INSERT INTO t1 VALUES(7, 'seven');
13135
INSERT INTO t1 VALUES(8, 'eight');
13136
DELETE FROM v3 WHERE my_col1 = 16;
13138
DELETE FROM v3 WHERE my_col1 = 0;
13140
DELETE FROM v3 WHERE my_col1 = 7;
13142
DELETE FROM v3 WHERE my_col1 = 8;
13150
INSERT INTO t1 VALUES(16, 'sixteen');
13151
INSERT INTO t1 VALUES(0, 'zero');
13152
INSERT INTO t1 VALUES(7, 'seven');
13153
INSERT INTO t1 VALUES(8, 'eight');
13154
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
13156
info: Rows matched: 0 Changed: 0 Warnings: 0
13157
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
13159
info: Rows matched: 0 Changed: 0 Warnings: 0
13160
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
13162
info: Rows matched: 0 Changed: 0 Warnings: 0
13163
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
13165
info: Rows matched: 1 Changed: 1 Warnings: 0
13173
INSERT INTO t1 VALUES(8, 'eight');
13174
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
13175
ERROR HY000: CHECK OPTION failed 'test.v3'
13180
INSERT INTO t1 VALUES(8, 'eight');
13181
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
13182
ERROR HY000: CHECK OPTION failed 'test.v3'
13187
INSERT INTO t1 VALUES(8, 'eight');
13188
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
13189
ERROR HY000: CHECK OPTION failed 'test.v3'
13194
INSERT INTO t1 VALUES(8, 'eight');
13195
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
13197
info: Rows matched: 1 Changed: 1 Warnings: 0
13202
INSERT INTO v3 VALUES(16, 'sixteen');
13203
ERROR HY000: CHECK OPTION failed 'test.v3'
13204
INSERT INTO v3 VALUES(0, 'zero');
13205
ERROR HY000: CHECK OPTION failed 'test.v3'
13206
INSERT INTO v3 VALUES(7, 'seven');
13207
ERROR HY000: CHECK OPTION failed 'test.v3'
13208
INSERT INTO v3 VALUES(8, 'eight');
13215
option_variant WITH CHECK OPTION - <nothing> - WITH CHECK OPTION
13216
option_variant --------------------------------------------------------------------------------
13217
INSERT INTO t1 VALUES(16, 'sixteen');
13218
INSERT INTO t1 VALUES(0, 'zero');
13219
INSERT INTO t1 VALUES(7, 'seven');
13220
INSERT INTO t1 VALUES(8, 'eight');
13240
INSERT INTO t1 VALUES(16, 'sixteen');
13241
INSERT INTO t1 VALUES(0, 'zero');
13242
INSERT INTO t1 VALUES(7, 'seven');
13243
INSERT INTO t1 VALUES(8, 'eight');
13244
DELETE FROM v3 WHERE my_col1 = 16;
13246
DELETE FROM v3 WHERE my_col1 = 0;
13248
DELETE FROM v3 WHERE my_col1 = 7;
13250
DELETE FROM v3 WHERE my_col1 = 8;
13258
INSERT INTO t1 VALUES(16, 'sixteen');
13259
INSERT INTO t1 VALUES(0, 'zero');
13260
INSERT INTO t1 VALUES(7, 'seven');
13261
INSERT INTO t1 VALUES(8, 'eight');
13262
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
13264
info: Rows matched: 0 Changed: 0 Warnings: 0
13265
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
13267
info: Rows matched: 0 Changed: 0 Warnings: 0
13268
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
13270
info: Rows matched: 0 Changed: 0 Warnings: 0
13271
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
13273
info: Rows matched: 1 Changed: 1 Warnings: 0
13281
INSERT INTO t1 VALUES(8, 'eight');
13282
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
13283
ERROR HY000: CHECK OPTION failed 'test.v3'
13288
INSERT INTO t1 VALUES(8, 'eight');
13289
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
13290
ERROR HY000: CHECK OPTION failed 'test.v3'
13295
INSERT INTO t1 VALUES(8, 'eight');
13296
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
13297
ERROR HY000: CHECK OPTION failed 'test.v3'
13302
INSERT INTO t1 VALUES(8, 'eight');
13303
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
13305
info: Rows matched: 1 Changed: 1 Warnings: 0
13310
INSERT INTO v3 VALUES(16, 'sixteen');
13311
ERROR HY000: CHECK OPTION failed 'test.v3'
13312
INSERT INTO v3 VALUES(0, 'zero');
13313
ERROR HY000: CHECK OPTION failed 'test.v3'
13314
INSERT INTO v3 VALUES(7, 'seven');
13315
ERROR HY000: CHECK OPTION failed 'test.v3'
13316
INSERT INTO v3 VALUES(8, 'eight');
13323
option_variant <nothing> - <nothing> - WITH CHECK OPTION
13324
option_variant --------------------------------------------------------------------------------
13325
INSERT INTO t1 VALUES(16, 'sixteen');
13326
INSERT INTO t1 VALUES(0, 'zero');
13327
INSERT INTO t1 VALUES(7, 'seven');
13328
INSERT INTO t1 VALUES(8, 'eight');
13348
INSERT INTO t1 VALUES(16, 'sixteen');
13349
INSERT INTO t1 VALUES(0, 'zero');
13350
INSERT INTO t1 VALUES(7, 'seven');
13351
INSERT INTO t1 VALUES(8, 'eight');
13352
DELETE FROM v3 WHERE my_col1 = 16;
13354
DELETE FROM v3 WHERE my_col1 = 0;
13356
DELETE FROM v3 WHERE my_col1 = 7;
13358
DELETE FROM v3 WHERE my_col1 = 8;
13366
INSERT INTO t1 VALUES(16, 'sixteen');
13367
INSERT INTO t1 VALUES(0, 'zero');
13368
INSERT INTO t1 VALUES(7, 'seven');
13369
INSERT INTO t1 VALUES(8, 'eight');
13370
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
13372
info: Rows matched: 0 Changed: 0 Warnings: 0
13373
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
13375
info: Rows matched: 0 Changed: 0 Warnings: 0
13376
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
13378
info: Rows matched: 0 Changed: 0 Warnings: 0
13379
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
13381
info: Rows matched: 1 Changed: 1 Warnings: 0
13389
INSERT INTO t1 VALUES(8, 'eight');
13390
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
13392
info: Rows matched: 1 Changed: 1 Warnings: 0
13397
INSERT INTO t1 VALUES(8, 'eight');
13398
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
13400
info: Rows matched: 1 Changed: 1 Warnings: 0
13405
INSERT INTO t1 VALUES(8, 'eight');
13406
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
13408
info: Rows matched: 1 Changed: 1 Warnings: 0
13413
INSERT INTO t1 VALUES(8, 'eight');
13414
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
13416
info: Rows matched: 1 Changed: 1 Warnings: 0
13421
INSERT INTO v3 VALUES(16, 'sixteen');
13423
INSERT INTO v3 VALUES(0, 'zero');
13425
INSERT INTO v3 VALUES(7, 'seven');
13427
INSERT INTO v3 VALUES(8, 'eight');
13439
CREATE VIEW v1 AS SELECT f1, f2
13440
FROM t1 WHERE f1 BETWEEN 0 AND 10 ;
13441
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
13442
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH LOCAL CHECK OPTION ;
13443
option_variant WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing>
13444
option_variant --------------------------------------------------------------------------------
13445
INSERT INTO t1 VALUES(16, 'sixteen');
13446
INSERT INTO t1 VALUES(0, 'zero');
13447
INSERT INTO t1 VALUES(7, 'seven');
13448
INSERT INTO t1 VALUES(8, 'eight');
13468
INSERT INTO t1 VALUES(16, 'sixteen');
13469
INSERT INTO t1 VALUES(0, 'zero');
13470
INSERT INTO t1 VALUES(7, 'seven');
13471
INSERT INTO t1 VALUES(8, 'eight');
13472
DELETE FROM v3 WHERE my_col1 = 16;
13474
DELETE FROM v3 WHERE my_col1 = 0;
13476
DELETE FROM v3 WHERE my_col1 = 7;
13478
DELETE FROM v3 WHERE my_col1 = 8;
13486
INSERT INTO t1 VALUES(16, 'sixteen');
13487
INSERT INTO t1 VALUES(0, 'zero');
13488
INSERT INTO t1 VALUES(7, 'seven');
13489
INSERT INTO t1 VALUES(8, 'eight');
13490
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
13492
info: Rows matched: 0 Changed: 0 Warnings: 0
13493
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
13495
info: Rows matched: 0 Changed: 0 Warnings: 0
13496
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
13498
info: Rows matched: 0 Changed: 0 Warnings: 0
13499
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
13501
info: Rows matched: 1 Changed: 1 Warnings: 0
13509
INSERT INTO t1 VALUES(8, 'eight');
13510
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
13511
ERROR HY000: CHECK OPTION failed 'test.v3'
13516
INSERT INTO t1 VALUES(8, 'eight');
13517
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
13519
info: Rows matched: 1 Changed: 1 Warnings: 0
13524
INSERT INTO t1 VALUES(8, 'eight');
13525
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
13527
info: Rows matched: 1 Changed: 1 Warnings: 0
13532
INSERT INTO t1 VALUES(8, 'eight');
13533
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
13535
info: Rows matched: 1 Changed: 1 Warnings: 0
13540
INSERT INTO v3 VALUES(16, 'sixteen');
13542
INSERT INTO v3 VALUES(0, 'zero');
13544
INSERT INTO v3 VALUES(7, 'seven');
13545
ERROR HY000: CHECK OPTION failed 'test.v3'
13546
INSERT INTO v3 VALUES(8, 'eight');
13555
option_variant WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing>
13556
option_variant --------------------------------------------------------------------------------
13557
INSERT INTO t1 VALUES(16, 'sixteen');
13558
INSERT INTO t1 VALUES(0, 'zero');
13559
INSERT INTO t1 VALUES(7, 'seven');
13560
INSERT INTO t1 VALUES(8, 'eight');
13580
INSERT INTO t1 VALUES(16, 'sixteen');
13581
INSERT INTO t1 VALUES(0, 'zero');
13582
INSERT INTO t1 VALUES(7, 'seven');
13583
INSERT INTO t1 VALUES(8, 'eight');
13584
DELETE FROM v3 WHERE my_col1 = 16;
13586
DELETE FROM v3 WHERE my_col1 = 0;
13588
DELETE FROM v3 WHERE my_col1 = 7;
13590
DELETE FROM v3 WHERE my_col1 = 8;
13598
INSERT INTO t1 VALUES(16, 'sixteen');
13599
INSERT INTO t1 VALUES(0, 'zero');
13600
INSERT INTO t1 VALUES(7, 'seven');
13601
INSERT INTO t1 VALUES(8, 'eight');
13602
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
13604
info: Rows matched: 0 Changed: 0 Warnings: 0
13605
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
13607
info: Rows matched: 0 Changed: 0 Warnings: 0
13608
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
13610
info: Rows matched: 0 Changed: 0 Warnings: 0
13611
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
13613
info: Rows matched: 1 Changed: 1 Warnings: 0
13621
INSERT INTO t1 VALUES(8, 'eight');
13622
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
13623
ERROR HY000: CHECK OPTION failed 'test.v3'
13628
INSERT INTO t1 VALUES(8, 'eight');
13629
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
13630
ERROR HY000: CHECK OPTION failed 'test.v3'
13635
INSERT INTO t1 VALUES(8, 'eight');
13636
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
13637
ERROR HY000: CHECK OPTION failed 'test.v3'
13642
INSERT INTO t1 VALUES(8, 'eight');
13643
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
13645
info: Rows matched: 1 Changed: 1 Warnings: 0
13650
INSERT INTO v3 VALUES(16, 'sixteen');
13651
ERROR HY000: CHECK OPTION failed 'test.v3'
13652
INSERT INTO v3 VALUES(0, 'zero');
13653
ERROR HY000: CHECK OPTION failed 'test.v3'
13654
INSERT INTO v3 VALUES(7, 'seven');
13655
ERROR HY000: CHECK OPTION failed 'test.v3'
13656
INSERT INTO v3 VALUES(8, 'eight');
13663
option_variant WITH CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing>
13664
option_variant --------------------------------------------------------------------------------
13665
INSERT INTO t1 VALUES(16, 'sixteen');
13666
INSERT INTO t1 VALUES(0, 'zero');
13667
INSERT INTO t1 VALUES(7, 'seven');
13668
INSERT INTO t1 VALUES(8, 'eight');
13688
INSERT INTO t1 VALUES(16, 'sixteen');
13689
INSERT INTO t1 VALUES(0, 'zero');
13690
INSERT INTO t1 VALUES(7, 'seven');
13691
INSERT INTO t1 VALUES(8, 'eight');
13692
DELETE FROM v3 WHERE my_col1 = 16;
13694
DELETE FROM v3 WHERE my_col1 = 0;
13696
DELETE FROM v3 WHERE my_col1 = 7;
13698
DELETE FROM v3 WHERE my_col1 = 8;
13706
INSERT INTO t1 VALUES(16, 'sixteen');
13707
INSERT INTO t1 VALUES(0, 'zero');
13708
INSERT INTO t1 VALUES(7, 'seven');
13709
INSERT INTO t1 VALUES(8, 'eight');
13710
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
13712
info: Rows matched: 0 Changed: 0 Warnings: 0
13713
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
13715
info: Rows matched: 0 Changed: 0 Warnings: 0
13716
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
13718
info: Rows matched: 0 Changed: 0 Warnings: 0
13719
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
13721
info: Rows matched: 1 Changed: 1 Warnings: 0
13729
INSERT INTO t1 VALUES(8, 'eight');
13730
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
13731
ERROR HY000: CHECK OPTION failed 'test.v3'
13736
INSERT INTO t1 VALUES(8, 'eight');
13737
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
13738
ERROR HY000: CHECK OPTION failed 'test.v3'
13743
INSERT INTO t1 VALUES(8, 'eight');
13744
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
13745
ERROR HY000: CHECK OPTION failed 'test.v3'
13750
INSERT INTO t1 VALUES(8, 'eight');
13751
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
13753
info: Rows matched: 1 Changed: 1 Warnings: 0
13758
INSERT INTO v3 VALUES(16, 'sixteen');
13759
ERROR HY000: CHECK OPTION failed 'test.v3'
13760
INSERT INTO v3 VALUES(0, 'zero');
13761
ERROR HY000: CHECK OPTION failed 'test.v3'
13762
INSERT INTO v3 VALUES(7, 'seven');
13763
ERROR HY000: CHECK OPTION failed 'test.v3'
13764
INSERT INTO v3 VALUES(8, 'eight');
13771
option_variant <nothing> - WITH LOCAL CHECK OPTION - <nothing>
13772
option_variant --------------------------------------------------------------------------------
13773
INSERT INTO t1 VALUES(16, 'sixteen');
13774
INSERT INTO t1 VALUES(0, 'zero');
13775
INSERT INTO t1 VALUES(7, 'seven');
13776
INSERT INTO t1 VALUES(8, 'eight');
13796
INSERT INTO t1 VALUES(16, 'sixteen');
13797
INSERT INTO t1 VALUES(0, 'zero');
13798
INSERT INTO t1 VALUES(7, 'seven');
13799
INSERT INTO t1 VALUES(8, 'eight');
13800
DELETE FROM v3 WHERE my_col1 = 16;
13802
DELETE FROM v3 WHERE my_col1 = 0;
13804
DELETE FROM v3 WHERE my_col1 = 7;
13806
DELETE FROM v3 WHERE my_col1 = 8;
13814
INSERT INTO t1 VALUES(16, 'sixteen');
13815
INSERT INTO t1 VALUES(0, 'zero');
13816
INSERT INTO t1 VALUES(7, 'seven');
13817
INSERT INTO t1 VALUES(8, 'eight');
13818
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
13820
info: Rows matched: 0 Changed: 0 Warnings: 0
13821
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
13823
info: Rows matched: 0 Changed: 0 Warnings: 0
13824
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
13826
info: Rows matched: 0 Changed: 0 Warnings: 0
13827
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
13829
info: Rows matched: 1 Changed: 1 Warnings: 0
13837
INSERT INTO t1 VALUES(8, 'eight');
13838
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
13840
info: Rows matched: 1 Changed: 1 Warnings: 0
13845
INSERT INTO t1 VALUES(8, 'eight');
13846
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
13848
info: Rows matched: 1 Changed: 1 Warnings: 0
13853
INSERT INTO t1 VALUES(8, 'eight');
13854
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
13856
info: Rows matched: 1 Changed: 1 Warnings: 0
13861
INSERT INTO t1 VALUES(8, 'eight');
13862
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
13864
info: Rows matched: 1 Changed: 1 Warnings: 0
13869
INSERT INTO v3 VALUES(16, 'sixteen');
13871
INSERT INTO v3 VALUES(0, 'zero');
13873
INSERT INTO v3 VALUES(7, 'seven');
13875
INSERT INTO v3 VALUES(8, 'eight');
13886
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
13887
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH CASCADED CHECK OPTION ;
13888
option_variant WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing>
13889
option_variant --------------------------------------------------------------------------------
13890
INSERT INTO t1 VALUES(16, 'sixteen');
13891
INSERT INTO t1 VALUES(0, 'zero');
13892
INSERT INTO t1 VALUES(7, 'seven');
13893
INSERT INTO t1 VALUES(8, 'eight');
13913
INSERT INTO t1 VALUES(16, 'sixteen');
13914
INSERT INTO t1 VALUES(0, 'zero');
13915
INSERT INTO t1 VALUES(7, 'seven');
13916
INSERT INTO t1 VALUES(8, 'eight');
13917
DELETE FROM v3 WHERE my_col1 = 16;
13919
DELETE FROM v3 WHERE my_col1 = 0;
13921
DELETE FROM v3 WHERE my_col1 = 7;
13923
DELETE FROM v3 WHERE my_col1 = 8;
13931
INSERT INTO t1 VALUES(16, 'sixteen');
13932
INSERT INTO t1 VALUES(0, 'zero');
13933
INSERT INTO t1 VALUES(7, 'seven');
13934
INSERT INTO t1 VALUES(8, 'eight');
13935
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
13937
info: Rows matched: 0 Changed: 0 Warnings: 0
13938
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
13940
info: Rows matched: 0 Changed: 0 Warnings: 0
13941
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
13943
info: Rows matched: 0 Changed: 0 Warnings: 0
13944
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
13946
info: Rows matched: 1 Changed: 1 Warnings: 0
13954
INSERT INTO t1 VALUES(8, 'eight');
13955
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
13956
ERROR HY000: CHECK OPTION failed 'test.v3'
13961
INSERT INTO t1 VALUES(8, 'eight');
13962
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
13964
info: Rows matched: 1 Changed: 1 Warnings: 0
13969
INSERT INTO t1 VALUES(8, 'eight');
13970
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
13972
info: Rows matched: 1 Changed: 1 Warnings: 0
13977
INSERT INTO t1 VALUES(8, 'eight');
13978
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
13980
info: Rows matched: 1 Changed: 1 Warnings: 0
13985
INSERT INTO v3 VALUES(16, 'sixteen');
13987
INSERT INTO v3 VALUES(0, 'zero');
13989
INSERT INTO v3 VALUES(7, 'seven');
13990
ERROR HY000: CHECK OPTION failed 'test.v3'
13991
INSERT INTO v3 VALUES(8, 'eight');
14000
option_variant WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing>
14001
option_variant --------------------------------------------------------------------------------
14002
INSERT INTO t1 VALUES(16, 'sixteen');
14003
INSERT INTO t1 VALUES(0, 'zero');
14004
INSERT INTO t1 VALUES(7, 'seven');
14005
INSERT INTO t1 VALUES(8, 'eight');
14025
INSERT INTO t1 VALUES(16, 'sixteen');
14026
INSERT INTO t1 VALUES(0, 'zero');
14027
INSERT INTO t1 VALUES(7, 'seven');
14028
INSERT INTO t1 VALUES(8, 'eight');
14029
DELETE FROM v3 WHERE my_col1 = 16;
14031
DELETE FROM v3 WHERE my_col1 = 0;
14033
DELETE FROM v3 WHERE my_col1 = 7;
14035
DELETE FROM v3 WHERE my_col1 = 8;
14043
INSERT INTO t1 VALUES(16, 'sixteen');
14044
INSERT INTO t1 VALUES(0, 'zero');
14045
INSERT INTO t1 VALUES(7, 'seven');
14046
INSERT INTO t1 VALUES(8, 'eight');
14047
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
14049
info: Rows matched: 0 Changed: 0 Warnings: 0
14050
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
14052
info: Rows matched: 0 Changed: 0 Warnings: 0
14053
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
14055
info: Rows matched: 0 Changed: 0 Warnings: 0
14056
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
14058
info: Rows matched: 1 Changed: 1 Warnings: 0
14066
INSERT INTO t1 VALUES(8, 'eight');
14067
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
14068
ERROR HY000: CHECK OPTION failed 'test.v3'
14073
INSERT INTO t1 VALUES(8, 'eight');
14074
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
14075
ERROR HY000: CHECK OPTION failed 'test.v3'
14080
INSERT INTO t1 VALUES(8, 'eight');
14081
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
14082
ERROR HY000: CHECK OPTION failed 'test.v3'
14087
INSERT INTO t1 VALUES(8, 'eight');
14088
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
14090
info: Rows matched: 1 Changed: 1 Warnings: 0
14095
INSERT INTO v3 VALUES(16, 'sixteen');
14096
ERROR HY000: CHECK OPTION failed 'test.v3'
14097
INSERT INTO v3 VALUES(0, 'zero');
14098
ERROR HY000: CHECK OPTION failed 'test.v3'
14099
INSERT INTO v3 VALUES(7, 'seven');
14100
ERROR HY000: CHECK OPTION failed 'test.v3'
14101
INSERT INTO v3 VALUES(8, 'eight');
14108
option_variant WITH CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing>
14109
option_variant --------------------------------------------------------------------------------
14110
INSERT INTO t1 VALUES(16, 'sixteen');
14111
INSERT INTO t1 VALUES(0, 'zero');
14112
INSERT INTO t1 VALUES(7, 'seven');
14113
INSERT INTO t1 VALUES(8, 'eight');
14133
INSERT INTO t1 VALUES(16, 'sixteen');
14134
INSERT INTO t1 VALUES(0, 'zero');
14135
INSERT INTO t1 VALUES(7, 'seven');
14136
INSERT INTO t1 VALUES(8, 'eight');
14137
DELETE FROM v3 WHERE my_col1 = 16;
14139
DELETE FROM v3 WHERE my_col1 = 0;
14141
DELETE FROM v3 WHERE my_col1 = 7;
14143
DELETE FROM v3 WHERE my_col1 = 8;
14151
INSERT INTO t1 VALUES(16, 'sixteen');
14152
INSERT INTO t1 VALUES(0, 'zero');
14153
INSERT INTO t1 VALUES(7, 'seven');
14154
INSERT INTO t1 VALUES(8, 'eight');
14155
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
14157
info: Rows matched: 0 Changed: 0 Warnings: 0
14158
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
14160
info: Rows matched: 0 Changed: 0 Warnings: 0
14161
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
14163
info: Rows matched: 0 Changed: 0 Warnings: 0
14164
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
14166
info: Rows matched: 1 Changed: 1 Warnings: 0
14174
INSERT INTO t1 VALUES(8, 'eight');
14175
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
14176
ERROR HY000: CHECK OPTION failed 'test.v3'
14181
INSERT INTO t1 VALUES(8, 'eight');
14182
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
14183
ERROR HY000: CHECK OPTION failed 'test.v3'
14188
INSERT INTO t1 VALUES(8, 'eight');
14189
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
14190
ERROR HY000: CHECK OPTION failed 'test.v3'
14195
INSERT INTO t1 VALUES(8, 'eight');
14196
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
14198
info: Rows matched: 1 Changed: 1 Warnings: 0
14203
INSERT INTO v3 VALUES(16, 'sixteen');
14204
ERROR HY000: CHECK OPTION failed 'test.v3'
14205
INSERT INTO v3 VALUES(0, 'zero');
14206
ERROR HY000: CHECK OPTION failed 'test.v3'
14207
INSERT INTO v3 VALUES(7, 'seven');
14208
ERROR HY000: CHECK OPTION failed 'test.v3'
14209
INSERT INTO v3 VALUES(8, 'eight');
14216
option_variant <nothing> - WITH CASCADED CHECK OPTION - <nothing>
14217
option_variant --------------------------------------------------------------------------------
14218
INSERT INTO t1 VALUES(16, 'sixteen');
14219
INSERT INTO t1 VALUES(0, 'zero');
14220
INSERT INTO t1 VALUES(7, 'seven');
14221
INSERT INTO t1 VALUES(8, 'eight');
14241
INSERT INTO t1 VALUES(16, 'sixteen');
14242
INSERT INTO t1 VALUES(0, 'zero');
14243
INSERT INTO t1 VALUES(7, 'seven');
14244
INSERT INTO t1 VALUES(8, 'eight');
14245
DELETE FROM v3 WHERE my_col1 = 16;
14247
DELETE FROM v3 WHERE my_col1 = 0;
14249
DELETE FROM v3 WHERE my_col1 = 7;
14251
DELETE FROM v3 WHERE my_col1 = 8;
14259
INSERT INTO t1 VALUES(16, 'sixteen');
14260
INSERT INTO t1 VALUES(0, 'zero');
14261
INSERT INTO t1 VALUES(7, 'seven');
14262
INSERT INTO t1 VALUES(8, 'eight');
14263
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
14265
info: Rows matched: 0 Changed: 0 Warnings: 0
14266
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
14268
info: Rows matched: 0 Changed: 0 Warnings: 0
14269
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
14271
info: Rows matched: 0 Changed: 0 Warnings: 0
14272
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
14274
info: Rows matched: 1 Changed: 1 Warnings: 0
14282
INSERT INTO t1 VALUES(8, 'eight');
14283
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
14285
info: Rows matched: 1 Changed: 1 Warnings: 0
14290
INSERT INTO t1 VALUES(8, 'eight');
14291
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
14293
info: Rows matched: 1 Changed: 1 Warnings: 0
14298
INSERT INTO t1 VALUES(8, 'eight');
14299
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
14301
info: Rows matched: 1 Changed: 1 Warnings: 0
14306
INSERT INTO t1 VALUES(8, 'eight');
14307
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
14309
info: Rows matched: 1 Changed: 1 Warnings: 0
14314
INSERT INTO v3 VALUES(16, 'sixteen');
14316
INSERT INTO v3 VALUES(0, 'zero');
14318
INSERT INTO v3 VALUES(7, 'seven');
14320
INSERT INTO v3 VALUES(8, 'eight');
14331
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
14332
FROM v1 WHERE f1 BETWEEN 6 AND 16 WITH CHECK OPTION ;
14333
option_variant WITH LOCAL CHECK OPTION - WITH CHECK OPTION - <nothing>
14334
option_variant --------------------------------------------------------------------------------
14335
INSERT INTO t1 VALUES(16, 'sixteen');
14336
INSERT INTO t1 VALUES(0, 'zero');
14337
INSERT INTO t1 VALUES(7, 'seven');
14338
INSERT INTO t1 VALUES(8, 'eight');
14358
INSERT INTO t1 VALUES(16, 'sixteen');
14359
INSERT INTO t1 VALUES(0, 'zero');
14360
INSERT INTO t1 VALUES(7, 'seven');
14361
INSERT INTO t1 VALUES(8, 'eight');
14362
DELETE FROM v3 WHERE my_col1 = 16;
14364
DELETE FROM v3 WHERE my_col1 = 0;
14366
DELETE FROM v3 WHERE my_col1 = 7;
14368
DELETE FROM v3 WHERE my_col1 = 8;
14376
INSERT INTO t1 VALUES(16, 'sixteen');
14377
INSERT INTO t1 VALUES(0, 'zero');
14378
INSERT INTO t1 VALUES(7, 'seven');
14379
INSERT INTO t1 VALUES(8, 'eight');
14380
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
14382
info: Rows matched: 0 Changed: 0 Warnings: 0
14383
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
14385
info: Rows matched: 0 Changed: 0 Warnings: 0
14386
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
14388
info: Rows matched: 0 Changed: 0 Warnings: 0
14389
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
14391
info: Rows matched: 1 Changed: 1 Warnings: 0
14399
INSERT INTO t1 VALUES(8, 'eight');
14400
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
14401
ERROR HY000: CHECK OPTION failed 'test.v3'
14406
INSERT INTO t1 VALUES(8, 'eight');
14407
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
14409
info: Rows matched: 1 Changed: 1 Warnings: 0
14414
INSERT INTO t1 VALUES(8, 'eight');
14415
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
14417
info: Rows matched: 1 Changed: 1 Warnings: 0
14422
INSERT INTO t1 VALUES(8, 'eight');
14423
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
14425
info: Rows matched: 1 Changed: 1 Warnings: 0
14430
INSERT INTO v3 VALUES(16, 'sixteen');
14432
INSERT INTO v3 VALUES(0, 'zero');
14434
INSERT INTO v3 VALUES(7, 'seven');
14435
ERROR HY000: CHECK OPTION failed 'test.v3'
14436
INSERT INTO v3 VALUES(8, 'eight');
14445
option_variant WITH CASCADED CHECK OPTION - WITH CHECK OPTION - <nothing>
14446
option_variant --------------------------------------------------------------------------------
14447
INSERT INTO t1 VALUES(16, 'sixteen');
14448
INSERT INTO t1 VALUES(0, 'zero');
14449
INSERT INTO t1 VALUES(7, 'seven');
14450
INSERT INTO t1 VALUES(8, 'eight');
14470
INSERT INTO t1 VALUES(16, 'sixteen');
14471
INSERT INTO t1 VALUES(0, 'zero');
14472
INSERT INTO t1 VALUES(7, 'seven');
14473
INSERT INTO t1 VALUES(8, 'eight');
14474
DELETE FROM v3 WHERE my_col1 = 16;
14476
DELETE FROM v3 WHERE my_col1 = 0;
14478
DELETE FROM v3 WHERE my_col1 = 7;
14480
DELETE FROM v3 WHERE my_col1 = 8;
14488
INSERT INTO t1 VALUES(16, 'sixteen');
14489
INSERT INTO t1 VALUES(0, 'zero');
14490
INSERT INTO t1 VALUES(7, 'seven');
14491
INSERT INTO t1 VALUES(8, 'eight');
14492
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
14494
info: Rows matched: 0 Changed: 0 Warnings: 0
14495
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
14497
info: Rows matched: 0 Changed: 0 Warnings: 0
14498
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
14500
info: Rows matched: 0 Changed: 0 Warnings: 0
14501
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
14503
info: Rows matched: 1 Changed: 1 Warnings: 0
14511
INSERT INTO t1 VALUES(8, 'eight');
14512
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
14513
ERROR HY000: CHECK OPTION failed 'test.v3'
14518
INSERT INTO t1 VALUES(8, 'eight');
14519
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
14520
ERROR HY000: CHECK OPTION failed 'test.v3'
14525
INSERT INTO t1 VALUES(8, 'eight');
14526
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
14527
ERROR HY000: CHECK OPTION failed 'test.v3'
14532
INSERT INTO t1 VALUES(8, 'eight');
14533
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
14535
info: Rows matched: 1 Changed: 1 Warnings: 0
14540
INSERT INTO v3 VALUES(16, 'sixteen');
14541
ERROR HY000: CHECK OPTION failed 'test.v3'
14542
INSERT INTO v3 VALUES(0, 'zero');
14543
ERROR HY000: CHECK OPTION failed 'test.v3'
14544
INSERT INTO v3 VALUES(7, 'seven');
14545
ERROR HY000: CHECK OPTION failed 'test.v3'
14546
INSERT INTO v3 VALUES(8, 'eight');
14553
option_variant WITH CHECK OPTION - WITH CHECK OPTION - <nothing>
14554
option_variant --------------------------------------------------------------------------------
14555
INSERT INTO t1 VALUES(16, 'sixteen');
14556
INSERT INTO t1 VALUES(0, 'zero');
14557
INSERT INTO t1 VALUES(7, 'seven');
14558
INSERT INTO t1 VALUES(8, 'eight');
14578
INSERT INTO t1 VALUES(16, 'sixteen');
14579
INSERT INTO t1 VALUES(0, 'zero');
14580
INSERT INTO t1 VALUES(7, 'seven');
14581
INSERT INTO t1 VALUES(8, 'eight');
14582
DELETE FROM v3 WHERE my_col1 = 16;
14584
DELETE FROM v3 WHERE my_col1 = 0;
14586
DELETE FROM v3 WHERE my_col1 = 7;
14588
DELETE FROM v3 WHERE my_col1 = 8;
14596
INSERT INTO t1 VALUES(16, 'sixteen');
14597
INSERT INTO t1 VALUES(0, 'zero');
14598
INSERT INTO t1 VALUES(7, 'seven');
14599
INSERT INTO t1 VALUES(8, 'eight');
14600
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
14602
info: Rows matched: 0 Changed: 0 Warnings: 0
14603
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
14605
info: Rows matched: 0 Changed: 0 Warnings: 0
14606
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
14608
info: Rows matched: 0 Changed: 0 Warnings: 0
14609
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
14611
info: Rows matched: 1 Changed: 1 Warnings: 0
14619
INSERT INTO t1 VALUES(8, 'eight');
14620
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
14621
ERROR HY000: CHECK OPTION failed 'test.v3'
14626
INSERT INTO t1 VALUES(8, 'eight');
14627
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
14628
ERROR HY000: CHECK OPTION failed 'test.v3'
14633
INSERT INTO t1 VALUES(8, 'eight');
14634
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
14635
ERROR HY000: CHECK OPTION failed 'test.v3'
14640
INSERT INTO t1 VALUES(8, 'eight');
14641
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
14643
info: Rows matched: 1 Changed: 1 Warnings: 0
14648
INSERT INTO v3 VALUES(16, 'sixteen');
14649
ERROR HY000: CHECK OPTION failed 'test.v3'
14650
INSERT INTO v3 VALUES(0, 'zero');
14651
ERROR HY000: CHECK OPTION failed 'test.v3'
14652
INSERT INTO v3 VALUES(7, 'seven');
14653
ERROR HY000: CHECK OPTION failed 'test.v3'
14654
INSERT INTO v3 VALUES(8, 'eight');
14661
option_variant <nothing> - WITH CHECK OPTION - <nothing>
14662
option_variant --------------------------------------------------------------------------------
14663
INSERT INTO t1 VALUES(16, 'sixteen');
14664
INSERT INTO t1 VALUES(0, 'zero');
14665
INSERT INTO t1 VALUES(7, 'seven');
14666
INSERT INTO t1 VALUES(8, 'eight');
14686
INSERT INTO t1 VALUES(16, 'sixteen');
14687
INSERT INTO t1 VALUES(0, 'zero');
14688
INSERT INTO t1 VALUES(7, 'seven');
14689
INSERT INTO t1 VALUES(8, 'eight');
14690
DELETE FROM v3 WHERE my_col1 = 16;
14692
DELETE FROM v3 WHERE my_col1 = 0;
14694
DELETE FROM v3 WHERE my_col1 = 7;
14696
DELETE FROM v3 WHERE my_col1 = 8;
14704
INSERT INTO t1 VALUES(16, 'sixteen');
14705
INSERT INTO t1 VALUES(0, 'zero');
14706
INSERT INTO t1 VALUES(7, 'seven');
14707
INSERT INTO t1 VALUES(8, 'eight');
14708
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
14710
info: Rows matched: 0 Changed: 0 Warnings: 0
14711
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
14713
info: Rows matched: 0 Changed: 0 Warnings: 0
14714
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
14716
info: Rows matched: 0 Changed: 0 Warnings: 0
14717
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
14719
info: Rows matched: 1 Changed: 1 Warnings: 0
14727
INSERT INTO t1 VALUES(8, 'eight');
14728
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
14730
info: Rows matched: 1 Changed: 1 Warnings: 0
14735
INSERT INTO t1 VALUES(8, 'eight');
14736
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
14738
info: Rows matched: 1 Changed: 1 Warnings: 0
14743
INSERT INTO t1 VALUES(8, 'eight');
14744
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
14746
info: Rows matched: 1 Changed: 1 Warnings: 0
14751
INSERT INTO t1 VALUES(8, 'eight');
14752
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
14754
info: Rows matched: 1 Changed: 1 Warnings: 0
14759
INSERT INTO v3 VALUES(16, 'sixteen');
14761
INSERT INTO v3 VALUES(0, 'zero');
14763
INSERT INTO v3 VALUES(7, 'seven');
14765
INSERT INTO v3 VALUES(8, 'eight');
14776
CREATE VIEW v2 AS SELECT f1 AS col1, f2 AS col2
14777
FROM v1 WHERE f1 BETWEEN 6 AND 16 ;
14778
option_variant WITH LOCAL CHECK OPTION - <nothing> - <nothing>
14779
option_variant --------------------------------------------------------------------------------
14780
INSERT INTO t1 VALUES(16, 'sixteen');
14781
INSERT INTO t1 VALUES(0, 'zero');
14782
INSERT INTO t1 VALUES(7, 'seven');
14783
INSERT INTO t1 VALUES(8, 'eight');
14803
INSERT INTO t1 VALUES(16, 'sixteen');
14804
INSERT INTO t1 VALUES(0, 'zero');
14805
INSERT INTO t1 VALUES(7, 'seven');
14806
INSERT INTO t1 VALUES(8, 'eight');
14807
DELETE FROM v3 WHERE my_col1 = 16;
14809
DELETE FROM v3 WHERE my_col1 = 0;
14811
DELETE FROM v3 WHERE my_col1 = 7;
14813
DELETE FROM v3 WHERE my_col1 = 8;
14821
INSERT INTO t1 VALUES(16, 'sixteen');
14822
INSERT INTO t1 VALUES(0, 'zero');
14823
INSERT INTO t1 VALUES(7, 'seven');
14824
INSERT INTO t1 VALUES(8, 'eight');
14825
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
14827
info: Rows matched: 0 Changed: 0 Warnings: 0
14828
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
14830
info: Rows matched: 0 Changed: 0 Warnings: 0
14831
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
14833
info: Rows matched: 0 Changed: 0 Warnings: 0
14834
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
14836
info: Rows matched: 1 Changed: 1 Warnings: 0
14844
INSERT INTO t1 VALUES(8, 'eight');
14845
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
14846
ERROR HY000: CHECK OPTION failed 'test.v3'
14851
INSERT INTO t1 VALUES(8, 'eight');
14852
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
14854
info: Rows matched: 1 Changed: 1 Warnings: 0
14859
INSERT INTO t1 VALUES(8, 'eight');
14860
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
14862
info: Rows matched: 1 Changed: 1 Warnings: 0
14867
INSERT INTO t1 VALUES(8, 'eight');
14868
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
14870
info: Rows matched: 1 Changed: 1 Warnings: 0
14875
INSERT INTO v3 VALUES(16, 'sixteen');
14877
INSERT INTO v3 VALUES(0, 'zero');
14879
INSERT INTO v3 VALUES(7, 'seven');
14880
ERROR HY000: CHECK OPTION failed 'test.v3'
14881
INSERT INTO v3 VALUES(8, 'eight');
14890
option_variant WITH CASCADED CHECK OPTION - <nothing> - <nothing>
14891
option_variant --------------------------------------------------------------------------------
14892
INSERT INTO t1 VALUES(16, 'sixteen');
14893
INSERT INTO t1 VALUES(0, 'zero');
14894
INSERT INTO t1 VALUES(7, 'seven');
14895
INSERT INTO t1 VALUES(8, 'eight');
14915
INSERT INTO t1 VALUES(16, 'sixteen');
14916
INSERT INTO t1 VALUES(0, 'zero');
14917
INSERT INTO t1 VALUES(7, 'seven');
14918
INSERT INTO t1 VALUES(8, 'eight');
14919
DELETE FROM v3 WHERE my_col1 = 16;
14921
DELETE FROM v3 WHERE my_col1 = 0;
14923
DELETE FROM v3 WHERE my_col1 = 7;
14925
DELETE FROM v3 WHERE my_col1 = 8;
14933
INSERT INTO t1 VALUES(16, 'sixteen');
14934
INSERT INTO t1 VALUES(0, 'zero');
14935
INSERT INTO t1 VALUES(7, 'seven');
14936
INSERT INTO t1 VALUES(8, 'eight');
14937
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
14939
info: Rows matched: 0 Changed: 0 Warnings: 0
14940
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
14942
info: Rows matched: 0 Changed: 0 Warnings: 0
14943
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
14945
info: Rows matched: 0 Changed: 0 Warnings: 0
14946
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
14948
info: Rows matched: 1 Changed: 1 Warnings: 0
14956
INSERT INTO t1 VALUES(8, 'eight');
14957
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
14958
ERROR HY000: CHECK OPTION failed 'test.v3'
14963
INSERT INTO t1 VALUES(8, 'eight');
14964
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
14965
ERROR HY000: CHECK OPTION failed 'test.v3'
14970
INSERT INTO t1 VALUES(8, 'eight');
14971
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
14972
ERROR HY000: CHECK OPTION failed 'test.v3'
14977
INSERT INTO t1 VALUES(8, 'eight');
14978
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
14980
info: Rows matched: 1 Changed: 1 Warnings: 0
14985
INSERT INTO v3 VALUES(16, 'sixteen');
14986
ERROR HY000: CHECK OPTION failed 'test.v3'
14987
INSERT INTO v3 VALUES(0, 'zero');
14988
ERROR HY000: CHECK OPTION failed 'test.v3'
14989
INSERT INTO v3 VALUES(7, 'seven');
14990
ERROR HY000: CHECK OPTION failed 'test.v3'
14991
INSERT INTO v3 VALUES(8, 'eight');
14998
option_variant WITH CHECK OPTION - <nothing> - <nothing>
14999
option_variant --------------------------------------------------------------------------------
15000
INSERT INTO t1 VALUES(16, 'sixteen');
15001
INSERT INTO t1 VALUES(0, 'zero');
15002
INSERT INTO t1 VALUES(7, 'seven');
15003
INSERT INTO t1 VALUES(8, 'eight');
15023
INSERT INTO t1 VALUES(16, 'sixteen');
15024
INSERT INTO t1 VALUES(0, 'zero');
15025
INSERT INTO t1 VALUES(7, 'seven');
15026
INSERT INTO t1 VALUES(8, 'eight');
15027
DELETE FROM v3 WHERE my_col1 = 16;
15029
DELETE FROM v3 WHERE my_col1 = 0;
15031
DELETE FROM v3 WHERE my_col1 = 7;
15033
DELETE FROM v3 WHERE my_col1 = 8;
15041
INSERT INTO t1 VALUES(16, 'sixteen');
15042
INSERT INTO t1 VALUES(0, 'zero');
15043
INSERT INTO t1 VALUES(7, 'seven');
15044
INSERT INTO t1 VALUES(8, 'eight');
15045
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
15047
info: Rows matched: 0 Changed: 0 Warnings: 0
15048
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
15050
info: Rows matched: 0 Changed: 0 Warnings: 0
15051
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
15053
info: Rows matched: 0 Changed: 0 Warnings: 0
15054
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
15056
info: Rows matched: 1 Changed: 1 Warnings: 0
15064
INSERT INTO t1 VALUES(8, 'eight');
15065
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
15066
ERROR HY000: CHECK OPTION failed 'test.v3'
15071
INSERT INTO t1 VALUES(8, 'eight');
15072
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
15073
ERROR HY000: CHECK OPTION failed 'test.v3'
15078
INSERT INTO t1 VALUES(8, 'eight');
15079
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
15080
ERROR HY000: CHECK OPTION failed 'test.v3'
15085
INSERT INTO t1 VALUES(8, 'eight');
15086
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
15088
info: Rows matched: 1 Changed: 1 Warnings: 0
15093
INSERT INTO v3 VALUES(16, 'sixteen');
15094
ERROR HY000: CHECK OPTION failed 'test.v3'
15095
INSERT INTO v3 VALUES(0, 'zero');
15096
ERROR HY000: CHECK OPTION failed 'test.v3'
15097
INSERT INTO v3 VALUES(7, 'seven');
15098
ERROR HY000: CHECK OPTION failed 'test.v3'
15099
INSERT INTO v3 VALUES(8, 'eight');
15106
option_variant <nothing> - <nothing> - <nothing>
15107
option_variant --------------------------------------------------------------------------------
15108
INSERT INTO t1 VALUES(16, 'sixteen');
15109
INSERT INTO t1 VALUES(0, 'zero');
15110
INSERT INTO t1 VALUES(7, 'seven');
15111
INSERT INTO t1 VALUES(8, 'eight');
15131
INSERT INTO t1 VALUES(16, 'sixteen');
15132
INSERT INTO t1 VALUES(0, 'zero');
15133
INSERT INTO t1 VALUES(7, 'seven');
15134
INSERT INTO t1 VALUES(8, 'eight');
15135
DELETE FROM v3 WHERE my_col1 = 16;
15137
DELETE FROM v3 WHERE my_col1 = 0;
15139
DELETE FROM v3 WHERE my_col1 = 7;
15141
DELETE FROM v3 WHERE my_col1 = 8;
15149
INSERT INTO t1 VALUES(16, 'sixteen');
15150
INSERT INTO t1 VALUES(0, 'zero');
15151
INSERT INTO t1 VALUES(7, 'seven');
15152
INSERT INTO t1 VALUES(8, 'eight');
15153
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 16;
15155
info: Rows matched: 0 Changed: 0 Warnings: 0
15156
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 0;
15158
info: Rows matched: 0 Changed: 0 Warnings: 0
15159
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 7;
15161
info: Rows matched: 0 Changed: 0 Warnings: 0
15162
UPDATE v3 SET my_col2 = 'whatever' WHERE my_col1 = 8;
15164
info: Rows matched: 1 Changed: 1 Warnings: 0
15172
INSERT INTO t1 VALUES(8, 'eight');
15173
UPDATE v3 SET my_col1 = 7 WHERE my_col1 = 8;
15175
info: Rows matched: 1 Changed: 1 Warnings: 0
15180
INSERT INTO t1 VALUES(8, 'eight');
15181
UPDATE v3 SET my_col1 = 0 WHERE my_col1 = 8;
15183
info: Rows matched: 1 Changed: 1 Warnings: 0
15188
INSERT INTO t1 VALUES(8, 'eight');
15189
UPDATE v3 SET my_col1 = 16 WHERE my_col1 = 8;
15191
info: Rows matched: 1 Changed: 1 Warnings: 0
15196
INSERT INTO t1 VALUES(8, 'eight');
15197
UPDATE v3 SET my_col1 = 10 WHERE my_col1 = 8;
15199
info: Rows matched: 1 Changed: 1 Warnings: 0
15204
INSERT INTO v3 VALUES(16, 'sixteen');
15206
INSERT INTO v3 VALUES(0, 'zero');
15208
INSERT INTO v3 VALUES(7, 'seven');
15210
INSERT INTO v3 VALUES(8, 'eight');
15222
SELECT * FROM t1_results ORDER BY v3_to_v1_options;
15223
v3_to_v1_options statement v3_to_v1_violation errno
15224
<nothing> - <nothing> - <nothing> UPDATE _v2_ 0
15225
<nothing> - <nothing> - <nothing> INSERT _v2_ 0
15226
<nothing> - <nothing> - <nothing> INSERT _ _v1 0
15227
<nothing> - <nothing> - <nothing> UPDATE _ _ 0
15228
<nothing> - <nothing> - <nothing> UPDATE _ _v1 0
15229
<nothing> - <nothing> - <nothing> UPDATE v3_ _ 0
15230
<nothing> - <nothing> - <nothing> INSERT _ _ 0
15231
<nothing> - <nothing> - WITH CHECK OPTION UPDATE _v2_ 0
15232
<nothing> - <nothing> - WITH CHECK OPTION INSERT _ _ 0
15233
<nothing> - <nothing> - WITH CHECK OPTION UPDATE _ _v1 0
15234
<nothing> - <nothing> - WITH CHECK OPTION UPDATE _ _ 0
15235
<nothing> - <nothing> - WITH CHECK OPTION UPDATE v3_ _ 0
15236
<nothing> - <nothing> - WITH CHECK OPTION INSERT _v2_ 0
15237
<nothing> - <nothing> - WITH CHECK OPTION INSERT _ _v1 0
15238
<nothing> - <nothing> - WITH CASCADED CHECK OPTION INSERT _v2_ 0
15239
<nothing> - <nothing> - WITH CASCADED CHECK OPTION INSERT _ _ 0
15240
<nothing> - <nothing> - WITH CASCADED CHECK OPTION INSERT _ _v1 0
15241
<nothing> - <nothing> - WITH CASCADED CHECK OPTION UPDATE _ _ 0
15242
<nothing> - <nothing> - WITH CASCADED CHECK OPTION UPDATE _ _v1 0
15243
<nothing> - <nothing> - WITH CASCADED CHECK OPTION UPDATE _v2_ 0
15244
<nothing> - <nothing> - WITH CASCADED CHECK OPTION UPDATE v3_ _ 0
15245
<nothing> - <nothing> - WITH LOCAL CHECK OPTION UPDATE _ _v1 0
15246
<nothing> - <nothing> - WITH LOCAL CHECK OPTION INSERT _v2_ 0
15247
<nothing> - <nothing> - WITH LOCAL CHECK OPTION INSERT _ _v1 0
15248
<nothing> - <nothing> - WITH LOCAL CHECK OPTION INSERT _ _ 0
15249
<nothing> - <nothing> - WITH LOCAL CHECK OPTION UPDATE v3_ _ 0
15250
<nothing> - <nothing> - WITH LOCAL CHECK OPTION UPDATE _v2_ 0
15251
<nothing> - <nothing> - WITH LOCAL CHECK OPTION UPDATE _ _ 0
15252
<nothing> - WITH CHECK OPTION - <nothing> UPDATE _v2_ 0
15253
<nothing> - WITH CHECK OPTION - <nothing> INSERT _v2_ 0
15254
<nothing> - WITH CHECK OPTION - <nothing> UPDATE v3_ _ 0
15255
<nothing> - WITH CHECK OPTION - <nothing> UPDATE _ _v1 0
15256
<nothing> - WITH CHECK OPTION - <nothing> UPDATE _ _ 0
15257
<nothing> - WITH CHECK OPTION - <nothing> INSERT _ _v1 0
15258
<nothing> - WITH CHECK OPTION - <nothing> INSERT _ _ 0
15259
<nothing> - WITH CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 0
15260
<nothing> - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 0
15261
<nothing> - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
15262
<nothing> - WITH CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 0
15263
<nothing> - WITH CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 0
15264
<nothing> - WITH CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
15265
<nothing> - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 0
15266
<nothing> - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
15267
<nothing> - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 0
15268
<nothing> - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 0
15269
<nothing> - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
15270
<nothing> - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 0
15271
<nothing> - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 0
15272
<nothing> - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 0
15273
<nothing> - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 0
15274
<nothing> - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
15275
<nothing> - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 0
15276
<nothing> - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 0
15277
<nothing> - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
15278
<nothing> - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 0
15279
<nothing> - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 0
15280
<nothing> - WITH CASCADED CHECK OPTION - <nothing> INSERT _ _v1 0
15281
<nothing> - WITH CASCADED CHECK OPTION - <nothing> UPDATE _ _v1 0
15282
<nothing> - WITH CASCADED CHECK OPTION - <nothing> UPDATE _v2_ 0
15283
<nothing> - WITH CASCADED CHECK OPTION - <nothing> UPDATE _ _ 0
15284
<nothing> - WITH CASCADED CHECK OPTION - <nothing> UPDATE v3_ _ 0
15285
<nothing> - WITH CASCADED CHECK OPTION - <nothing> INSERT _ _ 0
15286
<nothing> - WITH CASCADED CHECK OPTION - <nothing> INSERT _v2_ 0
15287
<nothing> - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 0
15288
<nothing> - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 0
15289
<nothing> - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
15290
<nothing> - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 0
15291
<nothing> - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 0
15292
<nothing> - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
15293
<nothing> - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 0
15294
<nothing> - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 0
15295
<nothing> - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 0
15296
<nothing> - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 0
15297
<nothing> - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
15298
<nothing> - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
15299
<nothing> - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 0
15300
<nothing> - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 0
15301
<nothing> - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 0
15302
<nothing> - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
15303
<nothing> - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
15304
<nothing> - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 0
15305
<nothing> - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 0
15306
<nothing> - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 0
15307
<nothing> - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 0
15308
<nothing> - WITH LOCAL CHECK OPTION - <nothing> UPDATE v3_ _ 0
15309
<nothing> - WITH LOCAL CHECK OPTION - <nothing> INSERT _ _ 0
15310
<nothing> - WITH LOCAL CHECK OPTION - <nothing> INSERT _v2_ 0
15311
<nothing> - WITH LOCAL CHECK OPTION - <nothing> INSERT _ _v1 0
15312
<nothing> - WITH LOCAL CHECK OPTION - <nothing> UPDATE _ _ 0
15313
<nothing> - WITH LOCAL CHECK OPTION - <nothing> UPDATE _ _v1 0
15314
<nothing> - WITH LOCAL CHECK OPTION - <nothing> UPDATE _v2_ 0
15315
<nothing> - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 0
15316
<nothing> - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 0
15317
<nothing> - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
15318
<nothing> - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 0
15319
<nothing> - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 0
15320
<nothing> - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
15321
<nothing> - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 0
15322
<nothing> - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 0
15323
<nothing> - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
15324
<nothing> - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 0
15325
<nothing> - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
15326
<nothing> - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 0
15327
<nothing> - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 0
15328
<nothing> - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 0
15329
<nothing> - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 0
15330
<nothing> - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 0
15331
<nothing> - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
15332
<nothing> - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 0
15333
<nothing> - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 0
15334
<nothing> - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
15335
<nothing> - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 0
15336
WITH CHECK OPTION - <nothing> - <nothing> UPDATE v3_ _ 1369
15337
WITH CHECK OPTION - <nothing> - <nothing> INSERT _ _ 0
15338
WITH CHECK OPTION - <nothing> - <nothing> INSERT _v2_ 1369
15339
WITH CHECK OPTION - <nothing> - <nothing> INSERT _ _v1 1369
15340
WITH CHECK OPTION - <nothing> - <nothing> UPDATE _v2_ 1369
15341
WITH CHECK OPTION - <nothing> - <nothing> UPDATE _ _v1 1369
15342
WITH CHECK OPTION - <nothing> - <nothing> UPDATE _ _ 0
15343
WITH CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE _v2_ 1369
15344
WITH CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE v3_ _ 1369
15345
WITH CHECK OPTION - <nothing> - WITH CHECK OPTION INSERT _v2_ 1369
15346
WITH CHECK OPTION - <nothing> - WITH CHECK OPTION INSERT _ _v1 1369
15347
WITH CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE _ _ 0
15348
WITH CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE _ _v1 1369
15349
WITH CHECK OPTION - <nothing> - WITH CHECK OPTION INSERT _ _ 0
15350
WITH CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
15351
WITH CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION INSERT _ _ 0
15352
WITH CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE _v2_ 1369
15353
WITH CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION INSERT _v2_ 1369
15354
WITH CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION INSERT _ _v1 1369
15355
WITH CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE _ _ 0
15356
WITH CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE _ _v1 1369
15357
WITH CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION INSERT _ _ 0
15358
WITH CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE _v2_ 1369
15359
WITH CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE _ _v1 1369
15360
WITH CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE _ _ 0
15361
WITH CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION INSERT _ _v1 1369
15362
WITH CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION INSERT _v2_ 1369
15363
WITH CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
15364
WITH CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE _ _ 0
15365
WITH CHECK OPTION - WITH CHECK OPTION - <nothing> INSERT _ _v1 1369
15366
WITH CHECK OPTION - WITH CHECK OPTION - <nothing> INSERT _v2_ 1369
15367
WITH CHECK OPTION - WITH CHECK OPTION - <nothing> INSERT _ _ 0
15368
WITH CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE _ _v1 1369
15369
WITH CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE v3_ _ 1369
15370
WITH CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE _v2_ 1369
15371
WITH CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 1369
15372
WITH CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 1369
15373
WITH CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 1369
15374
WITH CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 1369
15375
WITH CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
15376
WITH CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 1369
15377
WITH CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
15378
WITH CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 1369
15379
WITH CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 1369
15380
WITH CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
15381
WITH CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
15382
WITH CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 1369
15383
WITH CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
15384
WITH CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 1369
15385
WITH CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 1369
15386
WITH CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 1369
15387
WITH CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 1369
15388
WITH CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
15389
WITH CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 1369
15390
WITH CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
15391
WITH CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
15392
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE v3_ _ 1369
15393
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE _v2_ 1369
15394
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE _ _v1 1369
15395
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE _ _ 0
15396
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> INSERT _ _v1 1369
15397
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> INSERT _v2_ 1369
15398
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> INSERT _ _ 0
15399
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 1369
15400
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 1369
15401
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 1369
15402
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
15403
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 1369
15404
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 1369
15405
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
15406
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
15407
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 1369
15408
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 1369
15409
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
15410
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 1369
15411
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 1369
15412
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
15413
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 1369
15414
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
15415
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 1369
15416
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 1369
15417
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
15418
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 1369
15419
WITH CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
15420
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> INSERT _ _v1 1369
15421
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE _ _ 0
15422
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE _ _v1 1369
15423
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> INSERT _ _ 0
15424
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> INSERT _v2_ 1369
15425
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE _v2_ 1369
15426
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE v3_ _ 1369
15427
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
15428
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 1369
15429
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 1369
15430
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 1369
15431
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 1369
15432
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
15433
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 1369
15434
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 1369
15435
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 1369
15436
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
15437
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 1369
15438
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
15439
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
15440
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 1369
15441
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
15442
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 1369
15443
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
15444
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 1369
15445
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 1369
15446
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
15447
WITH CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 1369
15448
WITH CASCADED CHECK OPTION - <nothing> - <nothing> INSERT _v2_ 1369
15449
WITH CASCADED CHECK OPTION - <nothing> - <nothing> INSERT _ _ 0
15450
WITH CASCADED CHECK OPTION - <nothing> - <nothing> UPDATE _ _ 0
15451
WITH CASCADED CHECK OPTION - <nothing> - <nothing> UPDATE _ _v1 1369
15452
WITH CASCADED CHECK OPTION - <nothing> - <nothing> UPDATE _v2_ 1369
15453
WITH CASCADED CHECK OPTION - <nothing> - <nothing> UPDATE v3_ _ 1369
15454
WITH CASCADED CHECK OPTION - <nothing> - <nothing> INSERT _ _v1 1369
15455
WITH CASCADED CHECK OPTION - <nothing> - WITH CHECK OPTION INSERT _v2_ 1369
15456
WITH CASCADED CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE v3_ _ 1369
15457
WITH CASCADED CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE _v2_ 1369
15458
WITH CASCADED CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE _ _v1 1369
15459
WITH CASCADED CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE _ _ 0
15460
WITH CASCADED CHECK OPTION - <nothing> - WITH CHECK OPTION INSERT _ _v1 1369
15461
WITH CASCADED CHECK OPTION - <nothing> - WITH CHECK OPTION INSERT _ _ 0
15462
WITH CASCADED CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
15463
WITH CASCADED CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE _v2_ 1369
15464
WITH CASCADED CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE _ _v1 1369
15465
WITH CASCADED CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE _ _ 0
15466
WITH CASCADED CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION INSERT _v2_ 1369
15467
WITH CASCADED CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION INSERT _ _ 0
15468
WITH CASCADED CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION INSERT _ _v1 1369
15469
WITH CASCADED CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE _v2_ 1369
15470
WITH CASCADED CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION INSERT _ _ 0
15471
WITH CASCADED CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION INSERT _v2_ 1369
15472
WITH CASCADED CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE _ _ 0
15473
WITH CASCADED CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE _ _v1 1369
15474
WITH CASCADED CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
15475
WITH CASCADED CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION INSERT _ _v1 1369
15476
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE _v2_ 1369
15477
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE v3_ _ 1369
15478
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE _ _v1 1369
15479
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - <nothing> INSERT _v2_ 1369
15480
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE _ _ 0
15481
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - <nothing> INSERT _ _v1 1369
15482
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - <nothing> INSERT _ _ 0
15483
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 1369
15484
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
15485
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 1369
15486
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 1369
15487
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
15488
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 1369
15489
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 1369
15490
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
15491
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
15492
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 1369
15493
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 1369
15494
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 1369
15495
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
15496
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 1369
15497
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 1369
15498
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
15499
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 1369
15500
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
15501
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 1369
15502
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 1369
15503
WITH CASCADED CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
15504
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE _v2_ 1369
15505
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE v3_ _ 1369
15506
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> INSERT _v2_ 1369
15507
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> INSERT _ _v1 1369
15508
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE _ _ 0
15509
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE _ _v1 1369
15510
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> INSERT _ _ 0
15511
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
15512
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
15513
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 1369
15514
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 1369
15515
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 1369
15516
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 1369
15517
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 1369
15518
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 1369
15519
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 1369
15520
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 1369
15521
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
15522
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 1369
15523
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
15524
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
15525
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 1369
15526
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
15527
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 1369
15528
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
15529
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 1369
15530
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 1369
15531
WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
15532
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE _v2_ 1369
15533
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE v3_ _ 1369
15534
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE _ _v1 1369
15535
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE _ _ 0
15536
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> INSERT _ _v1 1369
15537
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> INSERT _v2_ 1369
15538
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> INSERT _ _ 0
15539
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
15540
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 1369
15541
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 1369
15542
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 1369
15543
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 1369
15544
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 1369
15545
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
15546
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
15547
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 1369
15548
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
15549
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 1369
15550
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 1369
15551
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 1369
15552
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
15553
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 1369
15554
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
15555
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 1369
15556
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
15557
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 1369
15558
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 1369
15559
WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
15560
WITH LOCAL CHECK OPTION - <nothing> - <nothing> INSERT _ _ 0
15561
WITH LOCAL CHECK OPTION - <nothing> - <nothing> UPDATE _v2_ 0
15562
WITH LOCAL CHECK OPTION - <nothing> - <nothing> UPDATE _ _v1 0
15563
WITH LOCAL CHECK OPTION - <nothing> - <nothing> UPDATE _ _ 0
15564
WITH LOCAL CHECK OPTION - <nothing> - <nothing> INSERT _ _v1 0
15565
WITH LOCAL CHECK OPTION - <nothing> - <nothing> INSERT _v2_ 0
15566
WITH LOCAL CHECK OPTION - <nothing> - <nothing> UPDATE v3_ _ 1369
15567
WITH LOCAL CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE _ _ 0
15568
WITH LOCAL CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE v3_ _ 1369
15569
WITH LOCAL CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE _v2_ 0
15570
WITH LOCAL CHECK OPTION - <nothing> - WITH CHECK OPTION UPDATE _ _v1 0
15571
WITH LOCAL CHECK OPTION - <nothing> - WITH CHECK OPTION INSERT _ _v1 0
15572
WITH LOCAL CHECK OPTION - <nothing> - WITH CHECK OPTION INSERT _v2_ 0
15573
WITH LOCAL CHECK OPTION - <nothing> - WITH CHECK OPTION INSERT _ _ 0
15574
WITH LOCAL CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION INSERT _v2_ 0
15575
WITH LOCAL CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION INSERT _ _ 0
15576
WITH LOCAL CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION INSERT _ _v1 0
15577
WITH LOCAL CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
15578
WITH LOCAL CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE _v2_ 0
15579
WITH LOCAL CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE _ _v1 0
15580
WITH LOCAL CHECK OPTION - <nothing> - WITH CASCADED CHECK OPTION UPDATE _ _ 0
15581
WITH LOCAL CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION INSERT _ _ 0
15582
WITH LOCAL CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION INSERT _v2_ 0
15583
WITH LOCAL CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION INSERT _ _v1 0
15584
WITH LOCAL CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE _ _ 0
15585
WITH LOCAL CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE _ _v1 0
15586
WITH LOCAL CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE _v2_ 0
15587
WITH LOCAL CHECK OPTION - <nothing> - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
15588
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE _v2_ 0
15589
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE v3_ _ 1369
15590
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE _ _ 0
15591
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - <nothing> INSERT _ _ 0
15592
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - <nothing> INSERT _v2_ 0
15593
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - <nothing> INSERT _ _v1 0
15594
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - <nothing> UPDATE _ _v1 0
15595
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 0
15596
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 1369
15597
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
15598
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 0
15599
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 0
15600
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 0
15601
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
15602
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 0
15603
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 0
15604
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
15605
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 0
15606
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 0
15607
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
15608
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
15609
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
15610
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 0
15611
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 0
15612
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
15613
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 0
15614
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
15615
WITH LOCAL CHECK OPTION - WITH CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 0
15616
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> INSERT _v2_ 0
15617
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> INSERT _ _v1 0
15618
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE _ _ 0
15619
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE _ _v1 0
15620
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE _v2_ 0
15621
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> UPDATE v3_ _ 1369
15622
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - <nothing> INSERT _ _ 0
15623
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
15624
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 1369
15625
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 0
15626
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 0
15627
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 0
15628
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 0
15629
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
15630
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 0
15631
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 0
15632
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
15633
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
15634
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 0
15635
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 0
15636
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
15637
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
15638
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
15639
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
15640
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 0
15641
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 0
15642
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 0
15643
WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 0
15644
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE _ _ 0
15645
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> INSERT _ _v1 0
15646
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> INSERT _ _ 0
15647
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE _ _v1 0
15648
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE _v2_ 0
15649
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> UPDATE v3_ _ 1369
15650
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - <nothing> INSERT _v2_ 0
15651
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _ _ 0
15652
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _ _ 0
15653
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _ _v1 0
15654
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION INSERT _v2_ 0
15655
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _ _v1 0
15656
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE _v2_ 0
15657
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CHECK OPTION UPDATE v3_ _ 1369
15658
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _v1 0
15659
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _ 0
15660
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _v2_ 0
15661
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION INSERT _ _v1 0
15662
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _ _ 0
15663
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE v3_ _ 1369
15664
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH CASCADED CHECK OPTION UPDATE _v2_ 0
15665
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _v2_ 0
15666
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _v1 0
15667
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE _ _ 0
15668
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _v1 0
15669
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _ _ 0
15670
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION UPDATE v3_ _ 1369
15671
WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION - WITH LOCAL CHECK OPTION INSERT _v2_ 0
15673
Plausibility checks for INSERTs and UPDATEs ( 4. and 5. above).
15674
All following SELECTs must give ROW NOT FOUND
15675
--------------------------------------------------------------------------------
15676
SELECT * FROM t1_results
15677
WHERE v3_to_v1_violation = ' _ _ ' AND errno <> 0
15678
ORDER BY v3_to_v1_options;
15679
v3_to_v1_options statement v3_to_v1_violation errno
15680
SELECT * FROM t1_results
15681
WHERE v3_to_v1_options LIKE ' %' AND errno <> 0
15682
ORDER BY v3_to_v1_options;
15683
v3_to_v1_options statement v3_to_v1_violation errno
15684
SELECT * FROM t1_results
15685
WHERE v3_to_v1_options LIKE 'WITH %'
15686
AND v3_to_v1_violation LIKE 'v3_%' AND errno = 0
15687
ORDER BY v3_to_v1_options;
15688
v3_to_v1_options statement v3_to_v1_violation errno
15689
SELECT * FROM t1_results
15690
WHERE v3_to_v1_options LIKE 'WITH %' AND v3_to_v1_options NOT LIKE 'WITH LOCAL %'
15691
AND v3_to_v1_violation NOT LIKE ' _ _ ' AND errno = 0
15692
ORDER BY v3_to_v1_options;
15693
v3_to_v1_options statement v3_to_v1_violation errno
15694
SELECT * FROM t1_results
15695
WHERE errno <> 0 AND errno <> 1369
15696
ORDER BY v3_to_v1_options;
15697
v3_to_v1_options statement v3_to_v1_violation errno
15699
End of plausibility checks
15700
--------------------------------------------------------------------------------
15701
DROP TABLE t1_results;
15703
Testcase 3.3.1.50 - 3.3.1.53
15704
--------------------------------------------------------------------------------
15705
DROP VIEW IF EXISTS test.v1;
15706
CREATE VIEW test.v1 AS SELECT * FROM test.tb2;
15707
SELECT * FROM test.v1 order by f59,f60,f61 ;
15711
f62 0000000000000000000000000000000000000000000000000000000000000001
15713
f64 0000000000000000000000000000000000000000000000000000000000000001
15715
f66 0.000000000000000000000000000000
15717
f68 0.000000000000000000000000000000
15719
f70 000000000000000000000000000000000.000000000000000000000000000000
15721
f72 000000000000000000000000000000000.000000000000000000000000000000
15722
f73 -1.17549435e-38
15723
f74 1.175494352e-38
15724
f75 00000001.175494352e-38
15725
f76 00000001.175494352e-38
15726
f77 -1.17549435e-38
15727
f78 1.175494352e-38
15728
f79 00000001.175494352e-38
15729
f80 00000001.175494352e-38
15743
f94 -1.17549435e-38
15745
f96 1.175494352e-38
15747
f98 00000001.175494352e-38
15749
f100 00000001.175494352e-38
15752
f103 1970-01-02 00:00:01
15753
f104 1970-01-02 00:00:01
15762
f62 0000000000000000000000000000000000000000000000000000000000000002
15764
f64 0000000000000000000000000000000000000000000000000000000000000002
15766
f66 1.100000000000000000000000000000
15768
f68 1.100000000000000000000000000000
15770
f70 000000000000000000000000000000001.100000000000000000000000000000
15772
f72 000000000000000000000000000000001.100000000000000000000000000000
15773
f73 -1.175494349e-38
15774
f74 1.175494353e-38
15775
f75 00000001.175494353e-38
15776
f76 00000001.175494353e-38
15777
f77 -1.175494349e-38
15778
f78 1.175494353e-38
15779
f79 00000001.175494353e-38
15780
f80 00000001.175494353e-38
15794
f94 -1.175494349e-38
15796
f96 1.175494353e-38
15798
f98 00000001.175494353e-38
15800
f100 00000001.175494353e-38
15803
f103 1970-01-03 00:00:02
15804
f104 1970-01-03 00:00:02
15813
f62 0000000000000000000000000000000000000000000000000000000000000003
15815
f64 0000000000000000000000000000000000000000000000000000000000000003
15817
f66 2.200000000000000000000000000000
15819
f68 2.200000000000000000000000000000
15821
f70 000000000000000000000000000000002.200000000000000000000000000000
15823
f72 000000000000000000000000000000002.200000000000000000000000000000
15824
f73 -1.175494348e-38
15825
f74 1.175494354e-38
15826
f75 00000001.175494354e-38
15827
f76 00000001.175494354e-38
15828
f77 -1.175494348e-38
15829
f78 1.175494354e-38
15830
f79 00000001.175494354e-38
15831
f80 00000001.175494354e-38
15845
f94 -1.175494348e-38
15847
f96 1.175494354e-38
15849
f98 00000001.175494354e-38
15851
f100 00000001.175494354e-38
15854
f103 1970-01-04 00:00:03
15855
f104 1970-01-04 00:00:03
15864
f62 0000000000000000000000000000000000000000000000000000000000000005
15866
f64 0000000000000000000000000000000000000000000000000000000000000005
15868
f66 4.400000000000000000000000000000
15870
f68 4.400000000000000000000000000000
15872
f70 000000000000000000000000000000004.400000000000000000000000000000
15874
f72 000000000000000000000000000000004.400000000000000000000000000000
15875
f73 -1.175494346e-38
15876
f74 1.175494356e-38
15877
f75 00000001.175494356e-38
15878
f76 00000001.175494356e-38
15879
f77 -1.175494346e-38
15880
f78 1.175494356e-38
15881
f79 00000001.175494356e-38
15882
f80 00000001.175494356e-38
15896
f94 -1.175494346e-38
15898
f96 1.175494356e-38
15900
f98 00000001.175494356e-38
15902
f100 00000001.175494356e-38
15905
f103 1970-01-06 00:00:05
15906
f104 1970-01-06 00:00:05
15915
f62 0000000000000000000000000000000000000000000000000000000000000006
15917
f64 0000000000000000000000000000000000000000000000000000000000000006
15919
f66 5.500000000000000000000000000000
15921
f68 5.500000000000000000000000000000
15923
f70 000000000000000000000000000000005.500000000000000000000000000000
15925
f72 000000000000000000000000000000005.500000000000000000000000000000
15926
f73 -1.175494345e-38
15927
f74 1.175494357e-38
15928
f75 00000001.175494357e-38
15929
f76 00000001.175494357e-38
15930
f77 -1.175494345e-38
15931
f78 1.175494357e-38
15932
f79 00000001.175494357e-38
15933
f80 00000001.175494357e-38
15947
f94 -1.175494345e-38
15949
f96 1.175494357e-38
15951
f98 00000001.175494357e-38
15953
f100 00000001.175494357e-38
15956
f103 1970-01-07 00:00:06
15957
f104 1970-01-07 00:00:06
15966
f62 0000000000000000000000000000000000000000000000000000000000000007
15968
f64 0000000000000000000000000000000000000000000000000000000000000007
15970
f66 6.600000000000000000000000000000
15972
f68 6.600000000000000000000000000000
15974
f70 000000000000000000000000000000006.600000000000000000000000000000
15976
f72 000000000000000000000000000000006.600000000000000000000000000000
15977
f73 -1.175494344e-38
15978
f74 1.175494358e-38
15979
f75 00000001.175494358e-38
15980
f76 00000001.175494358e-38
15981
f77 -1.175494344e-38
15982
f78 1.175494358e-38
15983
f79 00000001.175494358e-38
15984
f80 00000001.175494358e-38
15998
f94 -1.175494344e-38
16000
f96 1.175494358e-38
16002
f98 00000001.175494358e-38
16004
f100 00000001.175494358e-38
16007
f103 1970-01-08 00:00:07
16008
f104 1970-01-08 00:00:07
16017
f62 0000000000000000000000000000000000000000000000000000000000000008
16019
f64 0000000000000000000000000000000000000000000000000000000000000008
16021
f66 7.700000000000000000000000000000
16023
f68 7.700000000000000000000000000000
16025
f70 000000000000000000000000000000007.700000000000000000000000000000
16027
f72 000000000000000000000000000000007.700000000000000000000000000000
16028
f73 -1.175494343e-38
16029
f74 1.175494359e-38
16030
f75 00000001.175494359e-38
16031
f76 00000001.175494359e-38
16032
f77 -1.175494343e-38
16033
f78 1.175494359e-38
16034
f79 00000001.175494359e-38
16035
f80 00000001.175494359e-38
16049
f94 -1.175494343e-38
16051
f96 1.175494359e-38
16053
f98 00000001.175494359e-38
16055
f100 00000001.175494359e-38
16058
f103 1970-01-09 00:00:08
16059
f104 1970-01-09 00:00:08
16068
f62 0000000000000000000000000000000000000000000000000000000000000009
16070
f64 0000000000000000000000000000000000000000000000000000000000000009
16072
f66 8.800000000000000000000000000000
16074
f68 8.800000000000000000000000000000
16076
f70 000000000000000000000000000000008.800000000000000000000000000000
16078
f72 000000000000000000000000000000008.800000000000000000000000000000
16079
f73 -1.175494342e-38
16081
f75 000000001.17549436e-38
16082
f76 000000001.17549436e-38
16083
f77 -1.175494342e-38
16085
f79 000000001.17549436e-38
16086
f80 000000001.17549436e-38
16100
f94 -1.175494342e-38
16104
f98 000000001.17549436e-38
16106
f100 000000001.17549436e-38
16109
f103 1970-01-10 00:00:09
16110
f104 1970-01-10 00:00:09
16119
f62 0000000000000000000000000000000000000000000000000000000000000010
16121
f64 0000000000000000000000000000000000000000000000000000000000000010
16123
f66 9.900000000000000000000000000000
16125
f68 9.900000000000000000000000000000
16127
f70 000000000000000000000000000000009.900000000000000000000000000000
16129
f72 000000000000000000000000000000009.900000000000000000000000000000
16130
f73 -1.175494341e-38
16131
f74 1.175494361e-38
16132
f75 00000001.175494361e-38
16133
f76 00000001.175494361e-38
16134
f77 -1.175494341e-38
16135
f78 1.175494361e-38
16136
f79 00000001.175494361e-38
16137
f80 00000001.175494361e-38
16151
f94 -1.175494341e-38
16153
f96 1.175494361e-38
16155
f98 00000001.175494361e-38
16157
f100 00000001.175494361e-38
16160
f103 1970-01-11 00:00:10
16161
f104 1970-01-11 00:00:10
16187
f79 00000000000000000007.7
16188
f80 00000000000000000008.8
16206
f98 00000000000000000008.8
16208
f100 00000000000000000008.8
16211
f103 0002-02-02 00:00:00
16212
f104 2000-12-31 23:59:59
16238
f79 00000000000000000007.7
16239
f80 00000000000000000008.8
16257
f98 00000000000000000008.8
16259
f100 00000000000000000008.8
16262
f103 0002-02-02 00:00:00
16263
f104 2000-12-31 23:59:59
16289
f79 00000000000000000007.7
16290
f80 00000000000000000008.8
16308
f98 00000000000000000008.8
16310
f100 00000000000000000008.8
16313
f103 0002-02-02 00:00:00
16314
f104 2000-12-31 23:59:59
16340
f79 00000000000000000007.7
16341
f80 00000000000000000008.8
16359
f98 00000000000000000008.8
16361
f100 00000000000000000008.8
16364
f103 0002-02-02 00:00:00
16365
f104 2000-12-31 23:59:59
16391
f79 00000000000000000007.7
16392
f80 00000000000000000008.8
16410
f98 00000000000000000008.8
16412
f100 00000000000000000008.8
16415
f103 0002-02-02 00:00:00
16416
f104 2000-12-31 23:59:59
16442
f79 00000000000000000007.7
16443
f80 00000000000000000008.8
16461
f98 00000000000000000008.8
16463
f100 00000000000000000008.8
16466
f103 0002-02-02 00:00:00
16467
f104 2000-12-31 23:59:59
16493
f79 00000000000000000007.7
16494
f80 00000000000000000008.8
16512
f98 00000000000000000008.8
16514
f100 00000000000000000008.8
16517
f103 0002-02-02 00:00:00
16518
f104 2000-12-31 23:59:59
16544
f79 00000000000000000007.7
16545
f80 00000000000000000008.8
16563
f98 00000000000000000008.8
16565
f100 00000000000000000008.8
16568
f103 0002-02-02 00:00:00
16569
f104 2000-12-31 23:59:59
16595
f79 00000000000000000007.7
16596
f80 00000000000000000008.8
16614
f98 00000000000000000008.8
16616
f100 00000000000000000008.8
16619
f103 0002-02-02 00:00:00
16620
f104 2000-12-31 23:59:59
16629
f62 0000000000000000000000000000000000000000000000000000000000000004
16631
f64 0000000000000000000000000000000000000000000000000000000000000004
16633
f66 3.300000000000000000000000000000
16635
f68 3.300000000000000000000000000000
16637
f70 000000000000000000000000000000003.300000000000000000000000000000
16639
f72 000000000000000000000000000000003.300000000000000000000000000000
16640
f73 -1.175494347e-38
16641
f74 1.175494355e-38
16642
f75 00000001.175494355e-38
16643
f76 00000001.175494355e-38
16644
f77 -1.175494347e-38
16645
f78 1.175494355e-38
16646
f79 00000001.175494355e-38
16647
f80 00000001.175494355e-38
16661
f94 -1.175494347e-38
16663
f96 1.175494355e-38
16665
f98 00000001.175494355e-38
16667
f100 00000001.175494355e-38
16670
f103 1970-01-05 00:00:04
16671
f104 1970-01-05 00:00:04
16697
f79 00000000000000000007.7
16698
f80 00000000000000000008.8
16716
f98 00000000000000000008.8
16718
f100 00000000000000000008.8
16721
f103 0002-02-02 00:00:00
16722
f104 2000-12-31 23:59:59
16748
f79 00000000000000000007.7
16749
f80 00000000000000000008.8
16767
f98 00000000000000000008.8
16769
f100 00000000000000000008.8
16772
f103 0002-02-02 00:00:00
16773
f104 2000-12-31 23:59:59
16799
f79 00000000000000000007.7
16800
f80 00000000000000000008.8
16818
f98 00000000000000000008.8
16820
f100 00000000000000000008.8
16823
f103 0002-02-02 00:00:00
16824
f104 2000-12-31 23:59:59
16850
f79 00000000000000000007.7
16851
f80 00000000000000000008.8
16869
f98 00000000000000000008.8
16871
f100 00000000000000000008.8
16874
f103 0002-02-02 00:00:00
16875
f104 2000-12-31 23:59:59
16901
f79 00000000000000000007.7
16902
f80 00000000000000000008.8
16920
f98 00000000000000000008.8
16922
f100 00000000000000000008.8
16925
f103 0002-02-02 00:00:00
16926
f104 2000-12-31 23:59:59
16952
f79 00000000000000000007.7
16953
f80 00000000000000000008.8
16971
f98 00000000000000000008.8
16973
f100 00000000000000000008.8
16976
f103 0002-02-02 00:00:00
16977
f104 2000-12-31 23:59:59
17003
f79 00000000000000000007.7
17004
f80 00000000000000000008.8
17022
f98 00000000000000000008.8
17024
f100 00000000000000000008.8
17027
f103 0002-02-02 00:00:00
17028
f104 2000-12-31 23:59:59
17054
f79 00000000000000000007.7
17055
f80 00000000000000000008.8
17073
f98 00000000000000000008.8
17075
f100 00000000000000000008.8
17078
f103 0002-02-02 00:00:00
17079
f104 2000-12-31 23:59:59
17105
f79 00000000000000000007.7
17106
f80 00000000000000000008.8
17124
f98 00000000000000000008.8
17126
f100 00000000000000000008.8
17129
f103 0002-02-02 00:00:00
17130
f104 2000-12-31 23:59:59
17156
f79 00000000000000000007.7
17157
f80 00000000000000000008.8
17175
f98 00000000000000000008.8
17177
f100 00000000000000000008.8
17180
f103 0002-02-02 00:00:00
17181
f104 2000-12-31 23:59:59
17207
f79 00000000000000000007.7
17208
f80 00000000000000000008.8
17226
f98 00000000000000000008.8
17228
f100 00000000000000000008.8
17231
f103 0002-02-02 00:00:00
17232
f104 2000-12-31 23:59:59
17258
f79 00000000000000000007.7
17259
f80 00000000000000000008.8
17277
f98 00000000000000000008.8
17279
f100 00000000000000000008.8
17282
f103 0002-02-02 00:00:00
17283
f104 2000-12-31 23:59:59
17309
f79 00000000000000000007.7
17310
f80 00000000000000000008.8
17328
f98 00000000000000000008.8
17330
f100 00000000000000000008.8
17333
f103 0002-02-02 00:00:00
17334
f104 2000-12-31 23:59:59
17360
f79 00000000000000000007.7
17361
f80 00000000000000000008.8
17379
f98 00000000000000000008.8
17381
f100 00000000000000000008.8
17384
f103 0002-02-02 00:00:00
17385
f104 2000-12-31 23:59:59
17411
f79 00000000000000000007.7
17412
f80 00000000000000000008.8
17430
f98 00000000000000000008.8
17432
f100 00000000000000000008.8
17435
f103 0002-02-02 00:00:00
17436
f104 2000-12-31 23:59:59
17462
f79 00000000000000000007.7
17463
f80 00000000000000000008.8
17481
f98 00000000000000000008.8
17483
f100 00000000000000000008.8
17486
f103 0002-02-02 00:00:00
17487
f104 2000-12-31 23:59:59
17513
f79 00000000000000000007.7
17514
f80 00000000000000000008.8
17532
f98 00000000000000000008.8
17534
f100 00000000000000000008.8
17537
f103 0002-02-02 00:00:00
17538
f104 2000-12-31 23:59:59
17564
f79 00000000000000000007.7
17565
f80 00000000000000000008.8
17583
f98 00000000000000000008.8
17585
f100 00000000000000000008.8
17588
f103 0002-02-02 00:00:00
17589
f104 2000-12-31 23:59:59
17615
f79 00000000000000000007.7
17616
f80 00000000000000000008.8
17634
f98 00000000000000000008.8
17636
f100 00000000000000000008.8
17639
f103 0002-02-02 00:00:00
17640
f104 2000-12-31 23:59:59
17666
f79 00000000000000000007.7
17667
f80 00000000000000000008.8
17685
f98 00000000000000000008.8
17687
f100 00000000000000000008.8
17690
f103 0002-02-02 00:00:00
17691
f104 2000-12-31 23:59:59
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
17768
f79 00000000000000000007.7
17769
f80 00000000000000000008.8
17787
f98 00000000000000000008.8
17789
f100 00000000000000000008.8
17792
f103 0002-02-02 00:00:00
17793
f104 2000-12-31 23:59:59
17819
f79 00000000000000000007.7
17820
f80 00000000000000000008.8
17838
f98 00000000000000000008.8
17840
f100 00000000000000000008.8
17843
f103 0002-02-02 00:00:00
17844
f104 2000-12-31 23:59:59
17870
f79 00000000000000000007.7
17871
f80 00000000000000000008.8
17889
f98 00000000000000000008.8
17891
f100 00000000000000000008.8
17894
f103 0002-02-02 00:00:00
17895
f104 2000-12-31 23:59:59
17921
f79 00000000000000000007.7
17922
f80 00000000000000000008.8
17940
f98 00000000000000000008.8
17942
f100 00000000000000000008.8
17945
f103 0002-02-02 00:00:00
17946
f104 2000-12-31 23:59:59
17972
f79 00000000000000000007.7
17973
f80 00000000000000000008.8
17991
f98 00000000000000000008.8
17993
f100 00000000000000000008.8
17996
f103 0002-02-02 00:00:00
17997
f104 2000-12-31 23:59:59
18023
f79 00000000000000000007.7
18024
f80 00000000000000000008.8
18042
f98 00000000000000000008.8
18044
f100 00000000000000000008.8
18047
f103 0002-02-02 00:00:00
18048
f104 2000-12-31 23:59:59
18074
f79 00000000000000000007.7
18075
f80 00000000000000000008.8
18093
f98 00000000000000000008.8
18095
f100 00000000000000000008.8
18098
f103 0002-02-02 00:00:00
18099
f104 2000-12-31 23:59:59
18125
f79 00000000000000000007.7
18126
f80 00000000000000000008.8
18144
f98 00000000000000000008.8
18146
f100 00000000000000000008.8
18149
f103 0002-02-02 00:00:00
18150
f104 2000-12-31 23:59:59
18176
f79 00000000000000000007.7
18177
f80 00000000000000000008.8
18195
f98 00000000000000000008.8
18197
f100 00000000000000000008.8
18200
f103 0002-02-02 00:00:00
18201
f104 2000-12-31 23:59:59
18227
f79 00000000000000000007.7
18228
f80 00000000000000000008.8
18246
f98 00000000000000000008.8
18248
f100 00000000000000000008.8
18251
f103 0002-02-02 00:00:00
18252
f104 2000-12-31 23:59:59
18258
drop view test.v1 ;
18259
CREATE VIEW test.v1 AS SELECT F59,F61 FROM test.tb2;
18260
SELECT * FROM test.v1 order by F59, F61 limit 50;
18312
drop view test.v1 ;
18313
CREATE VIEW test.v1 AS SELECT * FROM test.tb2 order by f59, f60, f61;
18314
SELECT * FROM test.v1 order by f59,f60,f61 ;
18318
f62 0000000000000000000000000000000000000000000000000000000000000001
18320
f64 0000000000000000000000000000000000000000000000000000000000000001
18322
f66 0.000000000000000000000000000000
18324
f68 0.000000000000000000000000000000
18326
f70 000000000000000000000000000000000.000000000000000000000000000000
18328
f72 000000000000000000000000000000000.000000000000000000000000000000
18329
f73 -1.17549435e-38
18330
f74 1.175494352e-38
18331
f75 00000001.175494352e-38
18332
f76 00000001.175494352e-38
18333
f77 -1.17549435e-38
18334
f78 1.175494352e-38
18335
f79 00000001.175494352e-38
18336
f80 00000001.175494352e-38
18350
f94 -1.17549435e-38
18352
f96 1.175494352e-38
18354
f98 00000001.175494352e-38
18356
f100 00000001.175494352e-38
18359
f103 1970-01-02 00:00:01
18360
f104 1970-01-02 00:00:01
18369
f62 0000000000000000000000000000000000000000000000000000000000000002
18371
f64 0000000000000000000000000000000000000000000000000000000000000002
18373
f66 1.100000000000000000000000000000
18375
f68 1.100000000000000000000000000000
18377
f70 000000000000000000000000000000001.100000000000000000000000000000
18379
f72 000000000000000000000000000000001.100000000000000000000000000000
18380
f73 -1.175494349e-38
18381
f74 1.175494353e-38
18382
f75 00000001.175494353e-38
18383
f76 00000001.175494353e-38
18384
f77 -1.175494349e-38
18385
f78 1.175494353e-38
18386
f79 00000001.175494353e-38
18387
f80 00000001.175494353e-38
18401
f94 -1.175494349e-38
18403
f96 1.175494353e-38
18405
f98 00000001.175494353e-38
18407
f100 00000001.175494353e-38
18410
f103 1970-01-03 00:00:02
18411
f104 1970-01-03 00:00:02
18420
f62 0000000000000000000000000000000000000000000000000000000000000003
18422
f64 0000000000000000000000000000000000000000000000000000000000000003
18424
f66 2.200000000000000000000000000000
18426
f68 2.200000000000000000000000000000
18428
f70 000000000000000000000000000000002.200000000000000000000000000000
18430
f72 000000000000000000000000000000002.200000000000000000000000000000
18431
f73 -1.175494348e-38
18432
f74 1.175494354e-38
18433
f75 00000001.175494354e-38
18434
f76 00000001.175494354e-38
18435
f77 -1.175494348e-38
18436
f78 1.175494354e-38
18437
f79 00000001.175494354e-38
18438
f80 00000001.175494354e-38
18452
f94 -1.175494348e-38
18454
f96 1.175494354e-38
18456
f98 00000001.175494354e-38
18458
f100 00000001.175494354e-38
18461
f103 1970-01-04 00:00:03
18462
f104 1970-01-04 00:00:03
18471
f62 0000000000000000000000000000000000000000000000000000000000000005
18473
f64 0000000000000000000000000000000000000000000000000000000000000005
18475
f66 4.400000000000000000000000000000
18477
f68 4.400000000000000000000000000000
18479
f70 000000000000000000000000000000004.400000000000000000000000000000
18481
f72 000000000000000000000000000000004.400000000000000000000000000000
18482
f73 -1.175494346e-38
18483
f74 1.175494356e-38
18484
f75 00000001.175494356e-38
18485
f76 00000001.175494356e-38
18486
f77 -1.175494346e-38
18487
f78 1.175494356e-38
18488
f79 00000001.175494356e-38
18489
f80 00000001.175494356e-38
18503
f94 -1.175494346e-38
18505
f96 1.175494356e-38
18507
f98 00000001.175494356e-38
18509
f100 00000001.175494356e-38
18512
f103 1970-01-06 00:00:05
18513
f104 1970-01-06 00:00:05
18522
f62 0000000000000000000000000000000000000000000000000000000000000006
18524
f64 0000000000000000000000000000000000000000000000000000000000000006
18526
f66 5.500000000000000000000000000000
18528
f68 5.500000000000000000000000000000
18530
f70 000000000000000000000000000000005.500000000000000000000000000000
18532
f72 000000000000000000000000000000005.500000000000000000000000000000
18533
f73 -1.175494345e-38
18534
f74 1.175494357e-38
18535
f75 00000001.175494357e-38
18536
f76 00000001.175494357e-38
18537
f77 -1.175494345e-38
18538
f78 1.175494357e-38
18539
f79 00000001.175494357e-38
18540
f80 00000001.175494357e-38
18554
f94 -1.175494345e-38
18556
f96 1.175494357e-38
18558
f98 00000001.175494357e-38
18560
f100 00000001.175494357e-38
18563
f103 1970-01-07 00:00:06
18564
f104 1970-01-07 00:00:06
18573
f62 0000000000000000000000000000000000000000000000000000000000000007
18575
f64 0000000000000000000000000000000000000000000000000000000000000007
18577
f66 6.600000000000000000000000000000
18579
f68 6.600000000000000000000000000000
18581
f70 000000000000000000000000000000006.600000000000000000000000000000
18583
f72 000000000000000000000000000000006.600000000000000000000000000000
18584
f73 -1.175494344e-38
18585
f74 1.175494358e-38
18586
f75 00000001.175494358e-38
18587
f76 00000001.175494358e-38
18588
f77 -1.175494344e-38
18589
f78 1.175494358e-38
18590
f79 00000001.175494358e-38
18591
f80 00000001.175494358e-38
18605
f94 -1.175494344e-38
18607
f96 1.175494358e-38
18609
f98 00000001.175494358e-38
18611
f100 00000001.175494358e-38
18614
f103 1970-01-08 00:00:07
18615
f104 1970-01-08 00:00:07
18624
f62 0000000000000000000000000000000000000000000000000000000000000008
18626
f64 0000000000000000000000000000000000000000000000000000000000000008
18628
f66 7.700000000000000000000000000000
18630
f68 7.700000000000000000000000000000
18632
f70 000000000000000000000000000000007.700000000000000000000000000000
18634
f72 000000000000000000000000000000007.700000000000000000000000000000
18635
f73 -1.175494343e-38
18636
f74 1.175494359e-38
18637
f75 00000001.175494359e-38
18638
f76 00000001.175494359e-38
18639
f77 -1.175494343e-38
18640
f78 1.175494359e-38
18641
f79 00000001.175494359e-38
18642
f80 00000001.175494359e-38
18656
f94 -1.175494343e-38
18658
f96 1.175494359e-38
18660
f98 00000001.175494359e-38
18662
f100 00000001.175494359e-38
18665
f103 1970-01-09 00:00:08
18666
f104 1970-01-09 00:00:08
18675
f62 0000000000000000000000000000000000000000000000000000000000000009
18677
f64 0000000000000000000000000000000000000000000000000000000000000009
18679
f66 8.800000000000000000000000000000
18681
f68 8.800000000000000000000000000000
18683
f70 000000000000000000000000000000008.800000000000000000000000000000
18685
f72 000000000000000000000000000000008.800000000000000000000000000000
18686
f73 -1.175494342e-38
18688
f75 000000001.17549436e-38
18689
f76 000000001.17549436e-38
18690
f77 -1.175494342e-38
18692
f79 000000001.17549436e-38
18693
f80 000000001.17549436e-38
18707
f94 -1.175494342e-38
18711
f98 000000001.17549436e-38
18713
f100 000000001.17549436e-38
18716
f103 1970-01-10 00:00:09
18717
f104 1970-01-10 00:00:09
18726
f62 0000000000000000000000000000000000000000000000000000000000000010
18728
f64 0000000000000000000000000000000000000000000000000000000000000010
18730
f66 9.900000000000000000000000000000
18732
f68 9.900000000000000000000000000000
18734
f70 000000000000000000000000000000009.900000000000000000000000000000
18736
f72 000000000000000000000000000000009.900000000000000000000000000000
18737
f73 -1.175494341e-38
18738
f74 1.175494361e-38
18739
f75 00000001.175494361e-38
18740
f76 00000001.175494361e-38
18741
f77 -1.175494341e-38
18742
f78 1.175494361e-38
18743
f79 00000001.175494361e-38
18744
f80 00000001.175494361e-38
18758
f94 -1.175494341e-38
18760
f96 1.175494361e-38
18762
f98 00000001.175494361e-38
18764
f100 00000001.175494361e-38
18767
f103 1970-01-11 00:00:10
18768
f104 1970-01-11 00:00:10
18794
f79 00000000000000000007.7
18795
f80 00000000000000000008.8
18813
f98 00000000000000000008.8
18815
f100 00000000000000000008.8
18818
f103 0002-02-02 00:00:00
18819
f104 2000-12-31 23:59:59
18845
f79 00000000000000000007.7
18846
f80 00000000000000000008.8
18864
f98 00000000000000000008.8
18866
f100 00000000000000000008.8
18869
f103 0002-02-02 00:00:00
18870
f104 2000-12-31 23:59:59
18896
f79 00000000000000000007.7
18897
f80 00000000000000000008.8
18915
f98 00000000000000000008.8
18917
f100 00000000000000000008.8
18920
f103 0002-02-02 00:00:00
18921
f104 2000-12-31 23:59:59
18947
f79 00000000000000000007.7
18948
f80 00000000000000000008.8
18966
f98 00000000000000000008.8
18968
f100 00000000000000000008.8
18971
f103 0002-02-02 00:00:00
18972
f104 2000-12-31 23:59:59
18998
f79 00000000000000000007.7
18999
f80 00000000000000000008.8
19017
f98 00000000000000000008.8
19019
f100 00000000000000000008.8
19022
f103 0002-02-02 00:00:00
19023
f104 2000-12-31 23:59:59
19049
f79 00000000000000000007.7
19050
f80 00000000000000000008.8
19068
f98 00000000000000000008.8
19070
f100 00000000000000000008.8
19073
f103 0002-02-02 00:00:00
19074
f104 2000-12-31 23:59:59
19100
f79 00000000000000000007.7
19101
f80 00000000000000000008.8
19119
f98 00000000000000000008.8
19121
f100 00000000000000000008.8
19124
f103 0002-02-02 00:00:00
19125
f104 2000-12-31 23:59:59
19151
f79 00000000000000000007.7
19152
f80 00000000000000000008.8
19170
f98 00000000000000000008.8
19172
f100 00000000000000000008.8
19175
f103 0002-02-02 00:00:00
19176
f104 2000-12-31 23:59:59
19202
f79 00000000000000000007.7
19203
f80 00000000000000000008.8
19221
f98 00000000000000000008.8
19223
f100 00000000000000000008.8
19226
f103 0002-02-02 00:00:00
19227
f104 2000-12-31 23:59:59
19236
f62 0000000000000000000000000000000000000000000000000000000000000004
19238
f64 0000000000000000000000000000000000000000000000000000000000000004
19240
f66 3.300000000000000000000000000000
19242
f68 3.300000000000000000000000000000
19244
f70 000000000000000000000000000000003.300000000000000000000000000000
19246
f72 000000000000000000000000000000003.300000000000000000000000000000
19247
f73 -1.175494347e-38
19248
f74 1.175494355e-38
19249
f75 00000001.175494355e-38
19250
f76 00000001.175494355e-38
19251
f77 -1.175494347e-38
19252
f78 1.175494355e-38
19253
f79 00000001.175494355e-38
19254
f80 00000001.175494355e-38
19268
f94 -1.175494347e-38
19270
f96 1.175494355e-38
19272
f98 00000001.175494355e-38
19274
f100 00000001.175494355e-38
19277
f103 1970-01-05 00:00:04
19278
f104 1970-01-05 00:00:04
19304
f79 00000000000000000007.7
19305
f80 00000000000000000008.8
19323
f98 00000000000000000008.8
19325
f100 00000000000000000008.8
19328
f103 0002-02-02 00:00:00
19329
f104 2000-12-31 23:59:59
19355
f79 00000000000000000007.7
19356
f80 00000000000000000008.8
19374
f98 00000000000000000008.8
19376
f100 00000000000000000008.8
19379
f103 0002-02-02 00:00:00
19380
f104 2000-12-31 23:59:59
19406
f79 00000000000000000007.7
19407
f80 00000000000000000008.8
19425
f98 00000000000000000008.8
19427
f100 00000000000000000008.8
19430
f103 0002-02-02 00:00:00
19431
f104 2000-12-31 23:59:59
19457
f79 00000000000000000007.7
19458
f80 00000000000000000008.8
19476
f98 00000000000000000008.8
19478
f100 00000000000000000008.8
19481
f103 0002-02-02 00:00:00
19482
f104 2000-12-31 23:59:59
19508
f79 00000000000000000007.7
19509
f80 00000000000000000008.8
19527
f98 00000000000000000008.8
19529
f100 00000000000000000008.8
19532
f103 0002-02-02 00:00:00
19533
f104 2000-12-31 23:59:59
19559
f79 00000000000000000007.7
19560
f80 00000000000000000008.8
19578
f98 00000000000000000008.8
19580
f100 00000000000000000008.8
19583
f103 0002-02-02 00:00:00
19584
f104 2000-12-31 23:59:59
19610
f79 00000000000000000007.7
19611
f80 00000000000000000008.8
19629
f98 00000000000000000008.8
19631
f100 00000000000000000008.8
19634
f103 0002-02-02 00:00:00
19635
f104 2000-12-31 23:59:59
19661
f79 00000000000000000007.7
19662
f80 00000000000000000008.8
19680
f98 00000000000000000008.8
19682
f100 00000000000000000008.8
19685
f103 0002-02-02 00:00:00
19686
f104 2000-12-31 23:59:59
19712
f79 00000000000000000007.7
19713
f80 00000000000000000008.8
19731
f98 00000000000000000008.8
19733
f100 00000000000000000008.8
19736
f103 0002-02-02 00:00:00
19737
f104 2000-12-31 23:59:59
19763
f79 00000000000000000007.7
19764
f80 00000000000000000008.8
19782
f98 00000000000000000008.8
19784
f100 00000000000000000008.8
19787
f103 0002-02-02 00:00:00
19788
f104 2000-12-31 23:59:59
19814
f79 00000000000000000007.7
19815
f80 00000000000000000008.8
19833
f98 00000000000000000008.8
19835
f100 00000000000000000008.8
19838
f103 0002-02-02 00:00:00
19839
f104 2000-12-31 23:59:59
19865
f79 00000000000000000007.7
19866
f80 00000000000000000008.8
19884
f98 00000000000000000008.8
19886
f100 00000000000000000008.8
19889
f103 0002-02-02 00:00:00
19890
f104 2000-12-31 23:59:59
19916
f79 00000000000000000007.7
19917
f80 00000000000000000008.8
19935
f98 00000000000000000008.8
19937
f100 00000000000000000008.8
19940
f103 0002-02-02 00:00:00
19941
f104 2000-12-31 23:59:59
19967
f79 00000000000000000007.7
19968
f80 00000000000000000008.8
19986
f98 00000000000000000008.8
19988
f100 00000000000000000008.8
19991
f103 0002-02-02 00:00:00
19992
f104 2000-12-31 23:59:59
20018
f79 00000000000000000007.7
20019
f80 00000000000000000008.8
20037
f98 00000000000000000008.8
20039
f100 00000000000000000008.8
20042
f103 0002-02-02 00:00:00
20043
f104 2000-12-31 23:59:59
20069
f79 00000000000000000007.7
20070
f80 00000000000000000008.8
20088
f98 00000000000000000008.8
20090
f100 00000000000000000008.8
20093
f103 0002-02-02 00:00:00
20094
f104 2000-12-31 23:59:59
20120
f79 00000000000000000007.7
20121
f80 00000000000000000008.8
20139
f98 00000000000000000008.8
20141
f100 00000000000000000008.8
20144
f103 0002-02-02 00:00:00
20145
f104 2000-12-31 23:59:59
20171
f79 00000000000000000007.7
20172
f80 00000000000000000008.8
20190
f98 00000000000000000008.8
20192
f100 00000000000000000008.8
20195
f103 0002-02-02 00:00:00
20196
f104 2000-12-31 23:59:59
20222
f79 00000000000000000007.7
20223
f80 00000000000000000008.8
20241
f98 00000000000000000008.8
20243
f100 00000000000000000008.8
20246
f103 0002-02-02 00:00:00
20247
f104 2000-12-31 23:59:59
20273
f79 00000000000000000007.7
20274
f80 00000000000000000008.8
20292
f98 00000000000000000008.8
20294
f100 00000000000000000008.8
20297
f103 0002-02-02 00:00:00
20298
f104 2000-12-31 23:59:59
20324
f79 00000000000000000007.7
20325
f80 00000000000000000008.8
20343
f98 00000000000000000008.8
20345
f100 00000000000000000008.8
20348
f103 0002-02-02 00:00:00
20349
f104 2000-12-31 23:59:59
20375
f79 00000000000000000007.7
20376
f80 00000000000000000008.8
20394
f98 00000000000000000008.8
20396
f100 00000000000000000008.8
20399
f103 0002-02-02 00:00:00
20400
f104 2000-12-31 23:59:59
20426
f79 00000000000000000007.7
20427
f80 00000000000000000008.8
20445
f98 00000000000000000008.8
20447
f100 00000000000000000008.8
20450
f103 0002-02-02 00:00:00
20451
f104 2000-12-31 23:59:59
20477
f79 00000000000000000007.7
20478
f80 00000000000000000008.8
20496
f98 00000000000000000008.8
20498
f100 00000000000000000008.8
20501
f103 0002-02-02 00:00:00
20502
f104 2000-12-31 23:59:59
20528
f79 00000000000000000007.7
20529
f80 00000000000000000008.8
20547
f98 00000000000000000008.8
20549
f100 00000000000000000008.8
20552
f103 0002-02-02 00:00:00
20553
f104 2000-12-31 23:59:59
20579
f79 00000000000000000007.7
20580
f80 00000000000000000008.8
20598
f98 00000000000000000008.8
20600
f100 00000000000000000008.8
20603
f103 0002-02-02 00:00:00
20604
f104 2000-12-31 23:59:59
20630
f79 00000000000000000007.7
20631
f80 00000000000000000008.8
20649
f98 00000000000000000008.8
20651
f100 00000000000000000008.8
20654
f103 0002-02-02 00:00:00
20655
f104 2000-12-31 23:59:59
20681
f79 00000000000000000007.7
20682
f80 00000000000000000008.8
20700
f98 00000000000000000008.8
20702
f100 00000000000000000008.8
20705
f103 0002-02-02 00:00:00
20706
f104 2000-12-31 23:59:59
20732
f79 00000000000000000007.7
20733
f80 00000000000000000008.8
20751
f98 00000000000000000008.8
20753
f100 00000000000000000008.8
20756
f103 0002-02-02 00:00:00
20757
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
20834
f79 00000000000000000007.7
20835
f80 00000000000000000008.8
20853
f98 00000000000000000008.8
20855
f100 00000000000000000008.8
20858
f103 0002-02-02 00:00:00
20859
f104 2000-12-31 23:59:59
20865
drop view test.v1 ;
20866
CREATE VIEW test.v1 AS SELECT F59,f61 FROM test.tb2;
20867
SELECT * FROM test.v1 order by f59,f61 desc limit 20;
20889
drop view test.v1 ;
20892
--------------------------------------------------------------------------------
20894
drop table if exists test.t1 ;
20895
drop table if exists test.t2 ;
20896
drop view if exists test.v1 ;
20897
Create table t1 (f59 int, f60 int) ;
20898
Create table t2 (f59 int, f60 int) ;
20899
Insert into t1 values (1,10) ;
20900
Insert into t1 values (2,20) ;
20901
Insert into t1 values (47,80) ;
20902
Insert into t2 values (1,1000) ;
20903
Insert into t2 values (2,2000) ;
20904
Insert into t2 values (31,97) ;
20905
Create view test.v1 as select t1.f59, t1.f60
20906
from t1,t2 where t1.f59=t2.f59 ;
20907
Select * from test.v1 order by f59 limit 50 ;
20911
drop table test.t1 ;
20912
drop table test.t2 ;
20913
drop view test.v1 ;
20915
Testcase 3.3.1.50 - 3.3.1.54 additional implementation
20916
--------------------------------------------------------------------------------
20917
DROP TABLE IF EXISTS t1 ;
20918
DROP VIEW IF EXISTS v1 ;
20919
CREATE TABLE t1 ( f1 BIGINT, f2 char(10), f3 DECIMAL(10,5) );
20920
INSERT INTO t1 VALUES(1, 'one', 1.1);
20921
INSERT INTO t1 VALUES(2, 'two', 2.2);
20922
INSERT INTO t1 VALUES(3, 'three', 3.3);
20923
CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1;
20929
CREATE OR REPLACE VIEW v1 AS SELECT f2 FROM t1;
20935
CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1 WHERE f3 = 2.2;
20939
CREATE OR REPLACE VIEW v1 AS SELECT f2 FROM t1 WHERE f3 = 2.2;
20943
SET sql_mode = 'traditional,ansi';
20944
CREATE OR REPLACE VIEW v1 AS
20945
SELECT f3 AS "pure column f3:", f1 + f3 AS "sum of columns f1 + f3 =",
20946
3 * (- 0.11111E+1) AS "product of constants 3 * (- 0.11111E+1):",
20947
'->' || CAST(f3 AS CHAR) || '<-'
20948
AS "expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR):"
20949
FROM t1 WHERE f1 = 2;
20950
CREATE OR REPLACE VIEW v1 AS
20951
SELECT f3 AS "pure column f3: ", f1 + f3 AS "sum of columns f1 + f3 = ",
20952
3 * (- 0.11111E+1) AS "product of constants 3 * (- 0.11111E+1): ",
20953
'->' || CAST(f3 AS CHAR) || '<-'
20954
AS "expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR): "
20955
FROM t1 WHERE f1 = 2;
20956
ERROR 42000: Incorrect column name 'pure column f3: '
20958
pure column f3: 2.20000
20959
sum of columns f1 + f3 = 4.20000
20960
product of constants 3 * (- 0.11111E+1): -3.3333
20961
expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR): ->2.20000<-
20964
Testcases 3.3.1.55 - 3.3.1.62
20965
--------------------------------------------------------------------------------
20966
Drop table if exists t1, t2 ;
20967
Drop view if exists v1 ;
20968
Create table t1 (f59 int, f60 char(10), f61 int, a char(1)) ;
20969
Insert into t1 values (1, 'single', 3, '1') ;
20970
Insert into t1 values (2, 'double', 6, '2') ;
20971
Insert into t1 values (3, 'single-f3', 4, '3') ;
20972
Create table t2 (f59 int, f60 char(10), f61 int, b char(1)) ;
20973
Insert into t2 values (2, 'double', 6, '2') ;
20974
Insert into t2 values (3, 'single-f3', 6, '3') ;
20975
Insert into t2 values (4, 'single', 4, '4') ;
20976
create or replace view test.v1 as
20977
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
20978
t1.f61 t1_f61, t2.f61 t2_f61
20979
from t1 inner join t2 where t1.f59 = t2.f59 ;
20980
select * from test.v1 order by t1_f59 ;
20981
t1_f59 t2_f59 t1_f60 t2_f60 t1_f61 t2_f61
20982
2 2 double double 6 6
20983
3 3 single-f3 single-f3 4 6
20984
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
20985
t1.f61 t1_f61, t2.f61 t2_f61
20986
from t1 inner join t2 where t1.f59 = t2.f59;
20987
t1_f59 t2_f59 t1_f60 t2_f60 t1_f61 t2_f61
20988
2 2 double double 6 6
20989
3 3 single-f3 single-f3 4 6
20990
Create or replace view test.v1 as
20991
Select t1.f59 AS t1_f59, t2.f59 AS t2_f59
20992
FROM t2 cross join t1;
20993
Select * from v1 order by t1_f59,t2_f59;
21004
Select t1.f59 AS t1_f59, t2.f59 AS t2_f59
21005
FROM t2 cross join t1;
21016
Create or replace view test.v1 as
21017
Select straight_join t1.f59 AS t1_f59, t2.f59 AS t2_f59
21019
Select * from v1 order by t1_f59,t2_f59;
21030
Select straight_join t1.f59 AS t1_f59, t2.f59 AS t2_f59
21042
Create or replace view test.v1 as
21043
Select f59, f60, f61, a, b
21044
FROM t2 natural join t1;
21045
Select * from v1 order by f59;
21048
Select f59, f60, f61, a, b
21049
FROM t2 natural join t1;
21052
Create or replace view test.v1 as
21053
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
21054
t1.f61 t1_f61, t2.f61 t2_f61
21055
FROM t2 left outer join t1 on t2.f59=t1.f59;
21056
Select * from v1 order by t1_f59;
21057
t1_f59 t2_f59 t1_f60 t2_f60 t1_f61 t2_f61
21058
NULL 4 NULL single NULL 4
21059
2 2 double double 6 6
21060
3 3 single-f3 single-f3 4 6
21061
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
21062
t1.f61 t1_f61, t2.f61 t2_f61
21063
FROM t2 left outer join t1 on t2.f59=t1.f59;
21064
t1_f59 t2_f59 t1_f60 t2_f60 t1_f61 t2_f61
21065
2 2 double double 6 6
21066
3 3 single-f3 single-f3 4 6
21067
NULL 4 NULL single NULL 4
21068
Create or replace view test.v1 as
21069
Select f59, f60, f61, t1.a, t2.b
21070
FROM t2 natural left outer join t1;
21071
Select * from v1 order by f59;
21074
3 single-f3 6 NULL 3
21076
Select f59, f60, f61, t1.a, t2.b
21077
FROM t2 natural left outer join t1;
21080
3 single-f3 6 NULL 3
21082
Create or replace view test.v1 as
21083
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
21084
t1.f61 t1_f61, t2.f61 t2_f61
21085
FROM t2 right outer join t1 on t2.f59=t1.f59;
21086
Select * from v1 order by t1_f59;
21087
t1_f59 t2_f59 t1_f60 t2_f60 t1_f61 t2_f61
21088
1 NULL single NULL 3 NULL
21089
2 2 double double 6 6
21090
3 3 single-f3 single-f3 4 6
21091
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
21092
t1.f61 t1_f61, t2.f61 t2_f61
21093
FROM t2 right outer join t1 on t2.f59=t1.f59;
21094
t1_f59 t2_f59 t1_f60 t2_f60 t1_f61 t2_f61
21095
1 NULL single NULL 3 NULL
21096
2 2 double double 6 6
21097
3 3 single-f3 single-f3 4 6
21098
Create or replace view test.v1 as
21099
Select f59, f60, a, b
21100
FROM t2 natural right outer join t1;
21101
Select * from v1 order by f59 desc;
21106
Select f59, f60, a, b
21107
FROM t2 natural right outer join t1;
21116
Testcase 3.3.1.A1 - 3.3.1.A3
21117
--------------------------------------------------------------------------------
21118
Drop table if exists t1 ;
21119
Drop view if exists v1;
21120
Create table t1 (f59 int, f60 int, f61 int) ;
21121
Insert into t1 values (101,201,301) ;
21122
Insert into t1 values (107,501,601) ;
21123
Insert into t1 values (901,801,401) ;
21124
Create or replace view test.v1 as
21125
Select tb2.f59 FROM tb2 LEFT JOIN t1 on tb2.f59 = t1.f59 ;
21126
Select * from test.v1 order by f59 limit 0,10;
21138
Drop view if exists test.v1 ;
21139
Drop table if exists t1 ;
21140
Drop view if exists v1;
21141
Create table t1 (f59 int, f60 int, f61 int) ;
21142
Insert into t1 values (201,201,201) ;
21143
Insert into t1 values (207,201,201) ;
21144
Insert into t1 values (201,201,201) ;
21145
Create or replace view test.v1
21146
as Select tb2.f59 FROM tb2 INNER JOIN t1 on tb2.f59 = t1.f59 ;
21147
Select * from test.v1 order by f59 limit 0,10;
21150
Drop view if exists test.v1 ;
21151
Drop table if exists t1 ;
21152
Drop view if exists v1;
21153
Create table t1 (f59 int, f60 int, f61 int) ;
21154
Insert into t1 values (21,21,21) ;
21155
Insert into t1 values (27,21,21) ;
21156
Insert into t1 values (21,21,21) ;
21157
Create or replace view test.v1
21158
as Select tb2.f59 FROM tb2 CROSS JOIN t1 on tb2.f59 = t1.f59 ;
21159
Select * from test.v1 order by f59 limit 0,10;
21162
Drop view test.v1 ;
21165
--------------------------------------------------------------------------------
21166
Drop table if exists t1 ;
21167
Drop view if exists test.v1 ;
21168
Create table t1 (f59 int, f60 int, f61 int) ;
21169
Insert into t1 values (11,21,31) ;
21170
Insert into t1 values (17,51,61) ;
21171
Insert into t1 values (91,81,41) ;
21172
Create or replace view test.v1 as (Select f59 FROM tb2 where f59=17 )
21173
Union ALL (Select f59 from t1 where f59=17 );
21174
Select * from test.v1 order by f59 limit 0,10;
21178
Create or replace view test.v1 as (Select f59 FROM tb2 where f59=17 )
21179
Union (Select f59 from t1 where f59=17 );
21180
Select * from test.v1 order by f59 limit 0,10;
21183
Create or replace view test.v1 as (Select f59 FROM tb2 where f59=17 )
21184
Union Distinct (Select f59 from t1 where f60=17 );
21185
Select * from test.v1 order by f59 limit 0,10;
21188
Drop view test.v1 ;
21189
drop table if exists t1;
21190
drop view if exists test.v1;
21191
create table t1 (f59 int, f60 int, f61 int);
21192
insert into t1 values (101,201,301);
21193
insert into t1 values (107,501,601);
21194
insert into t1 values (901,801,401);
21195
create or replace view test.v1 as
21196
select tb2.f59 from tb2 join t1 on tb2.f59 = t1.f59;
21197
select * from test.v1 order by f59 limit 0,10;
21201
create or replace view test.v1 as
21202
(select f59 from tb2 where f59=107 )
21204
(select f59 from t1 where f59=107 );
21205
select * from test.v1 order by f59 limit 0,10;
21210
create or replace view test.v1 as
21211
(select f59 from tb2 where f59=107 )
21213
(select f59 from t1 where f59=107 );
21214
select * from test.v1 order by f59 limit 0,10;
21217
create or replace view test.v1 as
21218
(select f59 from tb2 where f59=107 )
21220
(select f59 from t1 where f59=107 );
21221
select * from test.v1 order by f59 limit 0,10;
21224
drop view if exists test.v1 ;
21228
--------------------------------------------------------------------------------
21229
Drop view if exists test.v1 ;
21230
CREATE VIEW test.v1 AS SELECT F59
21231
FROM test.tb2 where test.tb2.F59 = 109;
21232
SELECT * FROM test.v1 order by f59 limit 0,10;
21236
ALTER VIEW test.v1 AS SELECT *
21237
FROM test.tb2 WHERE test.tb2.f59 = 242 ;
21238
SELECT * FROM test.v1 order by f59 limit 0,10;
21259
f79 00000000000000000007.7
21260
f80 00000000000000000008.8
21278
f98 00000000000000000008.8
21280
f100 00000000000000000008.8
21283
f103 0002-02-02 00:00:00
21284
f104 2000-12-31 23:59:59
21290
Drop view test.v1 ;
21292
Testcase 3.3.1.65, 3.3.1.A4, 3.3.1.66, 3.3.1.67
21293
--------------------------------------------------------------------------------
21294
DROP TABLE IF EXISTS t1;
21295
DROP VIEW IF EXISTS test.v1 ;
21296
CREATE TABLE t1 ( f1 VARCHAR(1000) ) ENGINE = ndb ;
21297
CREATE VIEW v1 AS SELECT f1 FROM t1;
21300
ERROR 42S02: Unknown table 'v1'
21301
CREATE VIEW v1 AS SELECT f1 FROM t1;
21302
DROP VIEW IF EXISTS v1;
21303
DROP VIEW IF EXISTS v1;
21305
Note 1051 Unknown table 'test.v1'
21308
--------------------------------------------------------------------------------
21309
DROP TABLE IF EXISTS t1;
21310
DROP VIEW IF EXISTS v1_base ;
21311
DROP VIEW IF EXISTS v1_top ;
21312
CREATE TABLE t1 ( f1 DOUBLE);
21313
CREATE VIEW v1_base AS SELECT * FROM t1;
21314
CREATE VIEW v1_top AS SELECT * FROM v1_base;
21317
ERROR 42S02: Unknown table 'v1_top'
21318
CREATE VIEW v1_top AS SELECT * FROM v1_base;
21319
DROP VIEW v1_base ;
21321
ERROR 42S02: Unknown table 'v1_base'
21323
CREATE VIEW v1_base AS SELECT * FROM t1;
21324
CREATE VIEW v1_top AS SELECT * FROM v1_base;
21325
DROP VIEW v1_top CASCADE ;
21327
ERROR 42S02: Unknown table 'v1_top'
21328
CREATE VIEW v1_top AS SELECT * FROM v1_base;
21329
DROP VIEW v1_base CASCADE ;
21331
ERROR 42S02: Unknown table 'v1_base'
21333
CREATE VIEW v1_base AS SELECT * FROM t1;
21334
CREATE VIEW v1_top AS SELECT * FROM v1_base;
21335
DROP VIEW v1_top RESTRICT ;
21337
ERROR 42S02: Unknown table 'v1_top'
21338
CREATE VIEW v1_top AS SELECT * FROM v1_base;
21339
DROP VIEW v1_base RESTRICT ;
21341
ERROR 42S02: Unknown table 'v1_base'
21344
Testcase 3.3.1.69, 3.3.1.70, 3.3.1.A5
21345
--------------------------------------------------------------------------------
21346
DROP TABLE IF EXISTS t1 ;
21347
DROP VIEW IF EXISTS v1 ;
21348
CREATE TABLE t1 (f59 INT, f60 INT, f61 INT) ENGINE = ndb;
21349
CREATE VIEW v1 AS SELECT * FROM t1;
21352
ERROR 42S02: Table 'test.v1' doesn't exist
21353
SHOW CREATE VIEW v1 ;
21354
ERROR 42S02: Table 'test.v1' doesn't exist
21355
SHOW CREATE TABLE v1 ;
21356
ERROR 42S02: Table 'test.v1' doesn't exist
21357
SHOW TABLE STATUS like 'v1' ;
21358
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
21359
SHOW TABLES LIKE 'v1';
21360
Tables_in_test (v1)
21361
SHOW COLUMNS FROM v1;
21362
ERROR 42S02: Table 'test.v1' doesn't exist
21363
SHOW FIELDS FROM v1;
21364
ERROR 42S02: Table 'test.v1' doesn't exist
21366
Table Op Msg_type Msg_text
21367
test.v1 check Error Table 'test.v1' doesn't exist
21368
test.v1 check error Corrupt
21370
ERROR 42S02: Table 'test.v1' doesn't exist
21371
EXPLAIN SELECT * FROM v1;
21372
ERROR 42S02: Table 'test.v1' doesn't exist
21376
--------------------------------------------------------------------------------
21377
DROP DATABASE IF EXISTS test3;
21378
CREATE DATABASE test3;
21379
CREATE TABLE test3.t1 (f1 DECIMAL(5,3)) ENGINE = ndb;
21380
INSERT INTO test3.t1 SET f1 = 1.0;
21381
CREATE VIEW test3.v0 AS SELECT * FROM test3.t1;
21382
CREATE VIEW test3.v1 AS SELECT * FROM test3.v0;
21383
CREATE VIEW test3.v2 AS SELECT * FROM test3.v1;
21384
CREATE VIEW test3.v3 AS SELECT * FROM test3.v2;
21385
CREATE VIEW test3.v4 AS SELECT * FROM test3.v3;
21386
CREATE VIEW test3.v5 AS SELECT * FROM test3.v4;
21387
CREATE VIEW test3.v6 AS SELECT * FROM test3.v5;
21388
CREATE VIEW test3.v7 AS SELECT * FROM test3.v6;
21389
CREATE VIEW test3.v8 AS SELECT * FROM test3.v7;
21390
CREATE VIEW test3.v9 AS SELECT * FROM test3.v8;
21391
CREATE VIEW test3.v10 AS SELECT * FROM test3.v9;
21392
CREATE VIEW test3.v11 AS SELECT * FROM test3.v10;
21393
CREATE VIEW test3.v12 AS SELECT * FROM test3.v11;
21394
CREATE VIEW test3.v13 AS SELECT * FROM test3.v12;
21395
CREATE VIEW test3.v14 AS SELECT * FROM test3.v13;
21396
CREATE VIEW test3.v15 AS SELECT * FROM test3.v14;
21397
CREATE VIEW test3.v16 AS SELECT * FROM test3.v15;
21398
CREATE VIEW test3.v17 AS SELECT * FROM test3.v16;
21399
CREATE VIEW test3.v18 AS SELECT * FROM test3.v17;
21400
CREATE VIEW test3.v19 AS SELECT * FROM test3.v18;
21401
CREATE VIEW test3.v20 AS SELECT * FROM test3.v19;
21402
CREATE VIEW test3.v21 AS SELECT * FROM test3.v20;
21403
CREATE VIEW test3.v22 AS SELECT * FROM test3.v21;
21404
CREATE VIEW test3.v23 AS SELECT * FROM test3.v22;
21405
CREATE VIEW test3.v24 AS SELECT * FROM test3.v23;
21406
CREATE VIEW test3.v25 AS SELECT * FROM test3.v24;
21407
CREATE VIEW test3.v26 AS SELECT * FROM test3.v25;
21408
CREATE VIEW test3.v27 AS SELECT * FROM test3.v26;
21409
CREATE VIEW test3.v28 AS SELECT * FROM test3.v27;
21410
CREATE VIEW test3.v29 AS SELECT * FROM test3.v28;
21411
CREATE VIEW test3.v30 AS SELECT * FROM test3.v29;
21412
CREATE VIEW test3.v31 AS SELECT * FROM test3.v30;
21413
CREATE VIEW test3.v32 AS SELECT * FROM test3.v31;
21414
SHOW CREATE VIEW test3.v32;
21415
View Create View character_set_client collation_connection
21416
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
21417
SELECT * FROM test3.v32;
21420
EXPLAIN SELECT * FROM test3.v32;
21421
id select_type table type possible_keys key key_len ref rows Extra
21422
1 SIMPLE t1 ALL NULL NULL NULL NULL 1
21423
DROP VIEW test3.v0;
21424
SHOW CREATE VIEW test3.v32;
21425
View Create View character_set_client collation_connection
21426
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
21428
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
21429
SELECT * FROM test3.v32;
21430
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
21431
EXPLAIN SELECT * FROM test3.v32;
21432
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
21434
FIXME - Setting join_limit to 28 - hangs for higher values
21435
----------------------------------------------------------
21436
SET @join_limit = 28;
21437
SET @max_level = @join_limit - 1;
21438
DROP DATABASE IF EXISTS test3;
21439
DROP TABLE IF EXISTS test1.t1;
21440
DROP TABLE IF EXISTS test2.t1;
21441
DROP VIEW IF EXISTS test1.v27;
21442
DROP VIEW IF EXISTS test1.v26;
21443
DROP VIEW IF EXISTS test1.v25;
21444
DROP VIEW IF EXISTS test1.v24;
21445
DROP VIEW IF EXISTS test1.v23;
21446
DROP VIEW IF EXISTS test1.v22;
21447
DROP VIEW IF EXISTS test1.v21;
21448
DROP VIEW IF EXISTS test1.v20;
21449
DROP VIEW IF EXISTS test1.v19;
21450
DROP VIEW IF EXISTS test1.v18;
21451
DROP VIEW IF EXISTS test1.v17;
21452
DROP VIEW IF EXISTS test1.v16;
21453
DROP VIEW IF EXISTS test1.v15;
21454
DROP VIEW IF EXISTS test1.v14;
21455
DROP VIEW IF EXISTS test1.v13;
21456
DROP VIEW IF EXISTS test1.v12;
21457
DROP VIEW IF EXISTS test1.v11;
21458
DROP VIEW IF EXISTS test1.v10;
21459
DROP VIEW IF EXISTS test1.v9;
21460
DROP VIEW IF EXISTS test1.v8;
21461
DROP VIEW IF EXISTS test1.v7;
21462
DROP VIEW IF EXISTS test1.v6;
21463
DROP VIEW IF EXISTS test1.v5;
21464
DROP VIEW IF EXISTS test1.v4;
21465
DROP VIEW IF EXISTS test1.v3;
21466
DROP VIEW IF EXISTS test1.v2;
21467
DROP VIEW IF EXISTS test1.v1;
21468
DROP VIEW IF EXISTS test1.v0;
21469
CREATE DATABASE test3;
21471
CREATE TABLE t1 (f1 BIGINT, f2 CHAR(50)) ENGINE = ndb ;
21472
INSERT INTO t1 VALUES (NULL, 'numeric column is NULL');
21473
INSERT INTO t1 VALUES (0, NULL);
21474
INSERT INTO t1 VALUES (5, 'five');
21475
INSERT INTO t1 VALUES (1, 'one');
21476
INSERT INTO t1 VALUES (2, 'two');
21478
CREATE TABLE t1 (f1 DECIMAL(64,30), f2 VARCHAR(50)) ENGINE = ndb;
21479
INSERT INTO t1 VALUES (NULL, 'numeric column is NULL');
21480
INSERT INTO t1 VALUES (0.000000000000000000000000000000, NULL);
21481
INSERT INTO t1 VALUES (5.000000000000000000000000000000, 'five');
21482
INSERT INTO t1 VALUES (+1.000000000000000000000000000000, 'one');
21483
INSERT INTO t1 VALUES (3.000000000000000, 'three');
21485
CREATE TABLE t1 (f1 DOUBLE, f2 VARBINARY(50)) ENGINE = ndb;
21486
INSERT INTO t1 VALUES (NULL, 'numeric column is NULL');
21487
INSERT INTO t1 VALUES (+0.0E-35, NULL);
21488
INSERT INTO t1 VALUES (+0.5E+1, 'five');
21489
INSERT INTO t1 VALUES (20.0E-1, 'two');
21490
INSERT INTO t1 VALUES (0.0300E2, 'three');
21492
CREATE OR REPLACE VIEW test1.v0 AS SELECT * FROM test2.t1;
21493
CREATE OR REPLACE VIEW test1.v1 AS SELECT f1, f2
21494
FROM test2.t1 tab1 NATURAL JOIN test1.v0 tab2;
21495
CREATE OR REPLACE VIEW test1.v2 AS SELECT f1, f2
21496
FROM test3.t1 tab1 NATURAL JOIN test1.v1 tab2;
21497
CREATE OR REPLACE VIEW test1.v3 AS SELECT f1, f2
21498
FROM test1.t1 tab1 NATURAL JOIN test1.v2 tab2;
21499
CREATE OR REPLACE VIEW test1.v4 AS SELECT f1, f2
21500
FROM test2.t1 tab1 NATURAL JOIN test1.v3 tab2;
21501
CREATE OR REPLACE VIEW test1.v5 AS SELECT f1, f2
21502
FROM test3.t1 tab1 NATURAL JOIN test1.v4 tab2;
21503
CREATE OR REPLACE VIEW test1.v6 AS SELECT f1, f2
21504
FROM test1.t1 tab1 NATURAL JOIN test1.v5 tab2;
21505
CREATE OR REPLACE VIEW test1.v7 AS SELECT f1, f2
21506
FROM test2.t1 tab1 NATURAL JOIN test1.v6 tab2;
21507
CREATE OR REPLACE VIEW test1.v8 AS SELECT f1, f2
21508
FROM test3.t1 tab1 NATURAL JOIN test1.v7 tab2;
21509
CREATE OR REPLACE VIEW test1.v9 AS SELECT f1, f2
21510
FROM test1.t1 tab1 NATURAL JOIN test1.v8 tab2;
21511
CREATE OR REPLACE VIEW test1.v10 AS SELECT f1, f2
21512
FROM test2.t1 tab1 NATURAL JOIN test1.v9 tab2;
21513
CREATE OR REPLACE VIEW test1.v11 AS SELECT f1, f2
21514
FROM test3.t1 tab1 NATURAL JOIN test1.v10 tab2;
21515
CREATE OR REPLACE VIEW test1.v12 AS SELECT f1, f2
21516
FROM test1.t1 tab1 NATURAL JOIN test1.v11 tab2;
21517
CREATE OR REPLACE VIEW test1.v13 AS SELECT f1, f2
21518
FROM test2.t1 tab1 NATURAL JOIN test1.v12 tab2;
21519
CREATE OR REPLACE VIEW test1.v14 AS SELECT f1, f2
21520
FROM test3.t1 tab1 NATURAL JOIN test1.v13 tab2;
21521
CREATE OR REPLACE VIEW test1.v15 AS SELECT f1, f2
21522
FROM test1.t1 tab1 NATURAL JOIN test1.v14 tab2;
21523
CREATE OR REPLACE VIEW test1.v16 AS SELECT f1, f2
21524
FROM test2.t1 tab1 NATURAL JOIN test1.v15 tab2;
21525
CREATE OR REPLACE VIEW test1.v17 AS SELECT f1, f2
21526
FROM test3.t1 tab1 NATURAL JOIN test1.v16 tab2;
21527
CREATE OR REPLACE VIEW test1.v18 AS SELECT f1, f2
21528
FROM test1.t1 tab1 NATURAL JOIN test1.v17 tab2;
21529
CREATE OR REPLACE VIEW test1.v19 AS SELECT f1, f2
21530
FROM test2.t1 tab1 NATURAL JOIN test1.v18 tab2;
21531
CREATE OR REPLACE VIEW test1.v20 AS SELECT f1, f2
21532
FROM test3.t1 tab1 NATURAL JOIN test1.v19 tab2;
21533
CREATE OR REPLACE VIEW test1.v21 AS SELECT f1, f2
21534
FROM test1.t1 tab1 NATURAL JOIN test1.v20 tab2;
21535
CREATE OR REPLACE VIEW test1.v22 AS SELECT f1, f2
21536
FROM test2.t1 tab1 NATURAL JOIN test1.v21 tab2;
21537
CREATE OR REPLACE VIEW test1.v23 AS SELECT f1, f2
21538
FROM test3.t1 tab1 NATURAL JOIN test1.v22 tab2;
21539
CREATE OR REPLACE VIEW test1.v24 AS SELECT f1, f2
21540
FROM test1.t1 tab1 NATURAL JOIN test1.v23 tab2;
21541
CREATE OR REPLACE VIEW test1.v25 AS SELECT f1, f2
21542
FROM test2.t1 tab1 NATURAL JOIN test1.v24 tab2;
21543
CREATE OR REPLACE VIEW test1.v26 AS SELECT f1, f2
21544
FROM test3.t1 tab1 NATURAL JOIN test1.v25 tab2;
21545
CREATE OR REPLACE VIEW test1.v27 AS SELECT f1, f2
21546
FROM test1.t1 tab1 NATURAL JOIN test1.v26 tab2;
21547
SHOW CREATE VIEW test1.v27;
21548
View Create View character_set_client collation_connection
21549
v27 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `test1`.`v27` AS select `tab1`.`f1` AS `f1`,`tab1`.`f2` AS `f2` from (`test1`.`t1` `tab1` join `test1`.`v26` `tab2` on(((`tab1`.`f1` = `tab2`.`f1`) and (`tab1`.`f2` = `tab2`.`f2`)))) latin1 latin1_swedish_ci
21550
SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
21551
CAST(f2 AS CHAR) AS f2 FROM test1.v27;
21555
The output of following EXPLAIN is deactivated, because the result
21556
differs on some platforms
21557
FIXME Is this a bug ?
21558
--------------------------------------------------------------------------------
21559
EXPLAIN SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
21560
CAST(f2 AS CHAR) AS f2 FROM test1.v27;
21561
CREATE VIEW test1.v28 AS SELECT f1, f2
21562
FROM test3.t1 tab1 NATURAL JOIN test1.v27 tab2;
21563
SHOW CREATE VIEW test1.v28;
21564
View Create View character_set_client collation_connection
21565
v28 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `test1`.`v28` AS select `tab1`.`f1` AS `f1`,`tab1`.`f2` AS `f2` from (`test3`.`t1` `tab1` join `test1`.`v27` `tab2` on(((`tab1`.`f1` = `tab2`.`f1`) and (`tab1`.`f2` = `tab2`.`f2`)))) latin1 latin1_swedish_ci
21566
SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
21567
CAST(f2 AS CHAR) AS f2 FROM test1.v28;
21571
The output of following EXPLAIN is deactivated, because the result
21572
differs on some platforms
21573
FIXME Is this a bug ?
21574
--------------------------------------------------------------------------------
21575
EXPLAIN SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
21576
CAST(f2 AS CHAR) AS f2 FROM test1.v28;
21577
DROP VIEW IF EXISTS test1.v28;
21578
CREATE OR REPLACE VIEW test1.v0 AS
21579
SELECT f1 as f2, f2 as f1 FROM test2.t1;
21580
CREATE OR REPLACE VIEW test2.v0 AS
21581
SELECT CAST('0001-01-01' AS DATE) as f1, f2 FROM test3.t1;
21582
SHOW CREATE VIEW test1.v27;
21583
SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
21584
CAST(f2 AS CHAR) AS f2 FROM test1.v27;
21585
EXPLAIN SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
21586
CAST(f2 AS CHAR) AS f2 FROM test1.v27;
21587
CREATE OR REPLACE VIEW test3.v0 AS
21588
SELECT f1 , CONVERT('ßÄäÖöÜü§' USING UCS2) as f2 FROM test1.t1;
21589
SHOW CREATE VIEW test1.v27;
21590
SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
21591
CAST(f2 AS CHAR) AS f2 FROM test1.v27;
21592
EXPLAIN SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
21593
CAST(f2 AS CHAR) AS f2 FROM test1.v27;
21594
CREATE OR REPLACE VIEW test3.v0 AS
21595
SELECT CONVERT('ßÄäÖöÜü§' USING UCS2) as f1, f2 FROM test1.t1;
21596
SHOW CREATE VIEW test1.v27;
21597
SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
21598
CAST(f2 AS CHAR) AS f2 FROM test1.v27;
21599
EXPLAIN SELECT CAST(f1 AS SIGNED INTEGER) AS f1,
21600
CAST(f2 AS CHAR) AS f2 FROM test1.v27;
21601
DROP VIEW IF EXISTS test1.v27;
21602
DROP VIEW IF EXISTS test1.v26;
21603
DROP VIEW IF EXISTS test1.v25;
21604
DROP VIEW IF EXISTS test1.v24;
21605
DROP VIEW IF EXISTS test1.v23;
21606
DROP VIEW IF EXISTS test1.v22;
21607
DROP VIEW IF EXISTS test1.v21;
21608
DROP VIEW IF EXISTS test1.v20;
21609
DROP VIEW IF EXISTS test1.v19;
21610
DROP VIEW IF EXISTS test1.v18;
21611
DROP VIEW IF EXISTS test1.v17;
21612
DROP VIEW IF EXISTS test1.v16;
21613
DROP VIEW IF EXISTS test1.v15;
21614
DROP VIEW IF EXISTS test1.v14;
21615
DROP VIEW IF EXISTS test1.v13;
21616
DROP VIEW IF EXISTS test1.v12;
21617
DROP VIEW IF EXISTS test1.v11;
21618
DROP VIEW IF EXISTS test1.v10;
21619
DROP VIEW IF EXISTS test1.v9;
21620
DROP VIEW IF EXISTS test1.v8;
21621
DROP VIEW IF EXISTS test1.v7;
21622
DROP VIEW IF EXISTS test1.v6;
21623
DROP VIEW IF EXISTS test1.v5;
21624
DROP VIEW IF EXISTS test1.v4;
21625
DROP VIEW IF EXISTS test1.v3;
21626
DROP VIEW IF EXISTS test1.v2;
21627
DROP VIEW IF EXISTS test1.v1;
21628
DROP VIEW IF EXISTS test1.v0;
21629
DROP DATABASE test3;
21630
DROP TABLE test1.t1;
21631
DROP TABLE test2.t1;
21635
--------------------------------------------------------------------------------
21636
Drop view if exists test.v1 ;
21637
Create View test.v1 AS SELECT f59,f60 FROM tb2 where f59 = 1995 ;
21638
INSERT INTO test.v1 (f59,f60) values (879,700) ;
21640
SELECT f59,f60 FROM test.v1 where f59 = 879 and f60 = 700 ;
21642
DELETE FROM tb2 where f59 = 879 and f60 = 700 ;
21643
Drop view test.v1 ;
21646
--------------------------------------------------------------------------------
21647
Drop view if exists test.v1 ;
21648
Create view test.v1 AS SELECT f59,f60,f61 FROM tb2 ;
21649
INSERT INTO test.v1 ( f59 , f60 ) values (2005,0101) ;
21651
SELECT * FROM tb2 where f59 = 2005 and f60 = 0101 ;
21672
f79 00000000000000000007.7
21673
f80 00000000000000000008.8
21691
f98 00000000000000000008.8
21693
f100 00000000000000000008.8
21696
f103 0002-02-02 00:00:00
21697
f104 2000-12-31 23:59:59
21703
SELECT f59,f60 FROM test.v1 where f59 = 2005 and f60 = 0101 ;
21706
DELETE FROM tb2 where f59 = 2005 and f60 = 0101 ;
21707
Drop view test.v1 ;
21710
--------------------------------------------------------------------------------
21711
Insert into tb2 (f59,f60,f61) values (780,105,106) ;
21712
Drop view if exists test.v1 ;
21713
CREATE VIEW test.v1 AS SELECT f59,f60,f61 FROM tb2 ;
21714
UPDATE test.v1 SET f59 = 8 WHERE f59 = 780 and f60 = 105;
21716
info: Rows matched: 1 Changed: 1 Warnings: 0
21717
SELECT * FROM tb2 where f59 = 8 and f60 = 105;
21738
f79 00000000000000000007.7
21739
f80 00000000000000000008.8
21757
f98 00000000000000000008.8
21759
f100 00000000000000000008.8
21762
f103 0002-02-02 00:00:00
21763
f104 2000-12-31 23:59:59
21769
SELECT f59,f60 FROM test.v1 where f59 = 8 and f60 = 105 ;
21772
Drop view test.v1 ;
21775
--------------------------------------------------------------------------------
21776
Insert into tb2 (f59,f60,f61) values (781,105,106) ;
21777
Drop view if exists test.v1 ;
21778
CREATE VIEW test.v1 AS SELECT f59,f60,f61 FROM tb2 ;
21779
UPDATE test.v1 SET f59 = 891 WHERE f60 = 105 ;
21781
info: Rows matched: 4 Changed: 4 Warnings: 0
21782
SELECT * FROM tb2 where f59 = 891 and f60 = 105;
21803
f79 00000000000000000007.7
21804
f80 00000000000000000008.8
21822
f98 00000000000000000008.8
21824
f100 00000000000000000008.8
21827
f103 0002-02-02 00:00:00
21828
f104 2000-12-31 23:59:59
21854
f79 00000000000000000007.7
21855
f80 00000000000000000008.8
21873
f98 00000000000000000008.8
21875
f100 00000000000000000008.8
21878
f103 0002-02-02 00:00:00
21879
f104 2000-12-31 23:59:59
21905
f79 00000000000000000007.7
21906
f80 00000000000000000008.8
21924
f98 00000000000000000008.8
21926
f100 00000000000000000008.8
21929
f103 0002-02-02 00:00:00
21930
f104 2000-12-31 23:59:59
21956
f79 00000000000000000007.7
21957
f80 00000000000000000008.8
21975
f98 00000000000000000008.8
21977
f100 00000000000000000008.8
21980
f103 0002-02-02 00:00:00
21981
f104 2000-12-31 23:59:59
21987
SELECT f59,f60 FROM test.v1 where f59 = 891 and f60 = 105 ;
21993
Drop view test.v1 ;
21996
--------------------------------------------------------------------------------
21997
Insert into tb2 (f59,f60,f61) values (789,105,106) ;
21998
Drop view if exists test.v1 ;
21999
CREATE VIEW test.v1 AS SELECT f59,f60,f61 FROM tb2 where f59 = 789 ;
22000
DELETE FROM test.v1 where f59 = 789 ;
22002
SELECT * FROM tb2 where f59 = 789 ;
22003
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
22004
SELECT f59,f60 FROM test.v1 where f59 = 789 order by f60 ;
22006
Drop view test.v1 ;
22009
--------------------------------------------------------------------------------
22010
Insert into tb2 (f59,f60,f61) values (711,105,106) ;
22011
Drop view if exists test.v1 ;
22012
CREATE VIEW test.v1 AS SELECT f59,f60,f61 FROM tb2 where f59 = 711 ;
22013
DELETE FROM test.v1 where f59 = 711 ;
22015
SELECT * FROM tb2 where f59 = 711 ;
22016
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
22017
SELECT f59,f60 FROM test.v1 where f59 = 711 order by f60 ;
22019
Drop view test.v1 ;
22021
Testcase 3.3.2.1 - 3.3.2.6 alternative implementation
22022
--------------------------------------------------------------------------------
22023
DROP TABLE IF EXISTS t1;
22024
DROP VIEW IF EXISTS v1;
22025
CREATE TABLE t1 ( f1 BIGINT, f2 CHAR(20), f3 NUMERIC(7,4),
22026
f4 CHAR, PRIMARY KEY(f1));
22027
CREATE VIEW v1 AS SELECT f1, f2, f3 FROM t1;
22028
INSERT INTO v1 SET f1 = 1;
22033
INSERT INTO v1 SET f2 = 'ABC';
22034
INSERT INTO v1 SET f2 = 'ABC';
22035
ERROR 23000: Duplicate entry '0' for key 'PRIMARY'
22040
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22041
DELETE FROM v1 WHERE f1 = 1;
22044
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22045
DELETE FROM v1 WHERE f2 = 'ABC';
22048
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22052
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22053
UPDATE v1 SET f1 = 2 WHERE f1 = 1;
22058
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22059
UPDATE v1 SET f1 = 2 WHERE f2 = 'ABC';
22064
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22065
UPDATE v1 SET f1 = 2;
22070
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22071
UPDATE v1 SET f2 = 'NNN' WHERE f1 = 1;
22076
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22077
UPDATE v1 SET f2 = 'NNN' WHERE f2 = 'ABC';
22082
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22083
UPDATE v1 SET f2 = 'NNN' WHERE f3 = -1.2E-3;
22088
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22089
UPDATE v1 SET f2 = 'NNN';
22094
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22095
UPDATE v1 SET f1 = 2, f2 = 'NNN' WHERE f1 = 1 AND f2 = 'ABC';
22101
CREATE VIEW v1 AS SELECT f2, f3 FROM t1;
22102
INSERT INTO v1 SET f2 = 'ABC';
22103
INSERT INTO v1 SET f2 = 'ABC';
22104
ERROR 23000: Duplicate entry '0' for key 'PRIMARY'
22109
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22110
DELETE FROM v1 WHERE f2 = 'ABC';
22113
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22117
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22118
UPDATE v1 SET f2 = 'NNN' WHERE f2 = 'ABC';
22123
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22124
UPDATE v1 SET f2 = 'NNN' WHERE f3 = -1.2E-3;
22129
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22130
UPDATE v1 SET f2 = 'NNN';
22136
CREATE VIEW v1 AS SELECT f1, f2, f3, 'HELLO' AS my_greeting FROM t1;
22137
INSERT INTO v1 SET f1 = 1;
22138
ERROR HY000: The target table v1 of the INSERT is not insertable-into
22142
INSERT INTO v1 SET f1 = 1, my_greeting = 'HELLO';
22143
ERROR HY000: The target table v1 of the INSERT is not insertable-into
22147
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22148
DELETE FROM v1 WHERE f1 = 1;
22151
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22152
DELETE FROM v1 WHERE f2 = 'ABC';
22155
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22156
DELETE FROM v1 WHERE my_greeting = 'HELLO';
22159
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22163
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22164
UPDATE v1 SET f1 = 2 WHERE f1 = 1;
22169
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22170
UPDATE v1 SET f1 = 2 WHERE f2 = 'ABC';
22175
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22176
UPDATE v1 SET f1 = 2 WHERE my_greeting = 'HELLO';
22181
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22182
UPDATE v1 SET f1 = 2;
22187
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22188
UPDATE v1 SET f2 = 'NNN' WHERE f1 = 1;
22193
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22194
UPDATE v1 SET f2 = 'NNN' WHERE f2 = 'ABC';
22199
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22200
UPDATE v1 SET f2 = 'NNN' WHERE f3 = -1.2E-3;
22205
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22206
UPDATE v1 SET f2 = 'NNN' WHERE my_greeting = 'HELLO';
22211
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22212
UPDATE v1 SET f2 = 'NNN';
22217
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22218
UPDATE v1 SET my_greeting = 'Hej' WHERE f1 = 1;
22219
ERROR HY000: Column 'my_greeting' is not updatable
22224
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22225
UPDATE v1 SET my_greeting = 'Hej' WHERE f2 = 'ABC';
22226
ERROR HY000: Column 'my_greeting' is not updatable
22231
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22232
UPDATE v1 SET my_greeting = 'Hej' WHERE my_greeting = 'HELLO';
22233
ERROR HY000: Column 'my_greeting' is not updatable
22238
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22239
UPDATE v1 SET my_greeting = 'Hej';
22240
ERROR HY000: Column 'my_greeting' is not updatable
22245
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22246
UPDATE v1 SET f1 = 2, f2 = 'NNN' WHERE f1 = 1 AND f2 = 'ABC';
22252
SET sql_mode = 'traditional';
22253
CREATE TABLE t1 ( f1 BIGINT, f2 CHAR(20), f3 NUMERIC(7,4) NOT NULL,
22254
f4 CHAR, PRIMARY KEY(f1));
22256
CREATE VIEW v1 AS SELECT f1, f2, f4 FROM t1;
22257
INSERT INTO v1 SET f1 = 1;
22258
ERROR HY000: Field of view 'test.v1' underlying table doesn't have a default value
22262
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22263
DELETE FROM v1 WHERE f1 = 1;
22264
INSERT INTO t1 VALUES(1, 'ABC', -1.2E-3, 'X');
22265
UPDATE v1 SET f4 = 'Y' WHERE f2 = 'ABC';
22272
Testcases 3.3.2.7 - 3.3.2.9,
22273
3.3.2.10 - 3.3.2.11 omitted because of missing
22274
features EXCEPT and INTERSECT
22275
--------------------------------------------------------------------------------
22276
INSERT INTO tb2 (f59,f60,f61) VALUES (77,185,126) ;
22277
INSERT INTO tb2 (f59,f60,f61) VALUES (59,58,54) ;
22278
DROP TABLE IF EXISTS t1 ;
22279
DROP VIEW IF EXISTS v1 ;
22280
CREATE TABLE t1 (f59 INT, f60 INT, f61 INT) ;
22281
INSERT INTO t1 VALUES (19,41,32) ;
22282
INSERT INTO t1 VALUES (59,54,71) ;
22283
INSERT INTO t1 VALUES (21,91,99) ;
22284
SET @variant1 = 'UNION ';
22285
SET @variant2 = 'UNION ALL ';
22286
SET @variant3 = 'UNION DISTINCT ';
22287
SET @variant4 = 'EXCEPT ';
22288
SET @variant5 = 'INTERSECT ';
22289
CREATE VIEW v1 AS SELECT f61 FROM tb2 WHERE f59=59 UNION DISTINCT SELECT f61 FROM t1 WHERE f59=19;
22290
INSERT INTO v1 VALUES (3000);
22291
ERROR HY000: The target table v1 of the INSERT is not insertable-into
22292
UPDATE v1 SET f61 = 100 WHERE f61 = 32;
22293
ERROR HY000: The target table v1 of the UPDATE is not updatable
22295
ERROR HY000: The target table v1 of the DELETE is not updatable
22297
CREATE VIEW v1 AS SELECT f61 FROM tb2 WHERE f59=59 UNION ALL SELECT f61 FROM t1 WHERE f59=19;
22298
INSERT INTO v1 VALUES (3000);
22299
ERROR HY000: The target table v1 of the INSERT is not insertable-into
22300
UPDATE v1 SET f61 = 100 WHERE f61 = 32;
22301
ERROR HY000: The target table v1 of the UPDATE is not updatable
22303
ERROR HY000: The target table v1 of the DELETE is not updatable
22305
CREATE VIEW v1 AS SELECT f61 FROM tb2 WHERE f59=59 UNION SELECT f61 FROM t1 WHERE f59=19;
22306
INSERT INTO v1 VALUES (3000);
22307
ERROR HY000: The target table v1 of the INSERT is not insertable-into
22308
UPDATE v1 SET f61 = 100 WHERE f61 = 32;
22309
ERROR HY000: The target table v1 of the UPDATE is not updatable
22311
ERROR HY000: The target table v1 of the DELETE is not updatable
22314
Testcases 3.3.2.12 - 3.3.2.20
22315
--------------------------------------------------------------------------------
22316
DROP TABLE IF EXISTS t1, t2 ;
22317
DROP VIEW IF EXISTS test.v1 ;
22318
Drop view if exists v2 ;
22319
CREATE TABLE t1 (f59 int, f60 int, f61 int) ;
22320
INSERT INTO t1 VALUES (19,41,32) ;
22321
INSERT INTO t1 VALUES (59,54,71) ;
22322
INSERT INTO t1 VALUES (21,91,99) ;
22323
CREATE TABLE t2 (f59 int, f60 int, f61 int) ;
22324
INSERT INTO t2 VALUES (19,41,32) ;
22325
INSERT INTO t2 VALUES (59,54,71) ;
22326
INSERT INTO t2 VALUES (21,91,99) ;
22327
CREATE VIEW v2 AS SELECT f59, f60, f61 FROM t2 LIMIT 5;
22328
SET @variant1= 'CREATE VIEW v1 AS SELECT DISTINCT(f61) FROM t1';
22329
SET @variant2= 'CREATE VIEW v1 AS SELECT DISTINCTROW(f61) FROM t1';
22330
SET @variant3= 'CREATE VIEW v1 AS SELECT SUM(f59) AS f61 FROM t1';
22331
SET @variant4= 'CREATE VIEW v1 AS SELECT f61 FROM t1 GROUP BY f61';
22332
SET @variant5= 'CREATE VIEW v1 AS SELECT f61 FROM t1 HAVING f61 > 0';
22333
SET @variant6= 'CREATE VIEW v1 AS SELECT (SELECT f60 FROM t2 WHERE f59=19) AS f61 FROM t1';
22334
SET @variant7= 'CREATE VIEW v1 AS SELECT f61 FROM v2';
22335
SET @variant8= 'CREATE VIEW v1 AS SELECT f59 AS f61 FROM t1 WHERE f60 IN (SELECT f59 FROM t1)';
22336
SET @variant9= 'CREATE ALGORITHM = TEMPTABLE VIEW v1 (f61) AS select f60 from t1';
22337
CREATE ALGORITHM = TEMPTABLE VIEW v1 (f61) AS select f60 from t1;
22338
INSERT INTO v1 VALUES (1002);
22339
ERROR HY000: The target table v1 of the INSERT is not insertable-into
22340
UPDATE v1 SET f61=1007;
22341
ERROR HY000: The target table v1 of the UPDATE is not updatable
22343
ERROR HY000: The target table v1 of the DELETE is not updatable
22345
CREATE VIEW v1 AS SELECT f59 AS f61 FROM t1 WHERE f60 IN (SELECT f59 FROM t1);
22346
INSERT INTO v1 VALUES (1002);
22347
ERROR HY000: The target table v1 of the INSERT is not insertable-into
22348
UPDATE v1 SET f61=1007;
22349
ERROR HY000: The target table v1 of the UPDATE is not updatable
22351
ERROR HY000: The target table v1 of the DELETE is not updatable
22353
CREATE VIEW v1 AS SELECT f61 FROM v2;
22354
INSERT INTO v1 VALUES (1002);
22355
ERROR HY000: The target table v1 of the INSERT is not insertable-into
22356
UPDATE v1 SET f61=1007;
22357
ERROR HY000: The target table v1 of the UPDATE is not updatable
22359
ERROR HY000: The target table v1 of the DELETE is not updatable
22361
CREATE VIEW v1 AS SELECT (SELECT f60 FROM t2 WHERE f59=19) AS f61 FROM t1;
22362
INSERT INTO v1 VALUES (1002);
22363
ERROR HY000: The target table v1 of the INSERT is not insertable-into
22364
UPDATE v1 SET f61=1007;
22365
ERROR HY000: The target table v1 of the UPDATE is not updatable
22367
ERROR HY000: The target table v1 of the DELETE is not updatable
22369
CREATE VIEW v1 AS SELECT f61 FROM t1 HAVING f61 > 0;
22370
INSERT INTO v1 VALUES (1002);
22371
ERROR HY000: The target table v1 of the INSERT is not insertable-into
22372
UPDATE v1 SET f61=1007;
22373
ERROR HY000: The target table v1 of the UPDATE is not updatable
22375
ERROR HY000: The target table v1 of the DELETE is not updatable
22377
CREATE VIEW v1 AS SELECT f61 FROM t1 GROUP BY f61;
22378
INSERT INTO v1 VALUES (1002);
22379
ERROR HY000: The target table v1 of the INSERT is not insertable-into
22380
UPDATE v1 SET f61=1007;
22381
ERROR HY000: The target table v1 of the UPDATE is not updatable
22383
ERROR HY000: The target table v1 of the DELETE is not updatable
22385
CREATE VIEW v1 AS SELECT SUM(f59) AS f61 FROM t1;
22386
INSERT INTO v1 VALUES (1002);
22387
ERROR HY000: The target table v1 of the INSERT is not insertable-into
22388
UPDATE v1 SET f61=1007;
22389
ERROR HY000: The target table v1 of the UPDATE is not updatable
22391
ERROR HY000: The target table v1 of the DELETE is not updatable
22393
CREATE VIEW v1 AS SELECT DISTINCTROW(f61) FROM t1;
22394
INSERT INTO v1 VALUES (1002);
22395
ERROR HY000: The target table v1 of the INSERT is not insertable-into
22396
UPDATE v1 SET f61=1007;
22397
ERROR HY000: The target table v1 of the UPDATE is not updatable
22399
ERROR HY000: The target table v1 of the DELETE is not updatable
22401
CREATE VIEW v1 AS SELECT DISTINCT(f61) FROM t1;
22402
INSERT INTO v1 VALUES (1002);
22403
ERROR HY000: The target table v1 of the INSERT is not insertable-into
22404
UPDATE v1 SET f61=1007;
22405
ERROR HY000: The target table v1 of the UPDATE is not updatable
22407
ERROR HY000: The target table v1 of the DELETE is not updatable
22409
Drop TABLE t1, t2 ;
22413
--------------------------------------------------------------------------------
22414
DROP TABLE IF EXISTS t1;
22415
DROP TABLE IF EXISTS t2;
22416
DROP VIEW IF EXISTS v1;
22417
DROP VIEW IF EXISTS v2;
22418
CREATE TABLE t1 (f1 BIGINT, f2 DATE DEFAULT NULL, f4 CHAR(5),
22419
report char(10)) ENGINE = ndb;
22420
CREATE VIEW v1 AS SELECT * FROM t1;
22421
INSERT INTO t1 SET f1 = -1, f4 = 'ABC', report = 't1 0';
22422
INSERT INTO v1 SET f1 = -1, f4 = 'ABC', report = 'v1 0';
22424
Field Type Null Key Default Extra
22425
f1 bigint(20) YES NULL
22427
f4 char(5) YES NULL
22428
report char(10) YES NULL
22430
Field Type Null Key Default Extra
22431
f1 bigint(20) YES NULL
22433
f4 char(5) YES NULL
22434
report char(10) YES NULL
22435
SELECT * FROM t1 order by f1, report;
22439
SELECT * FROM v1 order by f1, report;
22443
ALTER TABLE t1 CHANGE COLUMN f4 f4x CHAR(5);
22444
INSERT INTO t1 SET f1 = 0, f4x = 'ABC', report = 't1 1';
22445
INSERT INTO v1 SET f1 = 0, f4 = 'ABC', report = 'v1 1';
22446
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
22447
INSERT INTO v1 SET f1 = 0, f4x = 'ABC', report = 'v1 1a';
22448
ERROR 42S22: Unknown column 'f4x' in 'field list'
22449
INSERT INTO v1 SET f1 = 0, report = 'v1 1b';
22450
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
22452
Field Type Null Key Default Extra
22453
f1 bigint(20) YES NULL
22455
f4x char(5) YES NULL
22456
report char(10) YES NULL
22458
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
22459
SELECT * FROM t1 order by f1, report;
22464
SELECT * FROM v1 order by f1, report;
22465
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
22466
ALTER TABLE t1 CHANGE COLUMN f4x f4 CHAR(5);
22467
ALTER TABLE t1 CHANGE COLUMN f4 f4 CHAR(10);
22468
INSERT INTO t1 SET f1 = 2, f4 = '<-- 10 -->', report = 't1 2';
22469
INSERT INTO v1 SET f1 = 2, f4 = '<-- 10 -->', report = 'v1 2';
22471
Field Type Null Key Default Extra
22472
f1 bigint(20) YES NULL
22474
f4 char(10) YES NULL
22475
report char(10) YES NULL
22477
Field Type Null Key Default Extra
22478
f1 bigint(20) YES NULL
22480
f4 char(10) YES NULL
22481
report char(10) YES NULL
22482
SELECT * FROM t1 order by f1, report;
22487
2 NULL <-- 10 --> t1 2
22488
2 NULL <-- 10 --> v1 2
22489
SELECT * FROM v1 order by f1, report;
22494
2 NULL <-- 10 --> t1 2
22495
2 NULL <-- 10 --> v1 2
22496
ALTER TABLE t1 CHANGE COLUMN f4 f4 CHAR(8);
22497
INSERT INTO t1 SET f1 = 3, f4 = '<-- 10 -->', report = 't1 3';
22499
Warning 1265 Data truncated for column 'f4' at row 1
22500
INSERT INTO v1 SET f1 = 3, f4 = '<-- 10 -->', report = 'v1 3';
22502
Warning 1265 Data truncated for column 'f4' at row 1
22504
Field Type Null Key Default Extra
22505
f1 bigint(20) YES NULL
22507
f4 char(8) YES NULL
22508
report char(10) YES NULL
22510
Field Type Null Key Default Extra
22511
f1 bigint(20) YES NULL
22513
f4 char(8) YES NULL
22514
report char(10) YES NULL
22515
SELECT * FROM t1 order by f1, report;
22520
2 NULL <-- 10 - t1 2
22521
2 NULL <-- 10 - v1 2
22522
3 NULL <-- 10 - t1 3
22523
3 NULL <-- 10 - v1 3
22524
SELECT * FROM v1 order by f1, report;
22529
2 NULL <-- 10 - t1 2
22530
2 NULL <-- 10 - v1 2
22531
3 NULL <-- 10 - t1 3
22532
3 NULL <-- 10 - v1 3
22533
ALTER TABLE t1 CHANGE COLUMN f4 f4 VARCHAR(20);
22534
INSERT INTO t1 SET f1 = 4, f4 = '<------ 20 -------->', report = 't1 4';
22535
INSERT INTO v1 SET f1 = 4, f4 = '<------ 20 -------->', report = 'v1 4';
22537
Field Type Null Key Default Extra
22538
f1 bigint(20) YES NULL
22540
f4 varchar(20) YES NULL
22541
report char(10) YES NULL
22543
Field Type Null Key Default Extra
22544
f1 bigint(20) YES NULL
22546
f4 varchar(20) YES NULL
22547
report char(10) YES NULL
22548
SELECT * FROM t1 order by f1, report;
22553
2 NULL <-- 10 - t1 2
22554
2 NULL <-- 10 - v1 2
22555
3 NULL <-- 10 - t1 3
22556
3 NULL <-- 10 - v1 3
22557
4 NULL <------ 20 --------> t1 4
22558
4 NULL <------ 20 --------> v1 4
22559
SELECT * FROM v1 order by f1, report;
22564
2 NULL <-- 10 - t1 2
22565
2 NULL <-- 10 - v1 2
22566
3 NULL <-- 10 - t1 3
22567
3 NULL <-- 10 - v1 3
22568
4 NULL <------ 20 --------> t1 4
22569
4 NULL <------ 20 --------> v1 4
22570
ALTER TABLE t1 CHANGE COLUMN f1 f1 VARCHAR(30);
22571
INSERT INTO t1 SET f1 = '<------------- 30 ----------->',
22572
f4 = '<------ 20 -------->', report = 't1 5';
22573
INSERT INTO v1 SET f1 = '<------------- 30 ----------->',
22574
f4 = '<------ 20 -------->', report = 'v1 5';
22576
Field Type Null Key Default Extra
22577
f1 varchar(30) YES NULL
22579
f4 varchar(20) YES NULL
22580
report char(10) YES NULL
22582
Field Type Null Key Default Extra
22583
f1 varchar(30) YES NULL
22585
f4 varchar(20) YES NULL
22586
report char(10) YES NULL
22587
SELECT * FROM t1 order by f1, report;
22592
2 NULL <-- 10 - t1 2
22593
2 NULL <-- 10 - v1 2
22594
3 NULL <-- 10 - t1 3
22595
3 NULL <-- 10 - v1 3
22596
4 NULL <------ 20 --------> t1 4
22597
4 NULL <------ 20 --------> v1 4
22598
<------------- 30 -----------> NULL <------ 20 --------> t1 5
22599
<------------- 30 -----------> NULL <------ 20 --------> v1 5
22600
SELECT * FROM v1 order by f1, report;
22605
2 NULL <-- 10 - t1 2
22606
2 NULL <-- 10 - v1 2
22607
3 NULL <-- 10 - t1 3
22608
3 NULL <-- 10 - v1 3
22609
4 NULL <------ 20 --------> t1 4
22610
4 NULL <------ 20 --------> v1 4
22611
<------------- 30 -----------> NULL <------ 20 --------> t1 5
22612
<------------- 30 -----------> NULL <------ 20 --------> v1 5
22613
ALTER TABLE t1 DROP COLUMN f2;
22614
INSERT INTO t1 SET f1 = 'ABC', f4 = '<------ 20 -------->', report = 't1 6';
22615
INSERT INTO v1 SET f1 = 'ABC', f4 = '<------ 20 -------->', report = 'v1 6';
22616
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
22618
Field Type Null Key Default Extra
22619
f1 varchar(30) YES NULL
22620
f4 varchar(20) YES NULL
22621
report char(10) YES NULL
22623
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
22624
SELECT * FROM t1 order by f1, report;
22633
4 <------ 20 --------> t1 4
22634
4 <------ 20 --------> v1 4
22635
<------------- 30 -----------> <------ 20 --------> t1 5
22636
<------------- 30 -----------> <------ 20 --------> v1 5
22637
ABC <------ 20 --------> t1 6
22638
SELECT * FROM v1 order by f1, report;
22639
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
22640
ALTER TABLE t1 ADD COLUMN f2 DATE DEFAULT NULL;
22641
INSERT INTO t1 SET f1 = 'ABC', f2 = '1500-12-04',
22642
f4 = '<------ 20 -------->', report = 't1 7';
22643
INSERT INTO v1 SET f1 = 'ABC', f2 = '1500-12-04',
22644
f4 = '<------ 20 -------->', report = 'v1 7';
22646
Field Type Null Key Default Extra
22647
f1 varchar(30) YES NULL
22648
f4 varchar(20) YES NULL
22649
report char(10) YES NULL
22652
Field Type Null Key Default Extra
22653
f1 varchar(30) YES NULL
22655
f4 varchar(20) YES NULL
22656
report char(10) YES NULL
22657
SELECT * FROM t1 order by f1, report;
22662
2 <-- 10 - t1 2 NULL
22663
2 <-- 10 - v1 2 NULL
22664
3 <-- 10 - t1 3 NULL
22665
3 <-- 10 - v1 3 NULL
22666
4 <------ 20 --------> t1 4 NULL
22667
4 <------ 20 --------> v1 4 NULL
22668
<------------- 30 -----------> <------ 20 --------> t1 5 NULL
22669
<------------- 30 -----------> <------ 20 --------> v1 5 NULL
22670
ABC <------ 20 --------> t1 6 NULL
22671
ABC <------ 20 --------> t1 7 1500-12-04
22672
ABC <------ 20 --------> v1 7 1500-12-04
22673
SELECT * FROM v1 order by f1, report;
22678
2 NULL <-- 10 - t1 2
22679
2 NULL <-- 10 - v1 2
22680
3 NULL <-- 10 - t1 3
22681
3 NULL <-- 10 - v1 3
22682
4 NULL <------ 20 --------> t1 4
22683
4 NULL <------ 20 --------> v1 4
22684
<------------- 30 -----------> NULL <------ 20 --------> t1 5
22685
<------------- 30 -----------> NULL <------ 20 --------> v1 5
22686
ABC NULL <------ 20 --------> t1 6
22687
ABC 1500-12-04 <------ 20 --------> t1 7
22688
ABC 1500-12-04 <------ 20 --------> v1 7
22689
ALTER TABLE t1 DROP COLUMN f2;
22690
ALTER TABLE t1 ADD COLUMN f2 FLOAT;
22691
INSERT INTO t1 SET f1 = 'ABC', f2 = -3.3E-4,
22692
f4 = '<------ 20 -------->', report = 't1 8';
22693
INSERT INTO v1 SET f1 = 'ABC', f2 = -3.3E-4,
22694
f4 = '<------ 20 -------->', report = 'v1 8';
22696
Field Type Null Key Default Extra
22697
f1 varchar(30) YES NULL
22698
f4 varchar(20) YES NULL
22699
report char(10) YES NULL
22702
Field Type Null Key Default Extra
22703
f1 varchar(30) YES NULL
22705
f4 varchar(20) YES NULL
22706
report char(10) YES NULL
22707
SELECT * FROM t1 order by f1, report;
22712
2 <-- 10 - t1 2 NULL
22713
2 <-- 10 - v1 2 NULL
22714
3 <-- 10 - t1 3 NULL
22715
3 <-- 10 - v1 3 NULL
22716
4 <------ 20 --------> t1 4 NULL
22717
4 <------ 20 --------> v1 4 NULL
22718
<------------- 30 -----------> <------ 20 --------> t1 5 NULL
22719
<------------- 30 -----------> <------ 20 --------> v1 5 NULL
22720
ABC <------ 20 --------> t1 6 NULL
22721
ABC <------ 20 --------> t1 7 NULL
22722
ABC <------ 20 --------> t1 8 -0.00033
22723
ABC <------ 20 --------> v1 7 NULL
22724
ABC <------ 20 --------> v1 8 -0.00033
22725
SELECT * FROM v1 order by f1, report;
22730
2 NULL <-- 10 - t1 2
22731
2 NULL <-- 10 - v1 2
22732
3 NULL <-- 10 - t1 3
22733
3 NULL <-- 10 - v1 3
22734
4 NULL <------ 20 --------> t1 4
22735
4 NULL <------ 20 --------> v1 4
22736
<------------- 30 -----------> NULL <------ 20 --------> t1 5
22737
<------------- 30 -----------> NULL <------ 20 --------> v1 5
22738
ABC NULL <------ 20 --------> t1 6
22739
ABC NULL <------ 20 --------> t1 7
22740
ABC -0.00033 <------ 20 --------> t1 8
22741
ABC NULL <------ 20 --------> v1 7
22742
ABC -0.00033 <------ 20 --------> v1 8
22743
ALTER TABLE t1 ADD COLUMN f3 NUMERIC(7,2);
22744
INSERT INTO t1 SET f1 = 'ABC', f2 = -3.3E-4,
22745
f3 = -2.2, f4 = '<------ 20 -------->', report = 't1 9';
22746
INSERT INTO v1 SET f1 = 'ABC', f2 = -3.3E-4,
22747
f3 = -2.2, f4 = '<------ 20 -------->', report = 'v1 9';
22748
ERROR 42S22: Unknown column 'f3' in 'field list'
22749
INSERT INTO v1 SET f1 = 'ABC', f2 = -3.3E-4,
22750
f4 = '<------ 20 -------->', report = 'v1 9a';
22752
Field Type Null Key Default Extra
22753
f1 varchar(30) YES NULL
22754
f4 varchar(20) YES NULL
22755
report char(10) YES NULL
22757
f3 decimal(7,2) YES NULL
22759
Field Type Null Key Default Extra
22760
f1 varchar(30) YES NULL
22762
f4 varchar(20) YES NULL
22763
report char(10) YES NULL
22764
SELECT * FROM t1 order by f1, report;
22766
-1 ABC t1 0 NULL NULL
22767
-1 ABC v1 0 NULL NULL
22768
0 ABC t1 1 NULL NULL
22769
2 <-- 10 - t1 2 NULL NULL
22770
2 <-- 10 - v1 2 NULL NULL
22771
3 <-- 10 - t1 3 NULL NULL
22772
3 <-- 10 - v1 3 NULL NULL
22773
4 <------ 20 --------> t1 4 NULL NULL
22774
4 <------ 20 --------> v1 4 NULL NULL
22775
<------------- 30 -----------> <------ 20 --------> t1 5 NULL NULL
22776
<------------- 30 -----------> <------ 20 --------> v1 5 NULL NULL
22777
ABC <------ 20 --------> t1 6 NULL NULL
22778
ABC <------ 20 --------> t1 7 NULL NULL
22779
ABC <------ 20 --------> t1 8 -0.00033 NULL
22780
ABC <------ 20 --------> t1 9 -0.00033 -2.20
22781
ABC <------ 20 --------> v1 7 NULL NULL
22782
ABC <------ 20 --------> v1 8 -0.00033 NULL
22783
ABC <------ 20 --------> v1 9a -0.00033 NULL
22784
SELECT * FROM v1 order by f1, report;
22789
2 NULL <-- 10 - t1 2
22790
2 NULL <-- 10 - v1 2
22791
3 NULL <-- 10 - t1 3
22792
3 NULL <-- 10 - v1 3
22793
4 NULL <------ 20 --------> t1 4
22794
4 NULL <------ 20 --------> v1 4
22795
<------------- 30 -----------> NULL <------ 20 --------> t1 5
22796
<------------- 30 -----------> NULL <------ 20 --------> v1 5
22797
ABC NULL <------ 20 --------> t1 6
22798
ABC NULL <------ 20 --------> t1 7
22799
ABC -0.00033 <------ 20 --------> t1 8
22800
ABC -0.00033 <------ 20 --------> t1 9
22801
ABC NULL <------ 20 --------> v1 7
22802
ABC -0.00033 <------ 20 --------> v1 8
22803
ABC -0.00033 <------ 20 --------> v1 9a
22806
CREATE TABLE t1 (f1 CHAR(10), f2 BIGINT) ENGINE = ndb;
22807
INSERT INTO t1 SET f1 = 'ABC', f2 = 3;
22808
CREATE VIEW v1 AS SELECT f1, SQRT(f2) my_sqrt FROM t1;
22810
Field Type Null Key Default Extra
22811
f1 char(10) YES NULL
22812
f2 bigint(20) YES NULL
22814
Field Type Null Key Default Extra
22815
f1 char(10) YES NULL
22816
my_sqrt double YES NULL
22817
SELECT * FROM t1 order by f1, f2;
22820
SELECT * FROM v1 order by 2;
22822
ABC 1.7320508075688772
22823
ALTER TABLE t1 CHANGE COLUMN f2 f2 VARCHAR(30);
22824
INSERT INTO t1 SET f1 = 'ABC', f2 = 'DEF';
22826
Field Type Null Key Default Extra
22827
f1 char(10) YES NULL
22828
f2 varchar(30) YES NULL
22830
Field Type Null Key Default Extra
22831
f1 char(10) YES NULL
22832
my_sqrt double YES NULL
22833
SELECT * FROM t1 order by f1, f2;
22837
SELECT * FROM v1 order by 2;
22840
ABC 1.7320508075688772
22841
SELECT SQRT('DEF');
22845
Warning 1292 Truncated incorrect DOUBLE value: 'DEF'
22846
CREATE VIEW v2 AS SELECT SQRT('DEF');
22847
SELECT * FROM v2 order by 1;
22851
Warning 1292 Truncated incorrect DOUBLE value: 'DEF'
22852
CREATE OR REPLACE VIEW v2 AS SELECT f1, SQRT(f2) my_sqrt FROM t1;
22854
Field Type Null Key Default Extra
22855
f1 char(10) YES NULL
22856
my_sqrt double YES NULL
22857
SELECT * FROM v2 order by 2;
22860
ABC 1.7320508075688772
22861
CREATE TABLE t2 AS SELECT f1, SQRT(f2) my_sqrt FROM t1;
22862
SELECT * FROM t2 order by 2;
22866
my_sqrt 1.7320508075688772
22868
CREATE TABLE t2 AS SELECT * FROM v1;
22869
SELECT * FROM t2 order by 2;
22873
my_sqrt 1.7320508075688772
22875
CREATE TABLE t2 AS SELECT * FROM v2;
22876
SELECT * FROM t2 order by 2;
22880
my_sqrt 1.7320508075688772
22885
DROP TABLE IF EXISTS t1;
22886
DROP TABLE IF EXISTS t2;
22887
DROP VIEW IF EXISTS v1;
22888
DROP VIEW IF EXISTS v1_1;
22889
DROP VIEW IF EXISTS v1_2;
22890
DROP VIEW IF EXISTS v1_firstview;
22891
DROP VIEW IF EXISTS v1_secondview;
22892
DROP VIEW IF EXISTS v2;
22893
DROP DATABASE IF EXISTS test2;
22894
DROP DATABASE IF EXISTS test3;
22895
DROP DATABASE test1;
22896
DROP TABLE test.tb2;