1########### suite/json/t/json_conversions.test                       #
2# Tests conversion from json data types to mysql data types          #
3#                                                                    #
4# This test copies all tests originally in json_conversions.test     #
5######################################################################
6
7--echo # Test of the conversion from JSON data type to MySQL types
8--echo # ----------------------------------------------------------------------
9
10--echo # Set up auxiliary table with possible JSON values. The idea here is to
11--echo # enumerate all possible types of JSON values, including the different
12--echo # opaque values we could possibly end up with. A difficulty here is that
13--echo # it is hard create scenarios that will actually employ all possible
14--echo # MYSQL_TYPE_* types inside opaque: partly because some are used as
15--echo # native scalars, e.g. signed int -> JSON (signed) INTEGER, partly
16--echo # because not all MYSQL_TYPE_* values can actually label a column, but
17--echo # are seemingly only used in intermediate steps, e.g. BINARY and
18--echo # VARBINARY which end up as column with CHAR and VARCHAR with binary
19--echo # character set internally.
20
21
22create table t(c varchar(30) not null, j json, key(c));
23
24create table blobs(b blob); insert into blobs values(x'cafebabe');
25create table tinyblobs(b tinyblob); insert into tinyblobs values(x'cafebabe');
26create table mediumblobs(b mediumblob); insert into mediumblobs values(x'cafebabe');
27create table longblobs(b longblob); insert into longblobs values(x'cafebabe');
28create table year(y year); insert into year values('1992');
29create table varbin(b varbinary(40)); insert into varbin values(x'cafebabe');
30create table bin(b binary(40)); insert into varbin values(x'cafebabe');
31create table enum(e enum('a', 'b', 'c')); insert into enum values ('b');
32create table sett(e set('a', 'b', 'c')); insert into sett values ('b,c');
33create table varchar_binary(c varchar(30) character set 'binary'); insert into varchar_binary values ('foo');
34
35insert into t values ('null'            ,'null');
36insert into t values ('bool'            ,'true');
37insert into t values ('uint'            ,cast(cast(12 as unsigned) as json));
38insert into t values ('int'             ,'12');
39insert into t values ('double'          ,cast(3.14E0 as json));
40insert into t values ('stringany'       ,'"a"');
41insert into t values ('stringint'       ,'"1"');
42insert into t values ('stringdecimal'   ,'"3.14"');
43insert into t values ('object'          ,'{"a": 3}');
44insert into t values ('array'           ,'[1,2]');
45insert into t values ('opaque_mysql_type_decimal'  ,cast(3.14 as json));
46insert into t(c,j) (select
47                      'opaque_mysql_type_set'      ,cast(e as json) from sett);
48
49insert into t(c,j) (select
50                      'opaque_mysql_type_enum'     ,cast(e as json) from enum);
51
52insert into t values ('opaque_mysql_type_date'     ,cast(cast('2015-01-15' as date) as json));
53insert into t values ('opaque_mysql_type_time'     ,cast(cast('23:24:25' as time) as json));
54insert into t values ('opaque_mysql_type_datetime' ,cast(cast('2015-01-15 23:24:25' as datetime) as json));
55insert into t values ('opaque_mysql_type_geom'     ,cast(st_geomfromtext('point(1 1)') as json));
56
57insert into t(c,j) (select
58                     'opaque_mysql_type_bit'       ,cast(x'cafe' as json));
59
60insert into t(c,j) (select
61                     'opaque_mysql_type_year'        ,cast(y as json) from year);
62
63# can't use values: stringifies blob */
64insert into t(c,j) (select
65                     'opaque_mysql_type_blob'        ,cast(b as json) from blobs);
66
67insert into t(c,j) (select
68                     'opaque_mysql_type_longblob'    ,cast(b as json) from longblobs);
69
70insert into t(c,j) (select
71                     'opaque_mysql_type_mediumblob'  ,cast(b as json) from mediumblobs);
72
73insert into t(c,j) (select
74                     'opaque_mysql_type_tinyblob'    ,cast(b as json) from tinyblobs);
75
76# BINARY and VARBINARY are seen as VARCHAR with binary charset
77# (opaque_mysql_type_varchar below) so just use NULL
78
79insert into t(c,j) (select
80                     'opaque_mysql_type_varbinary'   ,NULL);
81
82insert into t(c,j) (select
83                     'opaque_mysql_type_binary'      ,NULL);
84
85insert into t(c,j) (select
86                     'opaque_mysql_type_varchar'     ,cast(c as json) from varchar_binary);
87
88insert into t(c,j) (select
89                     'opaque_mysql_type_string'      ,NULL);  # not used for field
90
91insert into t values ('opaque_mysql_type_var_string' ,NULL);  # not used for field
92
93drop table blobs;
94drop table tinyblobs;
95drop table mediumblobs;
96drop table longblobs;
97drop table year;
98drop table varbin;
99drop table bin;
100drop table enum;
101drop table sett;
102drop table varchar_binary;
103
104select c, json_type(j), j from t;
105
106--echo # Auxiliary table containing columns of MySQL types
107create table at(c varchar(36),
108                _bit bit(64),
109                _tin tinyint(8),
110                _boo bool,
111                _sms smallint signed,
112                _smu smallint unsigned,
113                _mes mediumint signed,
114                _meu mediumint unsigned,
115                _ins int signed,
116                _inu int unsigned,
117                _bis bigint signed,
118                _biu bigint unsigned,
119                _dec decimal (5,2),
120                _flo float,
121                _dou double,
122                _dat date default '2000-01-01',
123                _dtt datetime default '2000-01-01 00:00:00',
124                _smp timestamp default '2000-01-01 00:00:00',
125                _tim time default' 00:00:00',
126                _yea year,
127                _jsn json,
128                _chr char(255),
129                _vch varchar(255),
130                _bin binary(255),
131                _vbn varbinary(255),
132                _tbl tinyblob,
133                _ttx tinytext,
134                _blb blob,
135                _txt text,
136                _mbb mediumblob,
137                _mtx mediumtext,
138                _lbb longblob,
139                _ltx longtext,
140                _enu enum('a', 'b', 'c'),
141                _set set('a', 'b', 'c'),
142                _geo geometry,
143                _pnt point,
144                _lst linestring,
145                _pol polygon,
146                _mpt multipoint,
147                _mls multilinestring,
148                _mpy multipolygon,
149                _gco geometrycollection);
150
151--echo # ----------------------------------------------------------------------
152--echo #  I N S E R T   F R O M   J S O N   C O L U M N
153--echo # ----------------------------------------------------------------------
154insert into at(c,_bit) select concat('_bit: ',c),j from t where c='null';
155insert into at(c,_bit) select concat('_bit: ',c),j from t where c='bool';
156insert into at(c,_bit) select concat('_bit: ',c),j from t where c='uint';
157insert into at(c,_bit) select concat('_bit: ',c),j from t where c='int';
158insert into at(c,_bit) select concat('_bit: ',c),j from t where c='double';
159insert into at(c,_bit) select concat('_bit: ',c),j from t where c='stringany';
160insert into at(c,_bit) select concat('_bit: ',c),j from t where c='stringint';
161insert into at(c,_bit) select concat('_bit: ',c),j from t where c='stringdecimal';
162insert into at(c,_bit) select concat('_bit: ',c),j from t where c='object';
163insert into at(c,_bit) select concat('_bit: ',c),j from t where c='array';
164insert into at(c,_bit) select concat('_bit: ',c),j from t where c='opaque_mysql_type_decimal';
165insert into at(c,_bit) select concat('_bit: ',c),j from t where c='opaque_mysql_type_set';
166insert into at(c,_bit) select concat('_bit: ',c),j from t where c='opaque_mysql_type_enum';
167--error ER_DATA_TOO_LONG
168insert into at(c,_bit) select concat('_bit: ',c),j from t where c='opaque_mysql_type_date';
169--error ER_DATA_TOO_LONG
170insert into at(c,_bit) select concat('_bit: ',c),j from t where c='opaque_mysql_type_time';
171--error ER_DATA_TOO_LONG
172insert into at(c,_bit) select concat('_bit: ',c),j from t where c='opaque_mysql_type_datetime';
173--error ER_DATA_TOO_LONG
174insert into at(c,_bit) select concat('_bit: ',c),j from t where c='opaque_mysql_type_geom';
175--error ER_DATA_TOO_LONG
176insert into at(c,_bit) select concat('_bit: ',c),j from t where c='opaque_mysql_type_bit';
177insert into at(c,_bit) select concat('_bit: ',c),j from t where c='opaque_mysql_type_year';
178--error ER_DATA_TOO_LONG
179insert into at(c,_bit) select concat('_bit: ',c),j from t where c='opaque_mysql_type_blob';
180--error ER_DATA_TOO_LONG
181insert into at(c,_bit) select concat('_bit: ',c),j from t where c='opaque_mysql_type_longblob';
182--error ER_DATA_TOO_LONG
183insert into at(c,_bit) select concat('_bit: ',c),j from t where c='opaque_mysql_type_mediumblob';
184--error ER_DATA_TOO_LONG
185insert into at(c,_bit) select concat('_bit: ',c),j from t where c='opaque_mysql_type_tinyblob';
186insert into at(c,_bit) select concat('_bit: ',c),j from t where c='opaque_mysql_type_varbinary';
187insert into at(c,_bit) select concat('_bit: ',c),j from t where c='opaque_mysql_type_binary';
188--error ER_DATA_TOO_LONG
189insert into at(c,_bit) select concat('_bit: ',c),j from t where c='opaque_mysql_type_varchar';
190insert into at(c,_bit) select concat('_bit: ',c),j from t where c='opaque_mysql_type_string';
191insert into at(c,_bit) select concat('_bit: ',c),j from t where c='opaque_mysql_type_var_string';
192
193--error ER_INVALID_JSON_VALUE_FOR_CAST
194insert into at(c,_tin) select concat('_tin: ',c),j from t where c='null';
195insert into at(c,_tin) select concat('_tin: ',c),j from t where c='bool';
196insert into at(c,_tin) select concat('_tin: ',c),j from t where c='uint';
197insert into at(c,_tin) select concat('_tin: ',c),j from t where c='int';
198insert into at(c,_tin) select concat('_tin: ',c),j from t where c='double';
199--error ER_INVALID_JSON_VALUE_FOR_CAST
200insert into at(c,_tin) select concat('_tin: ',c),j from t where c='stringany';
201insert into at(c,_tin) select concat('_tin: ',c),j from t where c='stringint';
202--error ER_INVALID_JSON_VALUE_FOR_CAST
203insert into at(c,_tin) select concat('_tin: ',c),j from t where c='stringdecimal'; # needs cast(j as decimal)
204--error ER_INVALID_JSON_VALUE_FOR_CAST
205insert into at(c,_tin) select concat('_tin: ',c),j from t where c='object';
206--error ER_INVALID_JSON_VALUE_FOR_CAST
207insert into at(c,_tin) select concat('_tin: ',c),j from t where c='array';
208insert into at(c,_tin) select concat('_tin: ',c),j from t where c='opaque_mysql_type_decimal';
209--error ER_INVALID_JSON_VALUE_FOR_CAST
210insert into at(c,_tin) select concat('_tin: ',c),j from t where c='opaque_mysql_type_set';
211--error ER_INVALID_JSON_VALUE_FOR_CAST
212insert into at(c,_tin) select concat('_tin: ',c),j from t where c='opaque_mysql_type_enum';
213--error ER_INVALID_JSON_VALUE_FOR_CAST
214insert into at(c,_tin) select concat('_tin: ',c),j from t where c='opaque_mysql_type_date';
215--error ER_INVALID_JSON_VALUE_FOR_CAST
216insert into at(c,_tin) select concat('_tin: ',c),j from t where c='opaque_mysql_type_time';
217--error ER_INVALID_JSON_VALUE_FOR_CAST
218insert into at(c,_tin) select concat('_tin: ',c),j from t where c='opaque_mysql_type_datetime';
219--error ER_INVALID_JSON_VALUE_FOR_CAST
220insert into at(c,_tin) select concat('_tin: ',c),j from t where c='opaque_mysql_type_geom';
221--error ER_INVALID_JSON_VALUE_FOR_CAST
222insert into at(c,_tin) select concat('_tin: ',c),j from t where c='opaque_mysql_type_bit';
223--error ER_WARN_DATA_OUT_OF_RANGE
224insert into at(c,_tin) select concat('_tin: ',c),j from t where c='opaque_mysql_type_year';
225--error ER_INVALID_JSON_VALUE_FOR_CAST
226insert into at(c,_tin) select concat('_tin: ',c),j from t where c='opaque_mysql_type_blob';
227--error ER_INVALID_JSON_VALUE_FOR_CAST
228insert into at(c,_tin) select concat('_tin: ',c),j from t where c='opaque_mysql_type_longblob';
229--error ER_INVALID_JSON_VALUE_FOR_CAST
230insert into at(c,_tin) select concat('_tin: ',c),j from t where c='opaque_mysql_type_mediumblob';
231--error ER_INVALID_JSON_VALUE_FOR_CAST
232insert into at(c,_tin) select concat('_tin: ',c),j from t where c='opaque_mysql_type_tinyblob';
233insert into at(c,_tin) select concat('_tin: ',c),j from t where c='opaque_mysql_type_varbinary';
234insert into at(c,_tin) select concat('_tin: ',c),j from t where c='opaque_mysql_type_binary';
235--error ER_INVALID_JSON_VALUE_FOR_CAST
236insert into at(c,_tin) select concat('_tin: ',c),j from t where c='opaque_mysql_type_varchar';
237insert into at(c,_tin) select concat('_tin: ',c),j from t where c='opaque_mysql_type_string';
238insert into at(c,_tin) select concat('_tin: ',c),j from t where c='opaque_mysql_type_var_string';
239
240--error ER_INVALID_JSON_VALUE_FOR_CAST
241insert into at(c,_boo) select concat('_boo: ',c),j from t where c='null';
242insert into at(c,_boo) select concat('_boo: ',c),j from t where c='bool';
243insert into at(c,_boo) select concat('_boo: ',c),j from t where c='uint';
244insert into at(c,_boo) select concat('_boo: ',c),j from t where c='int';
245insert into at(c,_boo) select concat('_boo: ',c),j from t where c='double';
246--error ER_INVALID_JSON_VALUE_FOR_CAST
247insert into at(c,_boo) select concat('_boo: ',c),j from t where c='stringany';
248insert into at(c,_boo) select concat('_boo: ',c),j from t where c='stringint';
249--error ER_INVALID_JSON_VALUE_FOR_CAST
250insert into at(c,_boo) select concat('_boo: ',c),j from t where c='stringdecimal';
251--error ER_INVALID_JSON_VALUE_FOR_CAST
252insert into at(c,_boo) select concat('_boo: ',c),j from t where c='object';
253--error ER_INVALID_JSON_VALUE_FOR_CAST
254insert into at(c,_boo) select concat('_boo: ',c),j from t where c='array';
255insert into at(c,_boo) select concat('_boo: ',c),j from t where c='opaque_mysql_type_decimal';
256--error ER_INVALID_JSON_VALUE_FOR_CAST
257insert into at(c,_boo) select concat('_boo: ',c),j from t where c='opaque_mysql_type_set';
258--error ER_INVALID_JSON_VALUE_FOR_CAST
259insert into at(c,_boo) select concat('_boo: ',c),j from t where c='opaque_mysql_type_enum';
260--error ER_INVALID_JSON_VALUE_FOR_CAST
261insert into at(c,_boo) select concat('_boo: ',c),j from t where c='opaque_mysql_type_date';
262--error ER_INVALID_JSON_VALUE_FOR_CAST
263insert into at(c,_boo) select concat('_boo: ',c),j from t where c='opaque_mysql_type_time';
264--error ER_INVALID_JSON_VALUE_FOR_CAST
265insert into at(c,_boo) select concat('_boo: ',c),j from t where c='opaque_mysql_type_datetime';
266--error ER_INVALID_JSON_VALUE_FOR_CAST
267insert into at(c,_boo) select concat('_boo: ',c),j from t where c='opaque_mysql_type_geom';
268--error ER_INVALID_JSON_VALUE_FOR_CAST
269insert into at(c,_boo) select concat('_boo: ',c),j from t where c='opaque_mysql_type_bit';
270--error ER_WARN_DATA_OUT_OF_RANGE
271insert into at(c,_boo) select concat('_boo: ',c),j from t where c='opaque_mysql_type_year';
272--error ER_INVALID_JSON_VALUE_FOR_CAST
273insert into at(c,_boo) select concat('_boo: ',c),j from t where c='opaque_mysql_type_blob';
274--error ER_INVALID_JSON_VALUE_FOR_CAST
275insert into at(c,_boo) select concat('_boo: ',c),j from t where c='opaque_mysql_type_longblob';
276--error ER_INVALID_JSON_VALUE_FOR_CAST
277insert into at(c,_boo) select concat('_boo: ',c),j from t where c='opaque_mysql_type_mediumblob';
278--error ER_INVALID_JSON_VALUE_FOR_CAST
279insert into at(c,_boo) select concat('_boo: ',c),j from t where c='opaque_mysql_type_tinyblob';
280insert into at(c,_boo) select concat('_boo: ',c),j from t where c='opaque_mysql_type_varbinary';
281insert into at(c,_boo) select concat('_boo: ',c),j from t where c='opaque_mysql_type_binary';
282--error ER_INVALID_JSON_VALUE_FOR_CAST
283insert into at(c,_boo) select concat('_boo: ',c),j from t where c='opaque_mysql_type_varchar';
284insert into at(c,_boo) select concat('_boo: ',c),j from t where c='opaque_mysql_type_string';
285insert into at(c,_boo) select concat('_boo: ',c),j from t where c='opaque_mysql_type_var_string';
286
287--error ER_INVALID_JSON_VALUE_FOR_CAST
288insert into at(c,_sms) select concat('_sms: ',c),j from t where c='null';
289insert into at(c,_sms) select concat('_sms: ',c),j from t where c='bool';
290insert into at(c,_sms) select concat('_sms: ',c),j from t where c='uint';
291insert into at(c,_sms) select concat('_sms: ',c),j from t where c='int';
292insert into at(c,_sms) select concat('_sms: ',c),j from t where c='double';
293--error ER_INVALID_JSON_VALUE_FOR_CAST
294insert into at(c,_sms) select concat('_sms: ',c),j from t where c='stringany';
295insert into at(c,_sms) select concat('_sms: ',c),j from t where c='stringint';
296--error ER_INVALID_JSON_VALUE_FOR_CAST
297insert into at(c,_sms) select concat('_sms: ',c),j from t where c='stringdecimal';
298--error ER_INVALID_JSON_VALUE_FOR_CAST
299insert into at(c,_sms) select concat('_sms: ',c),j from t where c='object';
300--error ER_INVALID_JSON_VALUE_FOR_CAST
301insert into at(c,_sms) select concat('_sms: ',c),j from t where c='array';
302insert into at(c,_sms) select concat('_sms: ',c),j from t where c='opaque_mysql_type_decimal';
303--error ER_INVALID_JSON_VALUE_FOR_CAST
304insert into at(c,_sms) select concat('_sms: ',c),j from t where c='opaque_mysql_type_set';
305--error ER_INVALID_JSON_VALUE_FOR_CAST
306insert into at(c,_sms) select concat('_sms: ',c),j from t where c='opaque_mysql_type_enum';
307--error ER_INVALID_JSON_VALUE_FOR_CAST
308insert into at(c,_sms) select concat('_sms: ',c),j from t where c='opaque_mysql_type_date';
309--error ER_INVALID_JSON_VALUE_FOR_CAST
310insert into at(c,_sms) select concat('_sms: ',c),j from t where c='opaque_mysql_type_time';
311--error ER_INVALID_JSON_VALUE_FOR_CAST
312--error ER_INVALID_JSON_VALUE_FOR_CAST
313insert into at(c,_sms) select concat('_sms: ',c),j from t where c='opaque_mysql_type_datetime';
314--error ER_INVALID_JSON_VALUE_FOR_CAST
315insert into at(c,_sms) select concat('_sms: ',c),j from t where c='opaque_mysql_type_geom';
316--error ER_INVALID_JSON_VALUE_FOR_CAST
317insert into at(c,_sms) select concat('_sms: ',c),j from t where c='opaque_mysql_type_bit';
318insert into at(c,_sms) select concat('_sms: ',c),j from t where c='opaque_mysql_type_year';
319--error ER_INVALID_JSON_VALUE_FOR_CAST
320insert into at(c,_sms) select concat('_sms: ',c),j from t where c='opaque_mysql_type_blob';
321--error ER_INVALID_JSON_VALUE_FOR_CAST
322insert into at(c,_sms) select concat('_sms: ',c),j from t where c='opaque_mysql_type_longblob';
323--error ER_INVALID_JSON_VALUE_FOR_CAST
324insert into at(c,_sms) select concat('_sms: ',c),j from t where c='opaque_mysql_type_mediumblob';
325--error ER_INVALID_JSON_VALUE_FOR_CAST
326insert into at(c,_sms) select concat('_sms: ',c),j from t where c='opaque_mysql_type_tinyblob';
327insert into at(c,_sms) select concat('_sms: ',c),j from t where c='opaque_mysql_type_varbinary';
328insert into at(c,_sms) select concat('_sms: ',c),j from t where c='opaque_mysql_type_binary';
329--error ER_INVALID_JSON_VALUE_FOR_CAST
330insert into at(c,_sms) select concat('_sms: ',c),j from t where c='opaque_mysql_type_varchar';
331insert into at(c,_sms) select concat('_sms: ',c),j from t where c='opaque_mysql_type_string';
332insert into at(c,_sms) select concat('_sms: ',c),j from t where c='opaque_mysql_type_var_string';
333
334--error ER_INVALID_JSON_VALUE_FOR_CAST
335insert into at(c,_smu) select concat('_smu: ',c),j from t where c='null';
336insert into at(c,_smu) select concat('_smu: ',c),j from t where c='bool';
337insert into at(c,_smu) select concat('_smu: ',c),j from t where c='uint';
338insert into at(c,_smu) select concat('_smu: ',c),j from t where c='int';
339insert into at(c,_smu) select concat('_smu: ',c),j from t where c='double';
340--error ER_INVALID_JSON_VALUE_FOR_CAST
341insert into at(c,_smu) select concat('_smu: ',c),j from t where c='stringany';
342insert into at(c,_smu) select concat('_smu: ',c),j from t where c='stringint';
343--error ER_INVALID_JSON_VALUE_FOR_CAST
344insert into at(c,_smu) select concat('_smu: ',c),j from t where c='stringdecimal';
345--error ER_INVALID_JSON_VALUE_FOR_CAST
346insert into at(c,_smu) select concat('_smu: ',c),j from t where c='object';
347--error ER_INVALID_JSON_VALUE_FOR_CAST
348insert into at(c,_smu) select concat('_smu: ',c),j from t where c='array';
349insert into at(c,_smu) select concat('_smu: ',c),j from t where c='opaque_mysql_type_decimal';
350--error ER_INVALID_JSON_VALUE_FOR_CAST
351insert into at(c,_smu) select concat('_smu: ',c),j from t where c='opaque_mysql_type_set';
352--error ER_INVALID_JSON_VALUE_FOR_CAST
353insert into at(c,_smu) select concat('_smu: ',c),j from t where c='opaque_mysql_type_enum';
354--error ER_INVALID_JSON_VALUE_FOR_CAST
355insert into at(c,_smu) select concat('_smu: ',c),j from t where c='opaque_mysql_type_date';
356--error ER_INVALID_JSON_VALUE_FOR_CAST
357insert into at(c,_smu) select concat('_smu: ',c),j from t where c='opaque_mysql_type_time';
358--error ER_INVALID_JSON_VALUE_FOR_CAST
359insert into at(c,_smu) select concat('_smu: ',c),j from t where c='opaque_mysql_type_datetime';
360--error ER_INVALID_JSON_VALUE_FOR_CAST
361insert into at(c,_smu) select concat('_smu: ',c),j from t where c='opaque_mysql_type_geom';
362--error ER_INVALID_JSON_VALUE_FOR_CAST
363insert into at(c,_smu) select concat('_smu: ',c),j from t where c='opaque_mysql_type_bit';
364insert into at(c,_smu) select concat('_smu: ',c),j from t where c='opaque_mysql_type_year';
365--error ER_INVALID_JSON_VALUE_FOR_CAST
366insert into at(c,_smu) select concat('_smu: ',c),j from t where c='opaque_mysql_type_blob';
367--error ER_INVALID_JSON_VALUE_FOR_CAST
368insert into at(c,_smu) select concat('_smu: ',c),j from t where c='opaque_mysql_type_longblob';
369--error ER_INVALID_JSON_VALUE_FOR_CAST
370insert into at(c,_smu) select concat('_smu: ',c),j from t where c='opaque_mysql_type_mediumblob';
371--error ER_INVALID_JSON_VALUE_FOR_CAST
372insert into at(c,_smu) select concat('_smu: ',c),j from t where c='opaque_mysql_type_tinyblob';
373insert into at(c,_smu) select concat('_smu: ',c),j from t where c='opaque_mysql_type_varbinary';
374insert into at(c,_smu) select concat('_smu: ',c),j from t where c='opaque_mysql_type_binary';
375--error ER_INVALID_JSON_VALUE_FOR_CAST
376insert into at(c,_smu) select concat('_smu: ',c),j from t where c='opaque_mysql_type_varchar';
377insert into at(c,_smu) select concat('_smu: ',c),j from t where c='opaque_mysql_type_string';
378insert into at(c,_smu) select concat('_smu: ',c),j from t where c='opaque_mysql_type_var_string';
379
380--error ER_INVALID_JSON_VALUE_FOR_CAST
381insert into at(c,_mes) select concat('_mes: ',c),j from t where c='null';
382insert into at(c,_mes) select concat('_mes: ',c),j from t where c='bool';
383insert into at(c,_mes) select concat('_mes: ',c),j from t where c='uint';
384insert into at(c,_mes) select concat('_mes: ',c),j from t where c='int';
385insert into at(c,_mes) select concat('_mes: ',c),j from t where c='double';
386--error ER_INVALID_JSON_VALUE_FOR_CAST
387insert into at(c,_mes) select concat('_mes: ',c),j from t where c='stringany';
388insert into at(c,_mes) select concat('_mes: ',c),j from t where c='stringint';
389--error ER_INVALID_JSON_VALUE_FOR_CAST
390insert into at(c,_mes) select concat('_mes: ',c),j from t where c='stringdecimal';
391--error ER_INVALID_JSON_VALUE_FOR_CAST
392insert into at(c,_mes) select concat('_mes: ',c),j from t where c='object';
393--error ER_INVALID_JSON_VALUE_FOR_CAST
394insert into at(c,_mes) select concat('_mes: ',c),j from t where c='array';
395insert into at(c,_mes) select concat('_mes: ',c),j from t where c='opaque_mysql_type_decimal';
396--error ER_INVALID_JSON_VALUE_FOR_CAST
397insert into at(c,_mes) select concat('_mes: ',c),j from t where c='opaque_mysql_type_set';
398--error ER_INVALID_JSON_VALUE_FOR_CAST
399insert into at(c,_mes) select concat('_mes: ',c),j from t where c='opaque_mysql_type_enum';
400--error ER_INVALID_JSON_VALUE_FOR_CAST
401insert into at(c,_mes) select concat('_mes: ',c),j from t where c='opaque_mysql_type_date';
402--error ER_INVALID_JSON_VALUE_FOR_CAST
403insert into at(c,_mes) select concat('_mes: ',c),j from t where c='opaque_mysql_type_time';
404--error ER_INVALID_JSON_VALUE_FOR_CAST
405insert into at(c,_mes) select concat('_mes: ',c),j from t where c='opaque_mysql_type_datetime';
406--error ER_INVALID_JSON_VALUE_FOR_CAST
407insert into at(c,_mes) select concat('_mes: ',c),j from t where c='opaque_mysql_type_geom';
408--error ER_INVALID_JSON_VALUE_FOR_CAST
409insert into at(c,_mes) select concat('_mes: ',c),j from t where c='opaque_mysql_type_bit';
410insert into at(c,_mes) select concat('_mes: ',c),j from t where c='opaque_mysql_type_year';
411--error ER_INVALID_JSON_VALUE_FOR_CAST
412insert into at(c,_mes) select concat('_mes: ',c),j from t where c='opaque_mysql_type_blob';
413--error ER_INVALID_JSON_VALUE_FOR_CAST
414insert into at(c,_mes) select concat('_mes: ',c),j from t where c='opaque_mysql_type_longblob';
415--error ER_INVALID_JSON_VALUE_FOR_CAST
416insert into at(c,_mes) select concat('_mes: ',c),j from t where c='opaque_mysql_type_mediumblob';
417--error ER_INVALID_JSON_VALUE_FOR_CAST
418insert into at(c,_mes) select concat('_mes: ',c),j from t where c='opaque_mysql_type_tinyblob';
419insert into at(c,_mes) select concat('_mes: ',c),j from t where c='opaque_mysql_type_varbinary';
420insert into at(c,_mes) select concat('_mes: ',c),j from t where c='opaque_mysql_type_binary';
421--error ER_INVALID_JSON_VALUE_FOR_CAST
422insert into at(c,_mes) select concat('_mes: ',c),j from t where c='opaque_mysql_type_varchar';
423insert into at(c,_mes) select concat('_mes: ',c),j from t where c='opaque_mysql_type_string';
424insert into at(c,_mes) select concat('_mes: ',c),j from t where c='opaque_mysql_type_var_string';
425
426--error ER_INVALID_JSON_VALUE_FOR_CAST
427insert into at(c,_meu) select concat('_meu: ',c),j from t where c='null';
428insert into at(c,_meu) select concat('_meu: ',c),j from t where c='bool';
429insert into at(c,_meu) select concat('_meu: ',c),j from t where c='uint';
430insert into at(c,_meu) select concat('_meu: ',c),j from t where c='int';
431insert into at(c,_meu) select concat('_meu: ',c),j from t where c='double';
432--error ER_INVALID_JSON_VALUE_FOR_CAST
433insert into at(c,_meu) select concat('_meu: ',c),j from t where c='stringany';
434insert into at(c,_meu) select concat('_meu: ',c),j from t where c='stringint';
435--error ER_INVALID_JSON_VALUE_FOR_CAST
436insert into at(c,_meu) select concat('_meu: ',c),j from t where c='stringdecimal';
437--error ER_INVALID_JSON_VALUE_FOR_CAST
438insert into at(c,_meu) select concat('_meu: ',c),j from t where c='object';
439--error ER_INVALID_JSON_VALUE_FOR_CAST
440insert into at(c,_meu) select concat('_meu: ',c),j from t where c='array';
441insert into at(c,_meu) select concat('_meu: ',c),j from t where c='opaque_mysql_type_decimal';
442--error ER_INVALID_JSON_VALUE_FOR_CAST
443insert into at(c,_meu) select concat('_meu: ',c),j from t where c='opaque_mysql_type_set';
444--error ER_INVALID_JSON_VALUE_FOR_CAST
445insert into at(c,_meu) select concat('_meu: ',c),j from t where c='opaque_mysql_type_enum';
446--error ER_INVALID_JSON_VALUE_FOR_CAST
447insert into at(c,_meu) select concat('_meu: ',c),j from t where c='opaque_mysql_type_date';
448--error ER_INVALID_JSON_VALUE_FOR_CAST
449insert into at(c,_meu) select concat('_meu: ',c),j from t where c='opaque_mysql_type_time';
450--error ER_INVALID_JSON_VALUE_FOR_CAST
451insert into at(c,_meu) select concat('_meu: ',c),j from t where c='opaque_mysql_type_datetime';
452--error ER_INVALID_JSON_VALUE_FOR_CAST
453insert into at(c,_meu) select concat('_meu: ',c),j from t where c='opaque_mysql_type_geom';
454--error ER_INVALID_JSON_VALUE_FOR_CAST
455insert into at(c,_meu) select concat('_meu: ',c),j from t where c='opaque_mysql_type_bit';
456insert into at(c,_meu) select concat('_meu: ',c),j from t where c='opaque_mysql_type_year';
457--error ER_INVALID_JSON_VALUE_FOR_CAST
458insert into at(c,_meu) select concat('_meu: ',c),j from t where c='opaque_mysql_type_blob';
459--error ER_INVALID_JSON_VALUE_FOR_CAST
460insert into at(c,_meu) select concat('_meu: ',c),j from t where c='opaque_mysql_type_longblob';
461--error ER_INVALID_JSON_VALUE_FOR_CAST
462insert into at(c,_meu) select concat('_meu: ',c),j from t where c='opaque_mysql_type_mediumblob';
463--error ER_INVALID_JSON_VALUE_FOR_CAST
464insert into at(c,_meu) select concat('_meu: ',c),j from t where c='opaque_mysql_type_tinyblob';
465insert into at(c,_meu) select concat('_meu: ',c),j from t where c='opaque_mysql_type_varbinary';
466insert into at(c,_meu) select concat('_meu: ',c),j from t where c='opaque_mysql_type_binary';
467--error ER_INVALID_JSON_VALUE_FOR_CAST
468insert into at(c,_meu) select concat('_meu: ',c),j from t where c='opaque_mysql_type_varchar';
469insert into at(c,_meu) select concat('_meu: ',c),j from t where c='opaque_mysql_type_string';
470insert into at(c,_meu) select concat('_meu: ',c),j from t where c='opaque_mysql_type_var_string';
471
472--error ER_INVALID_JSON_VALUE_FOR_CAST
473insert into at(c,_ins) select concat('_ins: ',c),j from t where c='null';
474insert into at(c,_ins) select concat('_ins: ',c),j from t where c='bool';
475insert into at(c,_ins) select concat('_ins: ',c),j from t where c='uint';
476insert into at(c,_ins) select concat('_ins: ',c),j from t where c='int';
477insert into at(c,_ins) select concat('_ins: ',c),j from t where c='double';
478--error ER_INVALID_JSON_VALUE_FOR_CAST
479insert into at(c,_ins) select concat('_ins: ',c),j from t where c='stringany';
480insert into at(c,_ins) select concat('_ins: ',c),j from t where c='stringint';
481--error ER_INVALID_JSON_VALUE_FOR_CAST
482insert into at(c,_ins) select concat('_ins: ',c),j from t where c='stringdecimal';
483--error ER_INVALID_JSON_VALUE_FOR_CAST
484insert into at(c,_ins) select concat('_ins: ',c),j from t where c='object';
485--error ER_INVALID_JSON_VALUE_FOR_CAST
486insert into at(c,_ins) select concat('_ins: ',c),j from t where c='array';
487insert into at(c,_ins) select concat('_ins: ',c),j from t where c='opaque_mysql_type_decimal';
488--error ER_INVALID_JSON_VALUE_FOR_CAST
489insert into at(c,_ins) select concat('_ins: ',c),j from t where c='opaque_mysql_type_set';
490--error ER_INVALID_JSON_VALUE_FOR_CAST
491insert into at(c,_ins) select concat('_ins: ',c),j from t where c='opaque_mysql_type_enum';
492--error ER_INVALID_JSON_VALUE_FOR_CAST
493insert into at(c,_ins) select concat('_ins: ',c),j from t where c='opaque_mysql_type_date';
494--error ER_INVALID_JSON_VALUE_FOR_CAST
495insert into at(c,_ins) select concat('_ins: ',c),j from t where c='opaque_mysql_type_time';
496--error ER_INVALID_JSON_VALUE_FOR_CAST
497insert into at(c,_ins) select concat('_ins: ',c),j from t where c='opaque_mysql_type_datetime';
498--error ER_INVALID_JSON_VALUE_FOR_CAST
499insert into at(c,_ins) select concat('_ins: ',c),j from t where c='opaque_mysql_type_geom';
500--error ER_INVALID_JSON_VALUE_FOR_CAST
501insert into at(c,_ins) select concat('_ins: ',c),j from t where c='opaque_mysql_type_bit';
502insert into at(c,_ins) select concat('_ins: ',c),j from t where c='opaque_mysql_type_year';
503--error ER_INVALID_JSON_VALUE_FOR_CAST
504insert into at(c,_ins) select concat('_ins: ',c),j from t where c='opaque_mysql_type_blob';
505--error ER_INVALID_JSON_VALUE_FOR_CAST
506insert into at(c,_ins) select concat('_ins: ',c),j from t where c='opaque_mysql_type_longblob';
507--error ER_INVALID_JSON_VALUE_FOR_CAST
508insert into at(c,_ins) select concat('_ins: ',c),j from t where c='opaque_mysql_type_mediumblob';
509--error ER_INVALID_JSON_VALUE_FOR_CAST
510insert into at(c,_ins) select concat('_ins: ',c),j from t where c='opaque_mysql_type_tinyblob';
511insert into at(c,_ins) select concat('_ins: ',c),j from t where c='opaque_mysql_type_varbinary';
512insert into at(c,_ins) select concat('_ins: ',c),j from t where c='opaque_mysql_type_binary';
513--error ER_INVALID_JSON_VALUE_FOR_CAST
514insert into at(c,_ins) select concat('_ins: ',c),j from t where c='opaque_mysql_type_varchar';
515insert into at(c,_ins) select concat('_ins: ',c),j from t where c='opaque_mysql_type_string';
516insert into at(c,_ins) select concat('_ins: ',c),j from t where c='opaque_mysql_type_var_string';
517
518--error ER_INVALID_JSON_VALUE_FOR_CAST
519insert into at(c,_inu) select concat('_inu: ',c),j from t where c='null';
520insert into at(c,_inu) select concat('_inu: ',c),j from t where c='bool';
521insert into at(c,_inu) select concat('_inu: ',c),j from t where c='uint';
522insert into at(c,_inu) select concat('_inu: ',c),j from t where c='int';
523insert into at(c,_inu) select concat('_inu: ',c),j from t where c='double';
524--error ER_INVALID_JSON_VALUE_FOR_CAST
525insert into at(c,_inu) select concat('_inu: ',c),j from t where c='stringany';
526insert into at(c,_inu) select concat('_inu: ',c),j from t where c='stringint';
527--error ER_INVALID_JSON_VALUE_FOR_CAST
528insert into at(c,_inu) select concat('_inu: ',c),j from t where c='stringdecimal';
529--error ER_INVALID_JSON_VALUE_FOR_CAST
530insert into at(c,_inu) select concat('_inu: ',c),j from t where c='object';
531--error ER_INVALID_JSON_VALUE_FOR_CAST
532insert into at(c,_inu) select concat('_inu: ',c),j from t where c='array';
533insert into at(c,_inu) select concat('_inu: ',c),j from t where c='opaque_mysql_type_decimal';
534--error ER_INVALID_JSON_VALUE_FOR_CAST
535insert into at(c,_inu) select concat('_inu: ',c),j from t where c='opaque_mysql_type_set';
536--error ER_INVALID_JSON_VALUE_FOR_CAST
537insert into at(c,_inu) select concat('_inu: ',c),j from t where c='opaque_mysql_type_enum';
538--error ER_INVALID_JSON_VALUE_FOR_CAST
539insert into at(c,_inu) select concat('_inu: ',c),j from t where c='opaque_mysql_type_date';
540--error ER_INVALID_JSON_VALUE_FOR_CAST
541insert into at(c,_inu) select concat('_inu: ',c),j from t where c='opaque_mysql_type_time';
542--error ER_INVALID_JSON_VALUE_FOR_CAST
543insert into at(c,_inu) select concat('_inu: ',c),j from t where c='opaque_mysql_type_datetime';
544--error ER_INVALID_JSON_VALUE_FOR_CAST
545insert into at(c,_inu) select concat('_inu: ',c),j from t where c='opaque_mysql_type_geom';
546--error ER_INVALID_JSON_VALUE_FOR_CAST
547insert into at(c,_inu) select concat('_inu: ',c),j from t where c='opaque_mysql_type_bit';
548insert into at(c,_inu) select concat('_inu: ',c),j from t where c='opaque_mysql_type_year';
549--error ER_INVALID_JSON_VALUE_FOR_CAST
550insert into at(c,_inu) select concat('_inu: ',c),j from t where c='opaque_mysql_type_blob';
551--error ER_INVALID_JSON_VALUE_FOR_CAST
552insert into at(c,_inu) select concat('_inu: ',c),j from t where c='opaque_mysql_type_longblob';
553--error ER_INVALID_JSON_VALUE_FOR_CAST
554insert into at(c,_inu) select concat('_inu: ',c),j from t where c='opaque_mysql_type_mediumblob';
555--error ER_INVALID_JSON_VALUE_FOR_CAST
556insert into at(c,_inu) select concat('_inu: ',c),j from t where c='opaque_mysql_type_tinyblob';
557insert into at(c,_inu) select concat('_inu: ',c),j from t where c='opaque_mysql_type_varbinary';
558insert into at(c,_inu) select concat('_inu: ',c),j from t where c='opaque_mysql_type_binary';
559--error ER_INVALID_JSON_VALUE_FOR_CAST
560insert into at(c,_inu) select concat('_inu: ',c),j from t where c='opaque_mysql_type_varchar';
561insert into at(c,_inu) select concat('_inu: ',c),j from t where c='opaque_mysql_type_string';
562insert into at(c,_inu) select concat('_inu: ',c),j from t where c='opaque_mysql_type_var_string';
563
564--error ER_INVALID_JSON_VALUE_FOR_CAST
565insert into at(c,_bis) select concat('_bis: ',c),j from t where c='null';
566insert into at(c,_bis) select concat('_bis: ',c),j from t where c='bool';
567insert into at(c,_bis) select concat('_bis: ',c),j from t where c='uint';
568insert into at(c,_bis) select concat('_bis: ',c),j from t where c='int';
569insert into at(c,_bis) select concat('_bis: ',c),j from t where c='double';
570--error ER_INVALID_JSON_VALUE_FOR_CAST
571insert into at(c,_bis) select concat('_bis: ',c),j from t where c='stringany';
572insert into at(c,_bis) select concat('_bis: ',c),j from t where c='stringint';
573--error ER_INVALID_JSON_VALUE_FOR_CAST
574insert into at(c,_bis) select concat('_bis: ',c),j from t where c='stringdecimal';
575--error ER_INVALID_JSON_VALUE_FOR_CAST
576insert into at(c,_bis) select concat('_bis: ',c),j from t where c='object';
577--error ER_INVALID_JSON_VALUE_FOR_CAST
578insert into at(c,_bis) select concat('_bis: ',c),j from t where c='array';
579insert into at(c,_bis) select concat('_bis: ',c),j from t where c='opaque_mysql_type_decimal';
580--error ER_INVALID_JSON_VALUE_FOR_CAST
581insert into at(c,_bis) select concat('_bis: ',c),j from t where c='opaque_mysql_type_set';
582--error ER_INVALID_JSON_VALUE_FOR_CAST
583insert into at(c,_bis) select concat('_bis: ',c),j from t where c='opaque_mysql_type_enum';
584--error ER_INVALID_JSON_VALUE_FOR_CAST
585insert into at(c,_bis) select concat('_bis: ',c),j from t where c='opaque_mysql_type_date';
586--error ER_INVALID_JSON_VALUE_FOR_CAST
587insert into at(c,_bis) select concat('_bis: ',c),j from t where c='opaque_mysql_type_time';
588--error ER_INVALID_JSON_VALUE_FOR_CAST
589insert into at(c,_bis) select concat('_bis: ',c),j from t where c='opaque_mysql_type_datetime';
590--error ER_INVALID_JSON_VALUE_FOR_CAST
591insert into at(c,_bis) select concat('_bis: ',c),j from t where c='opaque_mysql_type_geom';
592--error ER_INVALID_JSON_VALUE_FOR_CAST
593insert into at(c,_bis) select concat('_bis: ',c),j from t where c='opaque_mysql_type_bit';
594insert into at(c,_bis) select concat('_bis: ',c),j from t where c='opaque_mysql_type_year';
595--error ER_INVALID_JSON_VALUE_FOR_CAST
596insert into at(c,_bis) select concat('_bis: ',c),j from t where c='opaque_mysql_type_blob';
597--error ER_INVALID_JSON_VALUE_FOR_CAST
598insert into at(c,_bis) select concat('_bis: ',c),j from t where c='opaque_mysql_type_longblob';
599--error ER_INVALID_JSON_VALUE_FOR_CAST
600insert into at(c,_bis) select concat('_bis: ',c),j from t where c='opaque_mysql_type_mediumblob';
601--error ER_INVALID_JSON_VALUE_FOR_CAST
602insert into at(c,_bis) select concat('_bis: ',c),j from t where c='opaque_mysql_type_tinyblob';
603insert into at(c,_bis) select concat('_bis: ',c),j from t where c='opaque_mysql_type_varbinary';
604insert into at(c,_bis) select concat('_bis: ',c),j from t where c='opaque_mysql_type_binary';
605--error ER_INVALID_JSON_VALUE_FOR_CAST
606insert into at(c,_bis) select concat('_bis: ',c),j from t where c='opaque_mysql_type_varchar';
607insert into at(c,_bis) select concat('_bis: ',c),j from t where c='opaque_mysql_type_string';
608insert into at(c,_bis) select concat('_bis: ',c),j from t where c='opaque_mysql_type_var_string';
609
610--error ER_INVALID_JSON_VALUE_FOR_CAST
611insert into at(c,_biu) select concat('_biu: ',c),j from t where c='null';
612insert into at(c,_biu) select concat('_biu: ',c),j from t where c='bool';
613insert into at(c,_biu) select concat('_biu: ',c),j from t where c='uint';
614insert into at(c,_biu) select concat('_biu: ',c),j from t where c='int';
615insert into at(c,_biu) select concat('_biu: ',c),j from t where c='double';
616--error ER_INVALID_JSON_VALUE_FOR_CAST
617insert into at(c,_biu) select concat('_biu: ',c),j from t where c='stringany';
618insert into at(c,_biu) select concat('_biu: ',c),j from t where c='stringint';
619--error ER_INVALID_JSON_VALUE_FOR_CAST
620insert into at(c,_biu) select concat('_biu: ',c),j from t where c='stringdecimal';
621--error ER_INVALID_JSON_VALUE_FOR_CAST
622insert into at(c,_biu) select concat('_biu: ',c),j from t where c='object';
623--error ER_INVALID_JSON_VALUE_FOR_CAST
624insert into at(c,_biu) select concat('_biu: ',c),j from t where c='array';
625insert into at(c,_biu) select concat('_biu: ',c),j from t where c='opaque_mysql_type_decimal';
626--error ER_INVALID_JSON_VALUE_FOR_CAST
627insert into at(c,_biu) select concat('_biu: ',c),j from t where c='opaque_mysql_type_set';
628--error ER_INVALID_JSON_VALUE_FOR_CAST
629insert into at(c,_biu) select concat('_biu: ',c),j from t where c='opaque_mysql_type_enum';
630--error ER_INVALID_JSON_VALUE_FOR_CAST
631insert into at(c,_biu) select concat('_biu: ',c),j from t where c='opaque_mysql_type_date';
632--error ER_INVALID_JSON_VALUE_FOR_CAST
633insert into at(c,_biu) select concat('_biu: ',c),j from t where c='opaque_mysql_type_time';
634--error ER_INVALID_JSON_VALUE_FOR_CAST
635insert into at(c,_biu) select concat('_biu: ',c),j from t where c='opaque_mysql_type_datetime';
636--error ER_INVALID_JSON_VALUE_FOR_CAST
637insert into at(c,_biu) select concat('_biu: ',c),j from t where c='opaque_mysql_type_geom';
638--error ER_INVALID_JSON_VALUE_FOR_CAST
639insert into at(c,_biu) select concat('_biu: ',c),j from t where c='opaque_mysql_type_bit';
640insert into at(c,_biu) select concat('_biu: ',c),j from t where c='opaque_mysql_type_year';
641--error ER_INVALID_JSON_VALUE_FOR_CAST
642insert into at(c,_biu) select concat('_biu: ',c),j from t where c='opaque_mysql_type_blob';
643--error ER_INVALID_JSON_VALUE_FOR_CAST
644insert into at(c,_biu) select concat('_biu: ',c),j from t where c='opaque_mysql_type_longblob';
645--error ER_INVALID_JSON_VALUE_FOR_CAST
646insert into at(c,_biu) select concat('_biu: ',c),j from t where c='opaque_mysql_type_mediumblob';
647--error ER_INVALID_JSON_VALUE_FOR_CAST
648insert into at(c,_biu) select concat('_biu: ',c),j from t where c='opaque_mysql_type_tinyblob';
649insert into at(c,_biu) select concat('_biu: ',c),j from t where c='opaque_mysql_type_varbinary';
650insert into at(c,_biu) select concat('_biu: ',c),j from t where c='opaque_mysql_type_binary';
651--error ER_INVALID_JSON_VALUE_FOR_CAST
652insert into at(c,_biu) select concat('_biu: ',c),j from t where c='opaque_mysql_type_varchar';
653insert into at(c,_biu) select concat('_biu: ',c),j from t where c='opaque_mysql_type_string';
654insert into at(c,_biu) select concat('_biu: ',c),j from t where c='opaque_mysql_type_var_string';
655
656--error ER_INVALID_JSON_VALUE_FOR_CAST
657insert into at(c,_dec) select concat('_dec: ',c),j from t where c='null';
658insert into at(c,_dec) select concat('_dec: ',c),j from t where c='bool';
659insert into at(c,_dec) select concat('_dec: ',c),j from t where c='uint';
660insert into at(c,_dec) select concat('_dec: ',c),j from t where c='int';
661insert into at(c,_dec) select concat('_dec: ',c),j from t where c='double';
662--error ER_INVALID_JSON_VALUE_FOR_CAST
663insert into at(c,_dec) select concat('_dec: ',c),j from t where c='stringany';
664insert into at(c,_dec) select concat('_dec: ',c),j from t where c='stringint';
665insert into at(c,_dec) select concat('_dec: ',c),j from t where c='stringdecimal';
666--error ER_INVALID_JSON_VALUE_FOR_CAST
667insert into at(c,_dec) select concat('_dec: ',c),j from t where c='object';
668--error ER_INVALID_JSON_VALUE_FOR_CAST
669insert into at(c,_dec) select concat('_dec: ',c),j from t where c='array';
670insert into at(c,_dec) select concat('_dec: ',c),j from t where c='opaque_mysql_type_decimal';
671--error ER_INVALID_JSON_VALUE_FOR_CAST
672insert into at(c,_dec) select concat('_dec: ',c),j from t where c='opaque_mysql_type_set';
673--error ER_INVALID_JSON_VALUE_FOR_CAST
674insert into at(c,_dec) select concat('_dec: ',c),j from t where c='opaque_mysql_type_enum';
675--error ER_INVALID_JSON_VALUE_FOR_CAST
676insert into at(c,_dec) select concat('_dec: ',c),j from t where c='opaque_mysql_type_date';
677--error ER_INVALID_JSON_VALUE_FOR_CAST
678insert into at(c,_dec) select concat('_dec: ',c),j from t where c='opaque_mysql_type_time';
679--error ER_INVALID_JSON_VALUE_FOR_CAST
680insert into at(c,_dec) select concat('_dec: ',c),j from t where c='opaque_mysql_type_datetime';
681--error ER_INVALID_JSON_VALUE_FOR_CAST
682insert into at(c,_dec) select concat('_dec: ',c),j from t where c='opaque_mysql_type_geom';
683--error ER_INVALID_JSON_VALUE_FOR_CAST
684insert into at(c,_dec) select concat('_dec: ',c),j from t where c='opaque_mysql_type_bit';
685--error ER_WARN_DATA_OUT_OF_RANGE
686insert into at(c,_dec) select concat('_dec: ',c),j from t where c='opaque_mysql_type_year';
687--error ER_INVALID_JSON_VALUE_FOR_CAST
688insert into at(c,_dec) select concat('_dec: ',c),j from t where c='opaque_mysql_type_blob';
689--error ER_INVALID_JSON_VALUE_FOR_CAST
690insert into at(c,_dec) select concat('_dec: ',c),j from t where c='opaque_mysql_type_longblob';
691--error ER_INVALID_JSON_VALUE_FOR_CAST
692insert into at(c,_dec) select concat('_dec: ',c),j from t where c='opaque_mysql_type_mediumblob';
693--error ER_INVALID_JSON_VALUE_FOR_CAST
694insert into at(c,_dec) select concat('_dec: ',c),j from t where c='opaque_mysql_type_tinyblob';
695insert into at(c,_dec) select concat('_dec: ',c),j from t where c='opaque_mysql_type_varbinary';
696insert into at(c,_dec) select concat('_dec: ',c),j from t where c='opaque_mysql_type_binary';
697--error ER_INVALID_JSON_VALUE_FOR_CAST
698insert into at(c,_dec) select concat('_dec: ',c),j from t where c='opaque_mysql_type_varchar';
699insert into at(c,_dec) select concat('_dec: ',c),j from t where c='opaque_mysql_type_string';
700insert into at(c,_dec) select concat('_dec: ',c),j from t where c='opaque_mysql_type_var_string';
701
702--error ER_INVALID_JSON_VALUE_FOR_CAST
703insert into at(c,_flo) select concat('_flo: ',c),j from t where c='null';
704insert into at(c,_flo) select concat('_flo: ',c),j from t where c='bool';
705insert into at(c,_flo) select concat('_flo: ',c),j from t where c='uint';
706insert into at(c,_flo) select concat('_flo: ',c),j from t where c='int';
707insert into at(c,_flo) select concat('_flo: ',c),j from t where c='double';
708--error ER_INVALID_JSON_VALUE_FOR_CAST
709insert into at(c,_flo) select concat('_flo: ',c),j from t where c='stringany';
710insert into at(c,_flo) select concat('_flo: ',c),j from t where c='stringint';
711insert into at(c,_flo) select concat('_flo: ',c),j from t where c='stringdecimal';
712--error ER_INVALID_JSON_VALUE_FOR_CAST
713insert into at(c,_flo) select concat('_flo: ',c),j from t where c='object';
714--error ER_INVALID_JSON_VALUE_FOR_CAST
715insert into at(c,_flo) select concat('_flo: ',c),j from t where c='array';
716insert into at(c,_flo) select concat('_flo: ',c),j from t where c='opaque_mysql_type_decimal';
717--error ER_INVALID_JSON_VALUE_FOR_CAST
718insert into at(c,_flo) select concat('_flo: ',c),j from t where c='opaque_mysql_type_set';
719--error ER_INVALID_JSON_VALUE_FOR_CAST
720insert into at(c,_flo) select concat('_flo: ',c),j from t where c='opaque_mysql_type_enum';
721--error ER_INVALID_JSON_VALUE_FOR_CAST
722insert into at(c,_flo) select concat('_flo: ',c),j from t where c='opaque_mysql_type_date';
723--error ER_INVALID_JSON_VALUE_FOR_CAST
724insert into at(c,_flo) select concat('_flo: ',c),j from t where c='opaque_mysql_type_time';
725--error ER_INVALID_JSON_VALUE_FOR_CAST
726insert into at(c,_flo) select concat('_flo: ',c),j from t where c='opaque_mysql_type_datetime';
727--error ER_INVALID_JSON_VALUE_FOR_CAST
728insert into at(c,_flo) select concat('_flo: ',c),j from t where c='opaque_mysql_type_geom';
729--error ER_INVALID_JSON_VALUE_FOR_CAST
730insert into at(c,_flo) select concat('_flo: ',c),j from t where c='opaque_mysql_type_bit';
731insert into at(c,_flo) select concat('_flo: ',c),j from t where c='opaque_mysql_type_year';
732--error ER_INVALID_JSON_VALUE_FOR_CAST
733insert into at(c,_flo) select concat('_flo: ',c),j from t where c='opaque_mysql_type_blob';
734--error ER_INVALID_JSON_VALUE_FOR_CAST
735insert into at(c,_flo) select concat('_flo: ',c),j from t where c='opaque_mysql_type_longblob';
736--error ER_INVALID_JSON_VALUE_FOR_CAST
737insert into at(c,_flo) select concat('_flo: ',c),j from t where c='opaque_mysql_type_mediumblob';
738--error ER_INVALID_JSON_VALUE_FOR_CAST
739insert into at(c,_flo) select concat('_flo: ',c),j from t where c='opaque_mysql_type_tinyblob';
740insert into at(c,_flo) select concat('_flo: ',c),j from t where c='opaque_mysql_type_varbinary';
741insert into at(c,_flo) select concat('_flo: ',c),j from t where c='opaque_mysql_type_binary';
742--error ER_INVALID_JSON_VALUE_FOR_CAST
743insert into at(c,_flo) select concat('_flo: ',c),j from t where c='opaque_mysql_type_varchar';
744insert into at(c,_flo) select concat('_flo: ',c),j from t where c='opaque_mysql_type_string';
745insert into at(c,_flo) select concat('_flo: ',c),j from t where c='opaque_mysql_type_var_string';
746
747--error ER_INVALID_JSON_VALUE_FOR_CAST
748insert into at(c,_dou) select concat('_dou: ',c),j from t where c='null';
749insert into at(c,_dou) select concat('_dou: ',c),j from t where c='bool';
750insert into at(c,_dou) select concat('_dou: ',c),j from t where c='uint';
751insert into at(c,_dou) select concat('_dou: ',c),j from t where c='int';
752insert into at(c,_dou) select concat('_dou: ',c),j from t where c='double';
753--error ER_INVALID_JSON_VALUE_FOR_CAST
754insert into at(c,_dou) select concat('_dou: ',c),j from t where c='stringany';
755insert into at(c,_dou) select concat('_dou: ',c),j from t where c='stringint';
756insert into at(c,_dou) select concat('_dou: ',c),j from t where c='stringdecimal';
757--error ER_INVALID_JSON_VALUE_FOR_CAST
758insert into at(c,_dou) select concat('_dou: ',c),j from t where c='object';
759--error ER_INVALID_JSON_VALUE_FOR_CAST
760insert into at(c,_dou) select concat('_dou: ',c),j from t where c='array';
761insert into at(c,_dou) select concat('_dou: ',c),j from t where c='opaque_mysql_type_decimal';
762--error ER_INVALID_JSON_VALUE_FOR_CAST
763insert into at(c,_dou) select concat('_dou: ',c),j from t where c='opaque_mysql_type_set';
764--error ER_INVALID_JSON_VALUE_FOR_CAST
765insert into at(c,_dou) select concat('_dou: ',c),j from t where c='opaque_mysql_type_enum';
766--error ER_INVALID_JSON_VALUE_FOR_CAST
767insert into at(c,_dou) select concat('_dou: ',c),j from t where c='opaque_mysql_type_date';
768--error ER_INVALID_JSON_VALUE_FOR_CAST
769insert into at(c,_dou) select concat('_dou: ',c),j from t where c='opaque_mysql_type_time';
770--error ER_INVALID_JSON_VALUE_FOR_CAST
771insert into at(c,_dou) select concat('_dou: ',c),j from t where c='opaque_mysql_type_datetime';
772--error ER_INVALID_JSON_VALUE_FOR_CAST
773insert into at(c,_dou) select concat('_dou: ',c),j from t where c='opaque_mysql_type_geom';
774--error ER_INVALID_JSON_VALUE_FOR_CAST
775insert into at(c,_dou) select concat('_dou: ',c),j from t where c='opaque_mysql_type_bit';
776insert into at(c,_dou) select concat('_dou: ',c),j from t where c='opaque_mysql_type_year';
777--error ER_INVALID_JSON_VALUE_FOR_CAST
778insert into at(c,_dou) select concat('_dou: ',c),j from t where c='opaque_mysql_type_blob';
779--error ER_INVALID_JSON_VALUE_FOR_CAST
780insert into at(c,_dou) select concat('_dou: ',c),j from t where c='opaque_mysql_type_longblob';
781--error ER_INVALID_JSON_VALUE_FOR_CAST
782insert into at(c,_dou) select concat('_dou: ',c),j from t where c='opaque_mysql_type_mediumblob';
783--error ER_INVALID_JSON_VALUE_FOR_CAST
784insert into at(c,_dou) select concat('_dou: ',c),j from t where c='opaque_mysql_type_tinyblob';
785insert into at(c,_dou) select concat('_dou: ',c),j from t where c='opaque_mysql_type_varbinary';
786insert into at(c,_dou) select concat('_dou: ',c),j from t where c='opaque_mysql_type_binary';
787--error ER_INVALID_JSON_VALUE_FOR_CAST
788insert into at(c,_dou) select concat('_dou: ',c),j from t where c='opaque_mysql_type_varchar';
789insert into at(c,_dou) select concat('_dou: ',c),j from t where c='opaque_mysql_type_string';
790insert into at(c,_dou) select concat('_dou: ',c),j from t where c='opaque_mysql_type_var_string';
791
792--error ER_INVALID_JSON_VALUE_FOR_CAST
793insert into at(c,_dat) select concat('_dat: ',c),j from t where c='null';
794--error ER_INVALID_JSON_VALUE_FOR_CAST
795insert into at(c,_dat) select concat('_dat: ',c),j from t where c='bool';
796--error ER_INVALID_JSON_VALUE_FOR_CAST
797insert into at(c,_dat) select concat('_dat: ',c),j from t where c='uint';
798--error ER_INVALID_JSON_VALUE_FOR_CAST
799insert into at(c,_dat) select concat('_dat: ',c),j from t where c='int';
800--error ER_INVALID_JSON_VALUE_FOR_CAST
801insert into at(c,_dat) select concat('_dat: ',c),j from t where c='double';
802--error ER_INVALID_JSON_VALUE_FOR_CAST
803insert into at(c,_dat) select concat('_dat: ',c),j from t where c='stringany';
804--error ER_INVALID_JSON_VALUE_FOR_CAST
805insert into at(c,_dat) select concat('_dat: ',c),j from t where c='stringint';
806--error ER_INVALID_JSON_VALUE_FOR_CAST
807insert into at(c,_dat) select concat('_dat: ',c),j from t where c='stringdecimal';
808--error ER_INVALID_JSON_VALUE_FOR_CAST
809insert into at(c,_dat) select concat('_dat: ',c),j from t where c='object';
810--error ER_INVALID_JSON_VALUE_FOR_CAST
811insert into at(c,_dat) select concat('_dat: ',c),j from t where c='array';
812--error ER_INVALID_JSON_VALUE_FOR_CAST
813insert into at(c,_dat) select concat('_dat: ',c),j from t where c='opaque_mysql_type_decimal';
814--error ER_INVALID_JSON_VALUE_FOR_CAST
815insert into at(c,_dat) select concat('_dat: ',c),j from t where c='opaque_mysql_type_set';
816--error ER_INVALID_JSON_VALUE_FOR_CAST
817insert into at(c,_dat) select concat('_dat: ',c),j from t where c='opaque_mysql_type_enum';
818insert into at(c,_dat) select concat('_dat: ',c),j from t where c='opaque_mysql_type_date';
819--error ER_INVALID_JSON_VALUE_FOR_CAST
820insert into at(c,_dat) select concat('_dat: ',c),j from t where c='opaque_mysql_type_time';
821insert into at(c,_dat) select concat('_dat: ',c),j from t where c='opaque_mysql_type_datetime';
822--error ER_INVALID_JSON_VALUE_FOR_CAST
823insert into at(c,_dat) select concat('_dat: ',c),j from t where c='opaque_mysql_type_geom';
824--error ER_INVALID_JSON_VALUE_FOR_CAST
825insert into at(c,_dat) select concat('_dat: ',c),j from t where c='opaque_mysql_type_bit';
826--error ER_INVALID_JSON_VALUE_FOR_CAST
827insert into at(c,_dat) select concat('_dat: ',c),j from t where c='opaque_mysql_type_year';
828--error ER_INVALID_JSON_VALUE_FOR_CAST
829insert into at(c,_dat) select concat('_dat: ',c),j from t where c='opaque_mysql_type_blob';
830--error ER_INVALID_JSON_VALUE_FOR_CAST
831insert into at(c,_dat) select concat('_dat: ',c),j from t where c='opaque_mysql_type_longblob';
832--error ER_INVALID_JSON_VALUE_FOR_CAST
833insert into at(c,_dat) select concat('_dat: ',c),j from t where c='opaque_mysql_type_mediumblob';
834--error ER_INVALID_JSON_VALUE_FOR_CAST
835insert into at(c,_dat) select concat('_dat: ',c),j from t where c='opaque_mysql_type_tinyblob';
836insert into at(c,_dat) select concat('_dat: ',c),j from t where c='opaque_mysql_type_varbinary';
837insert into at(c,_dat) select concat('_dat: ',c),j from t where c='opaque_mysql_type_binary';
838--error ER_INVALID_JSON_VALUE_FOR_CAST
839insert into at(c,_dat) select concat('_dat: ',c),j from t where c='opaque_mysql_type_varchar';
840insert into at(c,_dat) select concat('_dat: ',c),j from t where c='opaque_mysql_type_string';
841insert into at(c,_dat) select concat('_dat: ',c),j from t where c='opaque_mysql_type_var_string';
842
843--error ER_INVALID_JSON_VALUE_FOR_CAST
844insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='null';
845--error ER_INVALID_JSON_VALUE_FOR_CAST
846insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='bool';
847--error ER_INVALID_JSON_VALUE_FOR_CAST
848insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='uint';
849--error ER_INVALID_JSON_VALUE_FOR_CAST
850insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='int';
851--error ER_INVALID_JSON_VALUE_FOR_CAST
852insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='double';
853--error ER_INVALID_JSON_VALUE_FOR_CAST
854insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='stringany';
855--error ER_INVALID_JSON_VALUE_FOR_CAST
856insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='stringint';
857--error ER_INVALID_JSON_VALUE_FOR_CAST
858insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='stringdecimal';
859--error ER_INVALID_JSON_VALUE_FOR_CAST
860insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='object';
861--error ER_INVALID_JSON_VALUE_FOR_CAST
862insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='array';
863--error ER_INVALID_JSON_VALUE_FOR_CAST
864insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='opaque_mysql_type_decimal';
865--error ER_INVALID_JSON_VALUE_FOR_CAST
866insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='opaque_mysql_type_set';
867--error ER_INVALID_JSON_VALUE_FOR_CAST
868insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='opaque_mysql_type_enum';
869insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='opaque_mysql_type_date';
870--error ER_INVALID_JSON_VALUE_FOR_CAST
871insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='opaque_mysql_type_time';
872insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='opaque_mysql_type_datetime';
873--error ER_INVALID_JSON_VALUE_FOR_CAST
874insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='opaque_mysql_type_geom';
875--error ER_INVALID_JSON_VALUE_FOR_CAST
876insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='opaque_mysql_type_bit';
877--error ER_INVALID_JSON_VALUE_FOR_CAST
878insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='opaque_mysql_type_year';
879--error ER_INVALID_JSON_VALUE_FOR_CAST
880insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='opaque_mysql_type_blob';
881--error ER_INVALID_JSON_VALUE_FOR_CAST
882insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='opaque_mysql_type_longblob';
883--error ER_INVALID_JSON_VALUE_FOR_CAST
884insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='opaque_mysql_type_mediumblob';
885--error ER_INVALID_JSON_VALUE_FOR_CAST
886insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='opaque_mysql_type_tinyblob';
887insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='opaque_mysql_type_varbinary';
888insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='opaque_mysql_type_binary';
889--error ER_INVALID_JSON_VALUE_FOR_CAST
890insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='opaque_mysql_type_varchar';
891insert into at(c,_dtt) select concat('_dtt: ',c),j from t where c='opaque_mysql_type_string';
892insert into at(c,_dat) select concat('_dat: ',c),j from t where c='opaque_mysql_type_var_string';
893
894--error ER_INVALID_JSON_VALUE_FOR_CAST
895insert into at(c,_smp) select concat('_smp: ',c),j from t where c='null';
896--error ER_INVALID_JSON_VALUE_FOR_CAST
897insert into at(c,_smp) select concat('_smp: ',c),j from t where c='bool';
898--error ER_INVALID_JSON_VALUE_FOR_CAST
899insert into at(c,_smp) select concat('_smp: ',c),j from t where c='uint';
900--error ER_INVALID_JSON_VALUE_FOR_CAST
901insert into at(c,_smp) select concat('_smp: ',c),j from t where c='int';
902--error ER_INVALID_JSON_VALUE_FOR_CAST
903insert into at(c,_smp) select concat('_smp: ',c),j from t where c='double';
904--error ER_INVALID_JSON_VALUE_FOR_CAST
905insert into at(c,_smp) select concat('_smp: ',c),j from t where c='stringany';
906--error ER_INVALID_JSON_VALUE_FOR_CAST
907insert into at(c,_smp) select concat('_smp: ',c),j from t where c='stringint';
908--error ER_INVALID_JSON_VALUE_FOR_CAST
909insert into at(c,_smp) select concat('_smp: ',c),j from t where c='stringdecimal';
910--error ER_INVALID_JSON_VALUE_FOR_CAST
911insert into at(c,_smp) select concat('_smp: ',c),j from t where c='object';
912--error ER_INVALID_JSON_VALUE_FOR_CAST
913insert into at(c,_smp) select concat('_smp: ',c),j from t where c='array';
914--error ER_INVALID_JSON_VALUE_FOR_CAST
915insert into at(c,_smp) select concat('_smp: ',c),j from t where c='opaque_mysql_type_decimal';
916--error ER_INVALID_JSON_VALUE_FOR_CAST
917insert into at(c,_smp) select concat('_smp: ',c),j from t where c='opaque_mysql_type_set';
918--error ER_INVALID_JSON_VALUE_FOR_CAST
919insert into at(c,_smp) select concat('_smp: ',c),j from t where c='opaque_mysql_type_enum';
920insert into at(c,_smp) select concat('_smp: ',c),j from t where c='opaque_mysql_type_date';
921--error ER_INVALID_JSON_VALUE_FOR_CAST
922insert into at(c,_smp) select concat('_smp: ',c),j from t where c='opaque_mysql_type_time';
923insert into at(c,_smp) select concat('_smp: ',c),j from t where c='opaque_mysql_type_datetime';
924--error ER_INVALID_JSON_VALUE_FOR_CAST
925insert into at(c,_smp) select concat('_smp: ',c),j from t where c='opaque_mysql_type_geom';
926--error ER_INVALID_JSON_VALUE_FOR_CAST
927insert into at(c,_smp) select concat('_smp: ',c),j from t where c='opaque_mysql_type_bit';
928--error ER_INVALID_JSON_VALUE_FOR_CAST
929insert into at(c,_smp) select concat('_smp: ',c),j from t where c='opaque_mysql_type_year';
930--error ER_INVALID_JSON_VALUE_FOR_CAST
931insert into at(c,_smp) select concat('_smp: ',c),j from t where c='opaque_mysql_type_blob';
932--error ER_INVALID_JSON_VALUE_FOR_CAST
933insert into at(c,_smp) select concat('_smp: ',c),j from t where c='opaque_mysql_type_longblob';
934--error ER_INVALID_JSON_VALUE_FOR_CAST
935insert into at(c,_smp) select concat('_smp: ',c),j from t where c='opaque_mysql_type_mediumblob';
936--error ER_INVALID_JSON_VALUE_FOR_CAST
937insert into at(c,_smp) select concat('_smp: ',c),j from t where c='opaque_mysql_type_tinyblob';
938insert into at(c,_smp) select concat('_smp: ',c),j from t where c='opaque_mysql_type_varbinary';
939insert into at(c,_smp) select concat('_smp: ',c),j from t where c='opaque_mysql_type_binary';
940--error ER_INVALID_JSON_VALUE_FOR_CAST
941insert into at(c,_smp) select concat('_smp: ',c),j from t where c='opaque_mysql_type_varchar';
942insert into at(c,_smp) select concat('_smp: ',c),j from t where c='opaque_mysql_type_string';
943insert into at(c,_smp) select concat('_smp: ',c),j from t where c='opaque_mysql_type_var_string';
944
945--error ER_INVALID_JSON_VALUE_FOR_CAST
946insert into at(c,_tim) select concat('_tim: ',c),j from t where c='null';
947--error ER_INVALID_JSON_VALUE_FOR_CAST
948insert into at(c,_tim) select concat('_tim: ',c),j from t where c='bool';
949--error ER_INVALID_JSON_VALUE_FOR_CAST
950insert into at(c,_tim) select concat('_tim: ',c),j from t where c='uint';
951--error ER_INVALID_JSON_VALUE_FOR_CAST
952insert into at(c,_tim) select concat('_tim: ',c),j from t where c='int';
953--error ER_INVALID_JSON_VALUE_FOR_CAST
954insert into at(c,_tim) select concat('_tim: ',c),j from t where c='double';
955--error ER_INVALID_JSON_VALUE_FOR_CAST
956insert into at(c,_tim) select concat('_tim: ',c),j from t where c='stringany';
957--error ER_INVALID_JSON_VALUE_FOR_CAST
958insert into at(c,_tim) select concat('_tim: ',c),j from t where c='stringint';
959--error ER_INVALID_JSON_VALUE_FOR_CAST
960insert into at(c,_tim) select concat('_tim: ',c),j from t where c='stringdecimal';
961--error ER_INVALID_JSON_VALUE_FOR_CAST
962insert into at(c,_tim) select concat('_tim: ',c),j from t where c='object';
963--error ER_INVALID_JSON_VALUE_FOR_CAST
964insert into at(c,_tim) select concat('_tim: ',c),j from t where c='array';
965--error ER_INVALID_JSON_VALUE_FOR_CAST
966insert into at(c,_tim) select concat('_tim: ',c),j from t where c='opaque_mysql_type_decimal';
967--error ER_INVALID_JSON_VALUE_FOR_CAST
968insert into at(c,_tim) select concat('_tim: ',c),j from t where c='opaque_mysql_type_set';
969--error ER_INVALID_JSON_VALUE_FOR_CAST
970insert into at(c,_tim) select concat('_tim: ',c),j from t where c='opaque_mysql_type_enum';
971--error ER_INVALID_JSON_VALUE_FOR_CAST
972insert into at(c,_tim) select concat('_tim: ',c),j from t where c='opaque_mysql_type_date';
973insert into at(c,_tim) select concat('_tim: ',c),j from t where c='opaque_mysql_type_time';
974--error ER_INVALID_JSON_VALUE_FOR_CAST
975insert into at(c,_tim) select concat('_tim: ',c),j from t where c='opaque_mysql_type_datetime';
976--error ER_INVALID_JSON_VALUE_FOR_CAST
977insert into at(c,_tim) select concat('_tim: ',c),j from t where c='opaque_mysql_type_geom';
978--error ER_INVALID_JSON_VALUE_FOR_CAST
979insert into at(c,_tim) select concat('_tim: ',c),j from t where c='opaque_mysql_type_bit';
980--error ER_INVALID_JSON_VALUE_FOR_CAST
981insert into at(c,_tim) select concat('_tim: ',c),j from t where c='opaque_mysql_type_year';
982--error ER_INVALID_JSON_VALUE_FOR_CAST
983insert into at(c,_tim) select concat('_tim: ',c),j from t where c='opaque_mysql_type_blob';
984--error ER_INVALID_JSON_VALUE_FOR_CAST
985insert into at(c,_tim) select concat('_tim: ',c),j from t where c='opaque_mysql_type_longblob';
986--error ER_INVALID_JSON_VALUE_FOR_CAST
987insert into at(c,_tim) select concat('_tim: ',c),j from t where c='opaque_mysql_type_mediumblob';
988--error ER_INVALID_JSON_VALUE_FOR_CAST
989insert into at(c,_tim) select concat('_tim: ',c),j from t where c='opaque_mysql_type_tinyblob';
990insert into at(c,_tim) select concat('_tim: ',c),j from t where c='opaque_mysql_type_varbinary';
991insert into at(c,_tim) select concat('_tim: ',c),j from t where c='opaque_mysql_type_binary';
992--error ER_INVALID_JSON_VALUE_FOR_CAST
993insert into at(c,_tim) select concat('_tim: ',c),j from t where c='opaque_mysql_type_varchar';
994insert into at(c,_tim) select concat('_tim: ',c),j from t where c='opaque_mysql_type_string';
995insert into at(c,_tim) select concat('_tim: ',c),j from t where c='opaque_mysql_type_var_string';
996
997--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
998insert into at(c,_yea) select concat('_yea: ',c),j from t where c='null';
999--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
1000insert into at(c,_yea) select concat('_yea: ',c),j from t where c='bool';
1001insert into at(c,_yea) select concat('_yea: ',c),j from t where c='uint';
1002insert into at(c,_yea) select concat('_yea: ',c),j from t where c='int';
1003insert into at(c,_yea) select concat('_yea: ',c),j from t where c='double';
1004--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
1005insert into at(c,_yea) select concat('_yea: ',c),j from t where c='stringany';
1006--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
1007insert into at(c,_yea) select concat('_yea: ',c),j from t where c='stringint'; # JSON_UNQUOTE helps
1008--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
1009insert into at(c,_yea) select concat('_yea: ',c),j from t where c='stringdecimal';
1010--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
1011insert into at(c,_yea) select concat('_yea: ',c),j from t where c='object';
1012--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
1013insert into at(c,_yea) select concat('_yea: ',c),j from t where c='array';
1014insert into at(c,_yea) select concat('_yea: ',c),j from t where c='opaque_mysql_type_decimal';
1015--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
1016insert into at(c,_yea) select concat('_yea: ',c),j from t where c='opaque_mysql_type_set';
1017--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
1018insert into at(c,_yea) select concat('_yea: ',c),j from t where c='opaque_mysql_type_enum';
1019--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
1020insert into at(c,_yea) select concat('_yea: ',c),j from t where c='opaque_mysql_type_date';
1021--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
1022insert into at(c,_yea) select concat('_yea: ',c),j from t where c='opaque_mysql_type_time';
1023--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
1024insert into at(c,_yea) select concat('_yea: ',c),j from t where c='opaque_mysql_type_datetime';
1025--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
1026insert into at(c,_yea) select concat('_yea: ',c),j from t where c='opaque_mysql_type_geom';
1027--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
1028insert into at(c,_yea) select concat('_yea: ',c),j from t where c='opaque_mysql_type_bit';
1029insert into at(c,_yea) select concat('_yea: ',c),j from t where c='opaque_mysql_type_year';
1030--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
1031insert into at(c,_yea) select concat('_yea: ',c),j from t where c='opaque_mysql_type_blob';
1032--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
1033insert into at(c,_yea) select concat('_yea: ',c),j from t where c='opaque_mysql_type_longblob';
1034--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
1035insert into at(c,_yea) select concat('_yea: ',c),j from t where c='opaque_mysql_type_mediumblob';
1036--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
1037insert into at(c,_yea) select concat('_yea: ',c),j from t where c='opaque_mysql_type_tinyblob';
1038insert into at(c,_yea) select concat('_yea: ',c),j from t where c='opaque_mysql_type_varbinary';
1039insert into at(c,_yea) select concat('_yea: ',c),j from t where c='opaque_mysql_type_binary';
1040--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
1041insert into at(c,_yea) select concat('_yea: ',c),j from t where c='opaque_mysql_type_varchar';
1042insert into at(c,_yea) select concat('_yea: ',c),j from t where c='opaque_mysql_type_string';
1043insert into at(c,_yea) select concat('_yea: ',c),j from t where c='opaque_mysql_type_var_string';
1044
1045insert into at(c,_jsn) select concat('_jsn: ',c),j from t;
1046
1047insert into at(c,_chr) select concat('_chr: ',c),j from t;
1048
1049insert into at(c,_vch) select concat('_vch: ',c),j from t;
1050
1051insert into at(c,_bin) select concat('_bin: ',c),j from t;
1052
1053insert into at(c,_vbn) select concat('_vbn: ',c),j from t;
1054
1055insert into at(c,_tbl) select concat('_tbl: ',c),j from t;
1056
1057insert into at(c,_ttx) select concat('_ttx: ',c),j from t;
1058
1059insert into at(c,_blb) select concat('_blb: ',c),j from t;
1060
1061insert into at(c,_txt) select concat('_txt: ',c),j from t;
1062
1063insert into at(c,_mbb) select concat('_mbb: ',c),j from t;
1064
1065insert into at(c,_mtx) select concat('_mtx: ',c),j from t;
1066
1067insert into at(c,_lbb) select concat('_lbb: ',c),j from t;
1068
1069insert into at(c,_ltx) select concat('_ltx: ',c),j from t;
1070
1071--error 1265
1072# insert into at(c,_enu) select concat('_enu: ',c),j from t where c='null';
1073--error 1265
1074# insert into at(c,_enu) select concat('_enu: ',c),j from t where c='bool';
1075--error 1265
1076#insert into at(c,_enu) select concat('_enu: ',c),j from t where c='uint';
1077--error 1265
1078#insert into at(c,_enu) select concat('_enu: ',c),j from t where c='int';
1079--error 1265
1080insert into at(c,_enu) select concat('_enu: ',c),j from t where c='double';
1081--error 1265
1082insert into at(c,_enu) select concat('_enu: ',c),j from t where c='stringany'; # needs JSON_UNQUOTE
1083--error 1265
1084insert into at(c,_enu) select concat('_enu: ',c),j from t where c='stringint';
1085--error 1265
1086insert into at(c,_enu) select concat('_enu: ',c),j from t where c='stringdecimal';
1087--error 1265
1088insert into at(c,_enu) select concat('_enu: ',c),j from t where c='object';
1089--error 1265
1090insert into at(c,_enu) select concat('_enu: ',c),j from t where c='array';
1091--error 1265
1092insert into at(c,_enu) select concat('_enu: ',c),j from t where c='opaque_mysql_type_decimal';
1093--error 1265
1094insert into at(c,_enu) select concat('_enu: ',c),j from t where c='opaque_mysql_type_set';
1095--error 1265
1096insert into at(c,_enu) select concat('_enu: ',c),j from t where c='opaque_mysql_type_enum';
1097--error 1265
1098insert into at(c,_enu) select concat('_enu: ',c),j from t where c='opaque_mysql_type_date';
1099--error 1265
1100insert into at(c,_enu) select concat('_enu: ',c),j from t where c='opaque_mysql_type_time';
1101--error 1265
1102insert into at(c,_enu) select concat('_enu: ',c),j from t where c='opaque_mysql_type_datetime';
1103--error 1265
1104insert into at(c,_enu) select concat('_enu: ',c),j from t where c='opaque_mysql_type_geom';
1105--error 1265
1106insert into at(c,_enu) select concat('_enu: ',c),j from t where c='opaque_mysql_type_bit';
1107--error 1265
1108insert into at(c,_enu) select concat('_enu: ',c),j from t where c='opaque_mysql_type_year';
1109--error 1265
1110insert into at(c,_enu) select concat('_enu: ',c),j from t where c='opaque_mysql_type_blob';
1111--error 1265
1112insert into at(c,_enu) select concat('_enu: ',c),j from t where c='opaque_mysql_type_longblob';
1113--error 1265
1114insert into at(c,_enu) select concat('_enu: ',c),j from t where c='opaque_mysql_type_mediumblob';
1115--error 1265
1116insert into at(c,_enu) select concat('_enu: ',c),j from t where c='opaque_mysql_type_tinyblob';
1117insert into at(c,_enu) select concat('_enu: ',c),j from t where c='opaque_mysql_type_varbinary';
1118insert into at(c,_enu) select concat('_enu: ',c),j from t where c='opaque_mysql_type_binary';
1119--error 1265
1120insert into at(c,_enu) select concat('_enu: ',c),j from t where c='opaque_mysql_type_varchar';
1121insert into at(c,_enu) select concat('_enu: ',c),j from t where c='opaque_mysql_type_string';
1122insert into at(c,_enu) select concat('_enu: ',c),j from t where c='opaque_mysql_type_var_string';
1123
1124--error 1265
1125insert into at(c,_set) select concat('_set: ',c),j from t where c='null';
1126--error 1265
1127insert into at(c,_set) select concat('_set: ',c),j from t where c='bool';
1128--error 1265
1129insert into at(c,_set) select concat('_set: ',c),j from t where c='uint';
1130--error 1265
1131insert into at(c,_set) select concat('_set: ',c),j from t where c='int';
1132--error 1265
1133insert into at(c,_set) select concat('_set: ',c),j from t where c='double';
1134--error 1265
1135insert into at(c,_set) select concat('_set: ',c),j from t where c='stringany'; # needs JSON_UNQUOTE
1136--error 1265
1137insert into at(c,_set) select concat('_set: ',c),j from t where c='stringint';
1138--error 1265
1139insert into at(c,_set) select concat('_set: ',c),j from t where c='stringdecimal';
1140--error 1265
1141insert into at(c,_set) select concat('_set: ',c),j from t where c='object';
1142--error 1265
1143insert into at(c,_set) select concat('_set: ',c),j from t where c='array';
1144--error 1265
1145insert into at(c,_set) select concat('_set: ',c),j from t where c='opaque_mysql_type_decimal';
1146--error 1265
1147insert into at(c,_set) select concat('_set: ',c),j from t where c='opaque_mysql_type_set';
1148--error 1265
1149insert into at(c,_set) select concat('_set: ',c),j from t where c='opaque_mysql_type_enum';
1150--error 1265
1151insert into at(c,_set) select concat('_set: ',c),j from t where c='opaque_mysql_type_date';
1152--error 1265
1153insert into at(c,_set) select concat('_set: ',c),j from t where c='opaque_mysql_type_time';
1154--error 1265
1155insert into at(c,_set) select concat('_set: ',c),j from t where c='opaque_mysql_type_datetime';
1156--error 1265
1157insert into at(c,_set) select concat('_set: ',c),j from t where c='opaque_mysql_type_geom';
1158--error 1265
1159insert into at(c,_set) select concat('_set: ',c),j from t where c='opaque_mysql_type_bit';
1160--error 1265
1161insert into at(c,_set) select concat('_set: ',c),j from t where c='opaque_mysql_type_year';
1162--error 1265
1163insert into at(c,_set) select concat('_set: ',c),j from t where c='opaque_mysql_type_blob';
1164--error 1265
1165insert into at(c,_set) select concat('_set: ',c),j from t where c='opaque_mysql_type_longblob';
1166--error 1265
1167insert into at(c,_set) select concat('_set: ',c),j from t where c='opaque_mysql_type_mediumblob';
1168--error 1265
1169insert into at(c,_set) select concat('_set: ',c),j from t where c='opaque_mysql_type_tinyblob';
1170insert into at(c,_set) select concat('_set: ',c),j from t where c='opaque_mysql_type_varbinary';
1171insert into at(c,_set) select concat('_set: ',c),j from t where c='opaque_mysql_type_binary';
1172--error 1265
1173insert into at(c,_set) select concat('_set: ',c),j from t where c='opaque_mysql_type_varchar';
1174insert into at(c,_set) select concat('_set: ',c),j from t where c='opaque_mysql_type_string';
1175insert into at(c,_set) select concat('_set: ',c),j from t where c='opaque_mysql_type_var_string';
1176
1177--error ER_CANT_CREATE_GEOMETRY_OBJECT
1178insert into at(c,_geo) select concat('_geo: ',c),j from t where c='null';
1179--error ER_CANT_CREATE_GEOMETRY_OBJECT
1180insert into at(c,_geo) select concat('_geo: ',c),j from t where c='bool';
1181--error ER_CANT_CREATE_GEOMETRY_OBJECT
1182insert into at(c,_geo) select concat('_geo: ',c),j from t where c='uint';
1183--error ER_CANT_CREATE_GEOMETRY_OBJECT
1184insert into at(c,_geo) select concat('_geo: ',c),j from t where c='int';
1185--error ER_CANT_CREATE_GEOMETRY_OBJECT
1186insert into at(c,_geo) select concat('_geo: ',c),j from t where c='double';
1187--error ER_CANT_CREATE_GEOMETRY_OBJECT
1188insert into at(c,_geo) select concat('_geo: ',c),j from t where c='stringany';
1189--error ER_CANT_CREATE_GEOMETRY_OBJECT
1190insert into at(c,_geo) select concat('_geo: ',c),j from t where c='stringint';
1191--error ER_CANT_CREATE_GEOMETRY_OBJECT
1192insert into at(c,_geo) select concat('_geo: ',c),j from t where c='stringdecimal';
1193--error ER_CANT_CREATE_GEOMETRY_OBJECT
1194insert into at(c,_geo) select concat('_geo: ',c),j from t where c='object';
1195--error ER_CANT_CREATE_GEOMETRY_OBJECT
1196insert into at(c,_geo) select concat('_geo: ',c),j from t where c='array';
1197--error ER_CANT_CREATE_GEOMETRY_OBJECT
1198insert into at(c,_geo) select concat('_geo: ',c),j from t where c='opaque_mysql_type_decimal';
1199--error ER_CANT_CREATE_GEOMETRY_OBJECT
1200insert into at(c,_geo) select concat('_geo: ',c),j from t where c='opaque_mysql_type_set';
1201--error ER_CANT_CREATE_GEOMETRY_OBJECT
1202insert into at(c,_geo) select concat('_geo: ',c),j from t where c='opaque_mysql_type_enum';
1203--error ER_CANT_CREATE_GEOMETRY_OBJECT
1204insert into at(c,_geo) select concat('_geo: ',c),j from t where c='opaque_mysql_type_date';
1205--error ER_CANT_CREATE_GEOMETRY_OBJECT
1206insert into at(c,_geo) select concat('_geo: ',c),j from t where c='opaque_mysql_type_time';
1207--error ER_CANT_CREATE_GEOMETRY_OBJECT
1208insert into at(c,_geo) select concat('_geo: ',c),j from t where c='opaque_mysql_type_datetime';
1209--error ER_CANT_CREATE_GEOMETRY_OBJECT
1210insert into at(c,_geo) select concat('_geo: ',c),j from t where c='opaque_mysql_type_geom';
1211--error ER_CANT_CREATE_GEOMETRY_OBJECT
1212insert into at(c,_geo) select concat('_geo: ',c),j from t where c='opaque_mysql_type_bit';
1213--error ER_CANT_CREATE_GEOMETRY_OBJECT
1214insert into at(c,_geo) select concat('_geo: ',c),j from t where c='opaque_mysql_type_year';
1215--error ER_CANT_CREATE_GEOMETRY_OBJECT
1216insert into at(c,_geo) select concat('_geo: ',c),j from t where c='opaque_mysql_type_blob';
1217--error ER_CANT_CREATE_GEOMETRY_OBJECT
1218insert into at(c,_geo) select concat('_geo: ',c),j from t where c='opaque_mysql_type_longblob';
1219--error ER_CANT_CREATE_GEOMETRY_OBJECT
1220insert into at(c,_geo) select concat('_geo: ',c),j from t where c='opaque_mysql_type_mediumblob';
1221--error ER_CANT_CREATE_GEOMETRY_OBJECT
1222insert into at(c,_geo) select concat('_geo: ',c),j from t where c='opaque_mysql_type_tinyblob';
1223insert into at(c,_geo) select concat('_geo: ',c),j from t where c='opaque_mysql_type_varbinary';
1224insert into at(c,_geo) select concat('_geo: ',c),j from t where c='opaque_mysql_type_binary';
1225--error ER_CANT_CREATE_GEOMETRY_OBJECT
1226insert into at(c,_geo) select concat('_geo: ',c),j from t where c='opaque_mysql_type_varchar';
1227insert into at(c,_geo) select concat('_geo: ',c),j from t where c='opaque_mysql_type_string';
1228insert into at(c,_geo) select concat('_geo: ',c),j from t where c='opaque_mysql_type_var_string';
1229
1230--error ER_CANT_CREATE_GEOMETRY_OBJECT
1231insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='null';
1232--error ER_CANT_CREATE_GEOMETRY_OBJECT
1233insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='bool';
1234--error ER_CANT_CREATE_GEOMETRY_OBJECT
1235insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='uint';
1236--error ER_CANT_CREATE_GEOMETRY_OBJECT
1237insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='int';
1238--error ER_CANT_CREATE_GEOMETRY_OBJECT
1239insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='double';
1240--error ER_CANT_CREATE_GEOMETRY_OBJECT
1241insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='stringany';
1242--error ER_CANT_CREATE_GEOMETRY_OBJECT
1243insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='stringint';
1244--error ER_CANT_CREATE_GEOMETRY_OBJECT
1245insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='stringdecimal';
1246--error ER_CANT_CREATE_GEOMETRY_OBJECT
1247insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='object';
1248--error ER_CANT_CREATE_GEOMETRY_OBJECT
1249insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='array';
1250--error ER_CANT_CREATE_GEOMETRY_OBJECT
1251insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='opaque_mysql_type_decimal';
1252--error ER_CANT_CREATE_GEOMETRY_OBJECT
1253insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='opaque_mysql_type_set';
1254--error ER_CANT_CREATE_GEOMETRY_OBJECT
1255insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='opaque_mysql_type_enum';
1256--error ER_CANT_CREATE_GEOMETRY_OBJECT
1257insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='opaque_mysql_type_date';
1258--error ER_CANT_CREATE_GEOMETRY_OBJECT
1259insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='opaque_mysql_type_time';
1260--error ER_CANT_CREATE_GEOMETRY_OBJECT
1261insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='opaque_mysql_type_datetime';
1262--error ER_CANT_CREATE_GEOMETRY_OBJECT
1263insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='opaque_mysql_type_geom';
1264--error ER_CANT_CREATE_GEOMETRY_OBJECT
1265insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='opaque_mysql_type_bit';
1266--error ER_CANT_CREATE_GEOMETRY_OBJECT
1267insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='opaque_mysql_type_year';
1268--error ER_CANT_CREATE_GEOMETRY_OBJECT
1269insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='opaque_mysql_type_blob';
1270--error ER_CANT_CREATE_GEOMETRY_OBJECT
1271insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='opaque_mysql_type_longblob';
1272--error ER_CANT_CREATE_GEOMETRY_OBJECT
1273insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='opaque_mysql_type_mediumblob';
1274--error ER_CANT_CREATE_GEOMETRY_OBJECT
1275insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='opaque_mysql_type_tinyblob';
1276insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='opaque_mysql_type_varbinary';
1277insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='opaque_mysql_type_binary';
1278--error ER_CANT_CREATE_GEOMETRY_OBJECT
1279insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='opaque_mysql_type_varchar';
1280insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='opaque_mysql_type_string';
1281insert into at(c,_pnt) select concat('_pnt: ',c),j from t where c='opaque_mysql_type_var_string';
1282
1283--error ER_CANT_CREATE_GEOMETRY_OBJECT
1284insert into at(c,_lst) select concat('_lst: ',c),j from t where c='null';
1285--error ER_CANT_CREATE_GEOMETRY_OBJECT
1286insert into at(c,_lst) select concat('_lst: ',c),j from t where c='bool';
1287--error ER_CANT_CREATE_GEOMETRY_OBJECT
1288insert into at(c,_lst) select concat('_lst: ',c),j from t where c='uint';
1289--error ER_CANT_CREATE_GEOMETRY_OBJECT
1290insert into at(c,_lst) select concat('_lst: ',c),j from t where c='int';
1291--error ER_CANT_CREATE_GEOMETRY_OBJECT
1292insert into at(c,_lst) select concat('_lst: ',c),j from t where c='double';
1293--error ER_CANT_CREATE_GEOMETRY_OBJECT
1294insert into at(c,_lst) select concat('_lst: ',c),j from t where c='stringany';
1295--error ER_CANT_CREATE_GEOMETRY_OBJECT
1296insert into at(c,_lst) select concat('_lst: ',c),j from t where c='stringint';
1297--error ER_CANT_CREATE_GEOMETRY_OBJECT
1298insert into at(c,_lst) select concat('_lst: ',c),j from t where c='stringdecimal';
1299--error ER_CANT_CREATE_GEOMETRY_OBJECT
1300insert into at(c,_lst) select concat('_lst: ',c),j from t where c='object';
1301--error ER_CANT_CREATE_GEOMETRY_OBJECT
1302insert into at(c,_lst) select concat('_lst: ',c),j from t where c='array';
1303--error ER_CANT_CREATE_GEOMETRY_OBJECT
1304insert into at(c,_lst) select concat('_lst: ',c),j from t where c='opaque_mysql_type_decimal';
1305--error ER_CANT_CREATE_GEOMETRY_OBJECT
1306insert into at(c,_lst) select concat('_lst: ',c),j from t where c='opaque_mysql_type_set';
1307--error ER_CANT_CREATE_GEOMETRY_OBJECT
1308insert into at(c,_lst) select concat('_lst: ',c),j from t where c='opaque_mysql_type_enum';
1309--error ER_CANT_CREATE_GEOMETRY_OBJECT
1310insert into at(c,_lst) select concat('_lst: ',c),j from t where c='opaque_mysql_type_date';
1311--error ER_CANT_CREATE_GEOMETRY_OBJECT
1312insert into at(c,_lst) select concat('_lst: ',c),j from t where c='opaque_mysql_type_time';
1313--error ER_CANT_CREATE_GEOMETRY_OBJECT
1314insert into at(c,_lst) select concat('_lst: ',c),j from t where c='opaque_mysql_type_datetime';
1315--error ER_CANT_CREATE_GEOMETRY_OBJECT
1316insert into at(c,_lst) select concat('_lst: ',c),j from t where c='opaque_mysql_type_geom';
1317--error ER_CANT_CREATE_GEOMETRY_OBJECT
1318insert into at(c,_lst) select concat('_lst: ',c),j from t where c='opaque_mysql_type_bit';
1319--error ER_CANT_CREATE_GEOMETRY_OBJECT
1320insert into at(c,_lst) select concat('_lst: ',c),j from t where c='opaque_mysql_type_year';
1321--error ER_CANT_CREATE_GEOMETRY_OBJECT
1322insert into at(c,_lst) select concat('_lst: ',c),j from t where c='opaque_mysql_type_blob';
1323--error ER_CANT_CREATE_GEOMETRY_OBJECT
1324insert into at(c,_lst) select concat('_lst: ',c),j from t where c='opaque_mysql_type_longblob';
1325--error ER_CANT_CREATE_GEOMETRY_OBJECT
1326insert into at(c,_lst) select concat('_lst: ',c),j from t where c='opaque_mysql_type_mediumblob';
1327--error ER_CANT_CREATE_GEOMETRY_OBJECT
1328insert into at(c,_lst) select concat('_lst: ',c),j from t where c='opaque_mysql_type_tinyblob';
1329insert into at(c,_lst) select concat('_lst: ',c),j from t where c='opaque_mysql_type_varbinary';
1330insert into at(c,_lst) select concat('_lst: ',c),j from t where c='opaque_mysql_type_binary';
1331--error ER_CANT_CREATE_GEOMETRY_OBJECT
1332insert into at(c,_lst) select concat('_lst: ',c),j from t where c='opaque_mysql_type_varchar';
1333insert into at(c,_lst) select concat('_lst: ',c),j from t where c='opaque_mysql_type_string';
1334insert into at(c,_lst) select concat('_lst: ',c),j from t where c='opaque_mysql_type_var_string';
1335
1336--error ER_CANT_CREATE_GEOMETRY_OBJECT
1337insert into at(c,_pol) select concat('_pol: ',c),j from t where c='null';
1338--error ER_CANT_CREATE_GEOMETRY_OBJECT
1339insert into at(c,_pol) select concat('_pol: ',c),j from t where c='bool';
1340--error ER_CANT_CREATE_GEOMETRY_OBJECT
1341insert into at(c,_pol) select concat('_pol: ',c),j from t where c='uint';
1342--error ER_CANT_CREATE_GEOMETRY_OBJECT
1343insert into at(c,_pol) select concat('_pol: ',c),j from t where c='int';
1344--error ER_CANT_CREATE_GEOMETRY_OBJECT
1345insert into at(c,_pol) select concat('_pol: ',c),j from t where c='double';
1346--error ER_CANT_CREATE_GEOMETRY_OBJECT
1347insert into at(c,_pol) select concat('_pol: ',c),j from t where c='stringany';
1348--error ER_CANT_CREATE_GEOMETRY_OBJECT
1349insert into at(c,_pol) select concat('_pol: ',c),j from t where c='stringint';
1350--error ER_CANT_CREATE_GEOMETRY_OBJECT
1351insert into at(c,_pol) select concat('_pol: ',c),j from t where c='stringdecimal';
1352--error ER_CANT_CREATE_GEOMETRY_OBJECT
1353insert into at(c,_pol) select concat('_pol: ',c),j from t where c='object';
1354--error ER_CANT_CREATE_GEOMETRY_OBJECT
1355insert into at(c,_pol) select concat('_pol: ',c),j from t where c='array';
1356--error ER_CANT_CREATE_GEOMETRY_OBJECT
1357insert into at(c,_pol) select concat('_pol: ',c),j from t where c='opaque_mysql_type_decimal';
1358--error ER_CANT_CREATE_GEOMETRY_OBJECT
1359insert into at(c,_pol) select concat('_pol: ',c),j from t where c='opaque_mysql_type_set';
1360--error ER_CANT_CREATE_GEOMETRY_OBJECT
1361insert into at(c,_pol) select concat('_pol: ',c),j from t where c='opaque_mysql_type_enum';
1362--error ER_CANT_CREATE_GEOMETRY_OBJECT
1363insert into at(c,_pol) select concat('_pol: ',c),j from t where c='opaque_mysql_type_date';
1364--error ER_CANT_CREATE_GEOMETRY_OBJECT
1365insert into at(c,_pol) select concat('_pol: ',c),j from t where c='opaque_mysql_type_time';
1366--error ER_CANT_CREATE_GEOMETRY_OBJECT
1367insert into at(c,_pol) select concat('_pol: ',c),j from t where c='opaque_mysql_type_datetime';
1368--error ER_CANT_CREATE_GEOMETRY_OBJECT
1369insert into at(c,_pol) select concat('_pol: ',c),j from t where c='opaque_mysql_type_geom';
1370--error ER_CANT_CREATE_GEOMETRY_OBJECT
1371insert into at(c,_pol) select concat('_pol: ',c),j from t where c='opaque_mysql_type_bit';
1372--error ER_CANT_CREATE_GEOMETRY_OBJECT
1373insert into at(c,_pol) select concat('_pol: ',c),j from t where c='opaque_mysql_type_year';
1374--error ER_CANT_CREATE_GEOMETRY_OBJECT
1375insert into at(c,_pol) select concat('_pol: ',c),j from t where c='opaque_mysql_type_blob';
1376--error ER_CANT_CREATE_GEOMETRY_OBJECT
1377insert into at(c,_pol) select concat('_pol: ',c),j from t where c='opaque_mysql_type_longblob';
1378--error ER_CANT_CREATE_GEOMETRY_OBJECT
1379insert into at(c,_pol) select concat('_pol: ',c),j from t where c='opaque_mysql_type_mediumblob';
1380--error ER_CANT_CREATE_GEOMETRY_OBJECT
1381insert into at(c,_pol) select concat('_pol: ',c),j from t where c='opaque_mysql_type_tinyblob';
1382insert into at(c,_pol) select concat('_pol: ',c),j from t where c='opaque_mysql_type_varbinary';
1383insert into at(c,_pol) select concat('_pol: ',c),j from t where c='opaque_mysql_type_binary';
1384--error ER_CANT_CREATE_GEOMETRY_OBJECT
1385insert into at(c,_pol) select concat('_pol: ',c),j from t where c='opaque_mysql_type_varchar';
1386insert into at(c,_pol) select concat('_pol: ',c),j from t where c='opaque_mysql_type_string';
1387insert into at(c,_pol) select concat('_pol: ',c),j from t where c='opaque_mysql_type_var_string';
1388
1389--error ER_CANT_CREATE_GEOMETRY_OBJECT
1390insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='null';
1391--error ER_CANT_CREATE_GEOMETRY_OBJECT
1392insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='bool';
1393--error ER_CANT_CREATE_GEOMETRY_OBJECT
1394insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='uint';
1395--error ER_CANT_CREATE_GEOMETRY_OBJECT
1396insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='int';
1397--error ER_CANT_CREATE_GEOMETRY_OBJECT
1398insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='double';
1399--error ER_CANT_CREATE_GEOMETRY_OBJECT
1400insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='stringany';
1401--error ER_CANT_CREATE_GEOMETRY_OBJECT
1402insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='stringint';
1403--error ER_CANT_CREATE_GEOMETRY_OBJECT
1404insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='stringdecimal';
1405--error ER_CANT_CREATE_GEOMETRY_OBJECT
1406insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='object';
1407--error ER_CANT_CREATE_GEOMETRY_OBJECT
1408insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='array';
1409--error ER_CANT_CREATE_GEOMETRY_OBJECT
1410insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='opaque_mysql_type_decimal';
1411--error ER_CANT_CREATE_GEOMETRY_OBJECT
1412insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='opaque_mysql_type_set';
1413--error ER_CANT_CREATE_GEOMETRY_OBJECT
1414insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='opaque_mysql_type_enum';
1415--error ER_CANT_CREATE_GEOMETRY_OBJECT
1416insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='opaque_mysql_type_date';
1417--error ER_CANT_CREATE_GEOMETRY_OBJECT
1418insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='opaque_mysql_type_time';
1419--error ER_CANT_CREATE_GEOMETRY_OBJECT
1420insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='opaque_mysql_type_datetime';
1421--error ER_CANT_CREATE_GEOMETRY_OBJECT
1422insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='opaque_mysql_type_geom';
1423--error ER_CANT_CREATE_GEOMETRY_OBJECT
1424insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='opaque_mysql_type_bit';
1425--error ER_CANT_CREATE_GEOMETRY_OBJECT
1426insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='opaque_mysql_type_year';
1427--error ER_CANT_CREATE_GEOMETRY_OBJECT
1428insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='opaque_mysql_type_blob';
1429--error ER_CANT_CREATE_GEOMETRY_OBJECT
1430insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='opaque_mysql_type_longblob';
1431--error ER_CANT_CREATE_GEOMETRY_OBJECT
1432insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='opaque_mysql_type_mediumblob';
1433--error ER_CANT_CREATE_GEOMETRY_OBJECT
1434insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='opaque_mysql_type_tinyblob';
1435insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='opaque_mysql_type_varbinary';
1436insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='opaque_mysql_type_binary';
1437--error ER_CANT_CREATE_GEOMETRY_OBJECT
1438insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='opaque_mysql_type_varchar';
1439insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='opaque_mysql_type_string';
1440insert into at(c,_mpt) select concat('_mpt: ',c),j from t where c='opaque_mysql_type_var_string';
1441
1442--error ER_CANT_CREATE_GEOMETRY_OBJECT
1443insert into at(c,_mls) select concat('_mls: ',c),j from t where c='null';
1444--error ER_CANT_CREATE_GEOMETRY_OBJECT
1445insert into at(c,_mls) select concat('_mls: ',c),j from t where c='bool';
1446--error ER_CANT_CREATE_GEOMETRY_OBJECT
1447insert into at(c,_mls) select concat('_mls: ',c),j from t where c='uint';
1448--error ER_CANT_CREATE_GEOMETRY_OBJECT
1449insert into at(c,_mls) select concat('_mls: ',c),j from t where c='int';
1450--error ER_CANT_CREATE_GEOMETRY_OBJECT
1451insert into at(c,_mls) select concat('_mls: ',c),j from t where c='double';
1452--error ER_CANT_CREATE_GEOMETRY_OBJECT
1453insert into at(c,_mls) select concat('_mls: ',c),j from t where c='stringany';
1454--error ER_CANT_CREATE_GEOMETRY_OBJECT
1455insert into at(c,_mls) select concat('_mls: ',c),j from t where c='stringint';
1456--error ER_CANT_CREATE_GEOMETRY_OBJECT
1457insert into at(c,_mls) select concat('_mls: ',c),j from t where c='stringdecimal';
1458--error ER_CANT_CREATE_GEOMETRY_OBJECT
1459insert into at(c,_mls) select concat('_mls: ',c),j from t where c='object';
1460--error ER_CANT_CREATE_GEOMETRY_OBJECT
1461insert into at(c,_mls) select concat('_mls: ',c),j from t where c='array';
1462--error ER_CANT_CREATE_GEOMETRY_OBJECT
1463insert into at(c,_mls) select concat('_mls: ',c),j from t where c='opaque_mysql_type_decimal';
1464--error ER_CANT_CREATE_GEOMETRY_OBJECT
1465insert into at(c,_mls) select concat('_mls: ',c),j from t where c='opaque_mysql_type_set';
1466--error ER_CANT_CREATE_GEOMETRY_OBJECT
1467insert into at(c,_mls) select concat('_mls: ',c),j from t where c='opaque_mysql_type_enum';
1468--error ER_CANT_CREATE_GEOMETRY_OBJECT
1469insert into at(c,_mls) select concat('_mls: ',c),j from t where c='opaque_mysql_type_date';
1470--error ER_CANT_CREATE_GEOMETRY_OBJECT
1471insert into at(c,_mls) select concat('_mls: ',c),j from t where c='opaque_mysql_type_time';
1472--error ER_CANT_CREATE_GEOMETRY_OBJECT
1473insert into at(c,_mls) select concat('_mls: ',c),j from t where c='opaque_mysql_type_datetime';
1474--error ER_CANT_CREATE_GEOMETRY_OBJECT
1475insert into at(c,_mls) select concat('_mls: ',c),j from t where c='opaque_mysql_type_geom';
1476--error ER_CANT_CREATE_GEOMETRY_OBJECT
1477insert into at(c,_mls) select concat('_mls: ',c),j from t where c='opaque_mysql_type_bit';
1478--error ER_CANT_CREATE_GEOMETRY_OBJECT
1479insert into at(c,_mls) select concat('_mls: ',c),j from t where c='opaque_mysql_type_year';
1480--error ER_CANT_CREATE_GEOMETRY_OBJECT
1481insert into at(c,_mls) select concat('_mls: ',c),j from t where c='opaque_mysql_type_blob';
1482--error ER_CANT_CREATE_GEOMETRY_OBJECT
1483insert into at(c,_mls) select concat('_mls: ',c),j from t where c='opaque_mysql_type_longblob';
1484--error ER_CANT_CREATE_GEOMETRY_OBJECT
1485insert into at(c,_mls) select concat('_mls: ',c),j from t where c='opaque_mysql_type_mediumblob';
1486--error ER_CANT_CREATE_GEOMETRY_OBJECT
1487insert into at(c,_mls) select concat('_mls: ',c),j from t where c='opaque_mysql_type_tinyblob';
1488insert into at(c,_mls) select concat('_mls: ',c),j from t where c='opaque_mysql_type_varbinary';
1489insert into at(c,_mls) select concat('_mls: ',c),j from t where c='opaque_mysql_type_binary';
1490--error ER_CANT_CREATE_GEOMETRY_OBJECT
1491insert into at(c,_mls) select concat('_mls: ',c),j from t where c='opaque_mysql_type_varchar';
1492insert into at(c,_mls) select concat('_mls: ',c),j from t where c='opaque_mysql_type_string';
1493insert into at(c,_mls) select concat('_mls: ',c),j from t where c='opaque_mysql_type_var_string';
1494
1495--error ER_CANT_CREATE_GEOMETRY_OBJECT
1496insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='null';
1497--error ER_CANT_CREATE_GEOMETRY_OBJECT
1498insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='bool';
1499--error ER_CANT_CREATE_GEOMETRY_OBJECT
1500insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='uint';
1501--error ER_CANT_CREATE_GEOMETRY_OBJECT
1502insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='int';
1503--error ER_CANT_CREATE_GEOMETRY_OBJECT
1504insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='double';
1505--error ER_CANT_CREATE_GEOMETRY_OBJECT
1506insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='stringany';
1507--error ER_CANT_CREATE_GEOMETRY_OBJECT
1508insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='stringint';
1509--error ER_CANT_CREATE_GEOMETRY_OBJECT
1510insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='stringdecimal';
1511--error ER_CANT_CREATE_GEOMETRY_OBJECT
1512insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='object';
1513--error ER_CANT_CREATE_GEOMETRY_OBJECT
1514insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='array';
1515--error ER_CANT_CREATE_GEOMETRY_OBJECT
1516insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='opaque_mysql_type_decimal';
1517--error ER_CANT_CREATE_GEOMETRY_OBJECT
1518insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='opaque_mysql_type_set';
1519--error ER_CANT_CREATE_GEOMETRY_OBJECT
1520insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='opaque_mysql_type_enum';
1521--error ER_CANT_CREATE_GEOMETRY_OBJECT
1522insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='opaque_mysql_type_date';
1523--error ER_CANT_CREATE_GEOMETRY_OBJECT
1524insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='opaque_mysql_type_time';
1525--error ER_CANT_CREATE_GEOMETRY_OBJECT
1526insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='opaque_mysql_type_datetime';
1527--error ER_CANT_CREATE_GEOMETRY_OBJECT
1528insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='opaque_mysql_type_geom';
1529--error ER_CANT_CREATE_GEOMETRY_OBJECT
1530insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='opaque_mysql_type_bit';
1531--error ER_CANT_CREATE_GEOMETRY_OBJECT
1532insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='opaque_mysql_type_year';
1533--error ER_CANT_CREATE_GEOMETRY_OBJECT
1534insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='opaque_mysql_type_blob';
1535--error ER_CANT_CREATE_GEOMETRY_OBJECT
1536insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='opaque_mysql_type_longblob';
1537--error ER_CANT_CREATE_GEOMETRY_OBJECT
1538insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='opaque_mysql_type_mediumblob';
1539--error ER_CANT_CREATE_GEOMETRY_OBJECT
1540insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='opaque_mysql_type_tinyblob';
1541insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='opaque_mysql_type_varbinary';
1542insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='opaque_mysql_type_binary';
1543--error ER_CANT_CREATE_GEOMETRY_OBJECT
1544insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='opaque_mysql_type_varchar';
1545insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='opaque_mysql_type_string';
1546insert into at(c,_mpy) select concat('_mpy: ',c),j from t where c='opaque_mysql_type_var_string';
1547
1548--error ER_CANT_CREATE_GEOMETRY_OBJECT
1549insert into at(c,_gco) select concat('_gco: ',c),j from t where c='null';
1550--error ER_CANT_CREATE_GEOMETRY_OBJECT
1551insert into at(c,_gco) select concat('_gco: ',c),j from t where c='bool';
1552--error ER_CANT_CREATE_GEOMETRY_OBJECT
1553insert into at(c,_gco) select concat('_gco: ',c),j from t where c='uint';
1554--error ER_CANT_CREATE_GEOMETRY_OBJECT
1555insert into at(c,_gco) select concat('_gco: ',c),j from t where c='int';
1556--error ER_CANT_CREATE_GEOMETRY_OBJECT
1557insert into at(c,_gco) select concat('_gco: ',c),j from t where c='double';
1558--error ER_CANT_CREATE_GEOMETRY_OBJECT
1559insert into at(c,_gco) select concat('_gco: ',c),j from t where c='stringany';
1560--error ER_CANT_CREATE_GEOMETRY_OBJECT
1561insert into at(c,_gco) select concat('_gco: ',c),j from t where c='stringint';
1562--error ER_CANT_CREATE_GEOMETRY_OBJECT
1563insert into at(c,_gco) select concat('_gco: ',c),j from t where c='stringdecimal';
1564--error ER_CANT_CREATE_GEOMETRY_OBJECT
1565insert into at(c,_gco) select concat('_gco: ',c),j from t where c='object';
1566--error ER_CANT_CREATE_GEOMETRY_OBJECT
1567insert into at(c,_gco) select concat('_gco: ',c),j from t where c='array';
1568--error ER_CANT_CREATE_GEOMETRY_OBJECT
1569insert into at(c,_gco) select concat('_gco: ',c),j from t where c='opaque_mysql_type_decimal';
1570--error ER_CANT_CREATE_GEOMETRY_OBJECT
1571insert into at(c,_gco) select concat('_gco: ',c),j from t where c='opaque_mysql_type_set';
1572--error ER_CANT_CREATE_GEOMETRY_OBJECT
1573insert into at(c,_gco) select concat('_gco: ',c),j from t where c='opaque_mysql_type_enum';
1574--error ER_CANT_CREATE_GEOMETRY_OBJECT
1575insert into at(c,_gco) select concat('_gco: ',c),j from t where c='opaque_mysql_type_date';
1576--error ER_CANT_CREATE_GEOMETRY_OBJECT
1577insert into at(c,_gco) select concat('_gco: ',c),j from t where c='opaque_mysql_type_time';
1578--error ER_CANT_CREATE_GEOMETRY_OBJECT
1579insert into at(c,_gco) select concat('_gco: ',c),j from t where c='opaque_mysql_type_datetime';
1580--error ER_CANT_CREATE_GEOMETRY_OBJECT
1581insert into at(c,_gco) select concat('_gco: ',c),j from t where c='opaque_mysql_type_geom';
1582--error ER_CANT_CREATE_GEOMETRY_OBJECT
1583insert into at(c,_gco) select concat('_gco: ',c),j from t where c='opaque_mysql_type_bit';
1584--error ER_CANT_CREATE_GEOMETRY_OBJECT
1585insert into at(c,_gco) select concat('_gco: ',c),j from t where c='opaque_mysql_type_year';
1586--error ER_CANT_CREATE_GEOMETRY_OBJECT
1587insert into at(c,_gco) select concat('_gco: ',c),j from t where c='opaque_mysql_type_blob';
1588--error ER_CANT_CREATE_GEOMETRY_OBJECT
1589insert into at(c,_gco) select concat('_gco: ',c),j from t where c='opaque_mysql_type_longblob';
1590--error ER_CANT_CREATE_GEOMETRY_OBJECT
1591insert into at(c,_gco) select concat('_gco: ',c),j from t where c='opaque_mysql_type_mediumblob';
1592--error ER_CANT_CREATE_GEOMETRY_OBJECT
1593insert into at(c,_gco) select concat('_gco: ',c),j from t where c='opaque_mysql_type_tinyblob';
1594insert into at(c,_gco) select concat('_gco: ',c),j from t where c='opaque_mysql_type_varbinary';
1595insert into at(c,_gco) select concat('_gco: ',c),j from t where c='opaque_mysql_type_binary';
1596--error ER_CANT_CREATE_GEOMETRY_OBJECT
1597insert into at(c,_gco) select concat('_gco: ',c),j from t where c='opaque_mysql_type_varchar';
1598insert into at(c,_gco) select concat('_gco: ',c),j from t where c='opaque_mysql_type_string';
1599insert into at(c,_gco) select concat('_gco: ',c),j from t where c='opaque_mysql_type_var_string';
1600
1601--echo # ----------------------------------------------------------------------
1602--echo #  I N S E R T   F R O M   J S O N   F U N C T I O N
1603--echo # ----------------------------------------------------------------------
1604insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='null';
1605insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='bool';
1606insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='uint';
1607insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='int';
1608insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='double';
1609insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='stringany';
1610insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='stringint';
1611insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='stringdecimal';
1612insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='object';
1613insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='array';
1614insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
1615insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
1616insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
1617--error ER_DATA_TOO_LONG
1618insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
1619--error ER_DATA_TOO_LONG
1620insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
1621--error ER_DATA_TOO_LONG
1622insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
1623--error ER_DATA_TOO_LONG
1624insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
1625--error ER_DATA_TOO_LONG
1626insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
1627insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
1628--error ER_DATA_TOO_LONG
1629insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
1630--error ER_DATA_TOO_LONG
1631insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
1632--error ER_DATA_TOO_LONG
1633insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
1634--error ER_DATA_TOO_LONG
1635insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
1636insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
1637insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
1638--error ER_DATA_TOO_LONG
1639insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
1640insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
1641insert into at(c,_bit) select concat('_bit: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
1642
1643--error ER_INVALID_JSON_VALUE_FOR_CAST
1644insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='null';
1645insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='bool';
1646insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='uint';
1647insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='int';
1648insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='double';
1649--error ER_INVALID_JSON_VALUE_FOR_CAST
1650insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='stringany';
1651insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='stringint';
1652--error ER_INVALID_JSON_VALUE_FOR_CAST
1653insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='stringdecimal'; # needs cast(j as decimal)
1654--error ER_INVALID_JSON_VALUE_FOR_CAST
1655insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='object';
1656--error ER_INVALID_JSON_VALUE_FOR_CAST
1657insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='array';
1658insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
1659--error ER_INVALID_JSON_VALUE_FOR_CAST
1660insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
1661--error ER_INVALID_JSON_VALUE_FOR_CAST
1662insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
1663--error ER_INVALID_JSON_VALUE_FOR_CAST
1664insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
1665--error ER_INVALID_JSON_VALUE_FOR_CAST
1666insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
1667--error ER_INVALID_JSON_VALUE_FOR_CAST
1668insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
1669--error ER_INVALID_JSON_VALUE_FOR_CAST
1670insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
1671--error ER_INVALID_JSON_VALUE_FOR_CAST
1672insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
1673--error ER_WARN_DATA_OUT_OF_RANGE
1674insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
1675--error ER_INVALID_JSON_VALUE_FOR_CAST
1676insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
1677--error ER_INVALID_JSON_VALUE_FOR_CAST
1678insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
1679--error ER_INVALID_JSON_VALUE_FOR_CAST
1680insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
1681--error ER_INVALID_JSON_VALUE_FOR_CAST
1682insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
1683insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
1684insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
1685--error ER_INVALID_JSON_VALUE_FOR_CAST
1686insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
1687insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
1688insert into at(c,_tin) select concat('_tin: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
1689
1690--error ER_INVALID_JSON_VALUE_FOR_CAST
1691insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='null';
1692insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='bool';
1693insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='uint';
1694insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='int';
1695insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='double';
1696--error ER_INVALID_JSON_VALUE_FOR_CAST
1697insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='stringany';
1698insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='stringint';
1699--error ER_INVALID_JSON_VALUE_FOR_CAST
1700insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='stringdecimal';
1701--error ER_INVALID_JSON_VALUE_FOR_CAST
1702insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='object';
1703--error ER_INVALID_JSON_VALUE_FOR_CAST
1704insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='array';
1705insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
1706--error ER_INVALID_JSON_VALUE_FOR_CAST
1707insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
1708--error ER_INVALID_JSON_VALUE_FOR_CAST
1709insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
1710--error ER_INVALID_JSON_VALUE_FOR_CAST
1711insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
1712--error ER_INVALID_JSON_VALUE_FOR_CAST
1713insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
1714--error ER_INVALID_JSON_VALUE_FOR_CAST
1715insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
1716--error ER_INVALID_JSON_VALUE_FOR_CAST
1717insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
1718--error ER_INVALID_JSON_VALUE_FOR_CAST
1719insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
1720--error ER_WARN_DATA_OUT_OF_RANGE
1721insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
1722--error ER_INVALID_JSON_VALUE_FOR_CAST
1723insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
1724--error ER_INVALID_JSON_VALUE_FOR_CAST
1725insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
1726--error ER_INVALID_JSON_VALUE_FOR_CAST
1727insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
1728--error ER_INVALID_JSON_VALUE_FOR_CAST
1729insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
1730insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
1731insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
1732--error ER_INVALID_JSON_VALUE_FOR_CAST
1733insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
1734insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
1735insert into at(c,_boo) select concat('_boo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
1736
1737--error ER_INVALID_JSON_VALUE_FOR_CAST
1738insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='null';
1739insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='bool';
1740insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='uint';
1741insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='int';
1742insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='double';
1743--error ER_INVALID_JSON_VALUE_FOR_CAST
1744insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='stringany';
1745insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='stringint';
1746--error ER_INVALID_JSON_VALUE_FOR_CAST
1747insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='stringdecimal';
1748--error ER_INVALID_JSON_VALUE_FOR_CAST
1749insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='object';
1750--error ER_INVALID_JSON_VALUE_FOR_CAST
1751insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='array';
1752insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
1753--error ER_INVALID_JSON_VALUE_FOR_CAST
1754insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
1755--error ER_INVALID_JSON_VALUE_FOR_CAST
1756insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
1757--error ER_INVALID_JSON_VALUE_FOR_CAST
1758insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
1759--error ER_INVALID_JSON_VALUE_FOR_CAST
1760insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
1761--error ER_INVALID_JSON_VALUE_FOR_CAST
1762--error ER_INVALID_JSON_VALUE_FOR_CAST
1763insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
1764--error ER_INVALID_JSON_VALUE_FOR_CAST
1765insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
1766--error ER_INVALID_JSON_VALUE_FOR_CAST
1767insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
1768insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
1769--error ER_INVALID_JSON_VALUE_FOR_CAST
1770insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
1771--error ER_INVALID_JSON_VALUE_FOR_CAST
1772insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
1773--error ER_INVALID_JSON_VALUE_FOR_CAST
1774insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
1775--error ER_INVALID_JSON_VALUE_FOR_CAST
1776insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
1777insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
1778insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
1779--error ER_INVALID_JSON_VALUE_FOR_CAST
1780insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
1781insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
1782insert into at(c,_sms) select concat('_sms: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
1783
1784--error ER_INVALID_JSON_VALUE_FOR_CAST
1785insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='null';
1786insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='bool';
1787insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='uint';
1788insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='int';
1789insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='double';
1790--error ER_INVALID_JSON_VALUE_FOR_CAST
1791insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='stringany';
1792insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='stringint';
1793--error ER_INVALID_JSON_VALUE_FOR_CAST
1794insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='stringdecimal';
1795--error ER_INVALID_JSON_VALUE_FOR_CAST
1796insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='object';
1797--error ER_INVALID_JSON_VALUE_FOR_CAST
1798insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='array';
1799insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
1800--error ER_INVALID_JSON_VALUE_FOR_CAST
1801insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
1802--error ER_INVALID_JSON_VALUE_FOR_CAST
1803insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
1804--error ER_INVALID_JSON_VALUE_FOR_CAST
1805insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
1806--error ER_INVALID_JSON_VALUE_FOR_CAST
1807insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
1808--error ER_INVALID_JSON_VALUE_FOR_CAST
1809insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
1810--error ER_INVALID_JSON_VALUE_FOR_CAST
1811insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
1812--error ER_INVALID_JSON_VALUE_FOR_CAST
1813insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
1814insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
1815--error ER_INVALID_JSON_VALUE_FOR_CAST
1816insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
1817--error ER_INVALID_JSON_VALUE_FOR_CAST
1818insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
1819--error ER_INVALID_JSON_VALUE_FOR_CAST
1820insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
1821--error ER_INVALID_JSON_VALUE_FOR_CAST
1822insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
1823insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
1824insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
1825--error ER_INVALID_JSON_VALUE_FOR_CAST
1826insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
1827insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
1828insert into at(c,_smu) select concat('_smu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
1829
1830--error ER_INVALID_JSON_VALUE_FOR_CAST
1831insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='null';
1832insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='bool';
1833insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='uint';
1834insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='int';
1835insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='double';
1836--error ER_INVALID_JSON_VALUE_FOR_CAST
1837insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='stringany';
1838insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='stringint';
1839--error ER_INVALID_JSON_VALUE_FOR_CAST
1840insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='stringdecimal';
1841--error ER_INVALID_JSON_VALUE_FOR_CAST
1842insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='object';
1843--error ER_INVALID_JSON_VALUE_FOR_CAST
1844insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='array';
1845insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
1846--error ER_INVALID_JSON_VALUE_FOR_CAST
1847insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
1848--error ER_INVALID_JSON_VALUE_FOR_CAST
1849insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
1850--error ER_INVALID_JSON_VALUE_FOR_CAST
1851insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
1852--error ER_INVALID_JSON_VALUE_FOR_CAST
1853insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
1854--error ER_INVALID_JSON_VALUE_FOR_CAST
1855insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
1856--error ER_INVALID_JSON_VALUE_FOR_CAST
1857insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
1858--error ER_INVALID_JSON_VALUE_FOR_CAST
1859insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
1860insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
1861--error ER_INVALID_JSON_VALUE_FOR_CAST
1862insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
1863--error ER_INVALID_JSON_VALUE_FOR_CAST
1864insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
1865--error ER_INVALID_JSON_VALUE_FOR_CAST
1866insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
1867--error ER_INVALID_JSON_VALUE_FOR_CAST
1868insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
1869insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
1870insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
1871--error ER_INVALID_JSON_VALUE_FOR_CAST
1872insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
1873insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
1874insert into at(c,_mes) select concat('_mes: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
1875
1876--error ER_INVALID_JSON_VALUE_FOR_CAST
1877insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='null';
1878insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='bool';
1879insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='uint';
1880insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='int';
1881insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='double';
1882--error ER_INVALID_JSON_VALUE_FOR_CAST
1883insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='stringany';
1884insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='stringint';
1885--error ER_INVALID_JSON_VALUE_FOR_CAST
1886insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='stringdecimal';
1887--error ER_INVALID_JSON_VALUE_FOR_CAST
1888insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='object';
1889--error ER_INVALID_JSON_VALUE_FOR_CAST
1890insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='array';
1891insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
1892--error ER_INVALID_JSON_VALUE_FOR_CAST
1893insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
1894--error ER_INVALID_JSON_VALUE_FOR_CAST
1895insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
1896--error ER_INVALID_JSON_VALUE_FOR_CAST
1897insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
1898--error ER_INVALID_JSON_VALUE_FOR_CAST
1899insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
1900--error ER_INVALID_JSON_VALUE_FOR_CAST
1901insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
1902--error ER_INVALID_JSON_VALUE_FOR_CAST
1903insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
1904--error ER_INVALID_JSON_VALUE_FOR_CAST
1905insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
1906insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
1907--error ER_INVALID_JSON_VALUE_FOR_CAST
1908insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
1909--error ER_INVALID_JSON_VALUE_FOR_CAST
1910insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
1911--error ER_INVALID_JSON_VALUE_FOR_CAST
1912insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
1913--error ER_INVALID_JSON_VALUE_FOR_CAST
1914insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
1915insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
1916insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
1917--error ER_INVALID_JSON_VALUE_FOR_CAST
1918insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
1919insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
1920insert into at(c,_meu) select concat('_meu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
1921
1922--error ER_INVALID_JSON_VALUE_FOR_CAST
1923insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='null';
1924insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='bool';
1925insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='uint';
1926insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='int';
1927insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='double';
1928--error ER_INVALID_JSON_VALUE_FOR_CAST
1929insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='stringany';
1930insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='stringint';
1931--error ER_INVALID_JSON_VALUE_FOR_CAST
1932insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='stringdecimal';
1933--error ER_INVALID_JSON_VALUE_FOR_CAST
1934insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='object';
1935--error ER_INVALID_JSON_VALUE_FOR_CAST
1936insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='array';
1937insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
1938--error ER_INVALID_JSON_VALUE_FOR_CAST
1939insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
1940--error ER_INVALID_JSON_VALUE_FOR_CAST
1941insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
1942--error ER_INVALID_JSON_VALUE_FOR_CAST
1943insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
1944--error ER_INVALID_JSON_VALUE_FOR_CAST
1945insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
1946--error ER_INVALID_JSON_VALUE_FOR_CAST
1947insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
1948--error ER_INVALID_JSON_VALUE_FOR_CAST
1949insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
1950--error ER_INVALID_JSON_VALUE_FOR_CAST
1951insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
1952insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
1953--error ER_INVALID_JSON_VALUE_FOR_CAST
1954insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
1955--error ER_INVALID_JSON_VALUE_FOR_CAST
1956insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
1957--error ER_INVALID_JSON_VALUE_FOR_CAST
1958insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
1959--error ER_INVALID_JSON_VALUE_FOR_CAST
1960insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
1961insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
1962insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
1963--error ER_INVALID_JSON_VALUE_FOR_CAST
1964insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
1965insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
1966insert into at(c,_ins) select concat('_ins: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
1967
1968--error ER_INVALID_JSON_VALUE_FOR_CAST
1969insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='null';
1970insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='bool';
1971insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='uint';
1972insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='int';
1973insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='double';
1974--error ER_INVALID_JSON_VALUE_FOR_CAST
1975insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='stringany';
1976insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='stringint';
1977--error ER_INVALID_JSON_VALUE_FOR_CAST
1978insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='stringdecimal';
1979--error ER_INVALID_JSON_VALUE_FOR_CAST
1980insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='object';
1981--error ER_INVALID_JSON_VALUE_FOR_CAST
1982insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='array';
1983insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
1984--error ER_INVALID_JSON_VALUE_FOR_CAST
1985insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
1986--error ER_INVALID_JSON_VALUE_FOR_CAST
1987insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
1988--error ER_INVALID_JSON_VALUE_FOR_CAST
1989insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
1990--error ER_INVALID_JSON_VALUE_FOR_CAST
1991insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
1992--error ER_INVALID_JSON_VALUE_FOR_CAST
1993insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
1994--error ER_INVALID_JSON_VALUE_FOR_CAST
1995insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
1996--error ER_INVALID_JSON_VALUE_FOR_CAST
1997insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
1998insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
1999--error ER_INVALID_JSON_VALUE_FOR_CAST
2000insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2001--error ER_INVALID_JSON_VALUE_FOR_CAST
2002insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2003--error ER_INVALID_JSON_VALUE_FOR_CAST
2004insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2005--error ER_INVALID_JSON_VALUE_FOR_CAST
2006insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2007insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2008insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2009--error ER_INVALID_JSON_VALUE_FOR_CAST
2010insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2011insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2012insert into at(c,_inu) select concat('_inu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2013
2014--error ER_INVALID_JSON_VALUE_FOR_CAST
2015insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='null';
2016insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='bool';
2017insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='uint';
2018insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='int';
2019insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='double';
2020--error ER_INVALID_JSON_VALUE_FOR_CAST
2021insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='stringany';
2022insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='stringint';
2023--error ER_INVALID_JSON_VALUE_FOR_CAST
2024insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='stringdecimal';
2025--error ER_INVALID_JSON_VALUE_FOR_CAST
2026insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='object';
2027--error ER_INVALID_JSON_VALUE_FOR_CAST
2028insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='array';
2029insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
2030--error ER_INVALID_JSON_VALUE_FOR_CAST
2031insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
2032--error ER_INVALID_JSON_VALUE_FOR_CAST
2033insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
2034--error ER_INVALID_JSON_VALUE_FOR_CAST
2035insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
2036--error ER_INVALID_JSON_VALUE_FOR_CAST
2037insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
2038--error ER_INVALID_JSON_VALUE_FOR_CAST
2039insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
2040--error ER_INVALID_JSON_VALUE_FOR_CAST
2041insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
2042--error ER_INVALID_JSON_VALUE_FOR_CAST
2043insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
2044insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
2045--error ER_INVALID_JSON_VALUE_FOR_CAST
2046insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2047--error ER_INVALID_JSON_VALUE_FOR_CAST
2048insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2049--error ER_INVALID_JSON_VALUE_FOR_CAST
2050insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2051--error ER_INVALID_JSON_VALUE_FOR_CAST
2052insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2053insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2054insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2055--error ER_INVALID_JSON_VALUE_FOR_CAST
2056insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2057insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2058insert into at(c,_bis) select concat('_bis: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2059
2060--error ER_INVALID_JSON_VALUE_FOR_CAST
2061insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='null';
2062insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='bool';
2063insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='uint';
2064insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='int';
2065insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='double';
2066--error ER_INVALID_JSON_VALUE_FOR_CAST
2067insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='stringany';
2068insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='stringint';
2069--error ER_INVALID_JSON_VALUE_FOR_CAST
2070insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='stringdecimal';
2071--error ER_INVALID_JSON_VALUE_FOR_CAST
2072insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='object';
2073--error ER_INVALID_JSON_VALUE_FOR_CAST
2074insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='array';
2075insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
2076--error ER_INVALID_JSON_VALUE_FOR_CAST
2077insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
2078--error ER_INVALID_JSON_VALUE_FOR_CAST
2079insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
2080--error ER_INVALID_JSON_VALUE_FOR_CAST
2081insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
2082--error ER_INVALID_JSON_VALUE_FOR_CAST
2083insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
2084--error ER_INVALID_JSON_VALUE_FOR_CAST
2085insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
2086--error ER_INVALID_JSON_VALUE_FOR_CAST
2087insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
2088--error ER_INVALID_JSON_VALUE_FOR_CAST
2089insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
2090insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
2091--error ER_INVALID_JSON_VALUE_FOR_CAST
2092insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2093--error ER_INVALID_JSON_VALUE_FOR_CAST
2094insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2095--error ER_INVALID_JSON_VALUE_FOR_CAST
2096insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2097--error ER_INVALID_JSON_VALUE_FOR_CAST
2098insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2099insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2100insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2101--error ER_INVALID_JSON_VALUE_FOR_CAST
2102insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2103insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2104insert into at(c,_biu) select concat('_biu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2105
2106--error ER_INVALID_JSON_VALUE_FOR_CAST
2107insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='null';
2108insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='bool';
2109insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='uint';
2110insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='int';
2111insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='double';
2112--error ER_INVALID_JSON_VALUE_FOR_CAST
2113insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='stringany';
2114insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='stringint';
2115insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='stringdecimal';
2116--error ER_INVALID_JSON_VALUE_FOR_CAST
2117insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='object';
2118--error ER_INVALID_JSON_VALUE_FOR_CAST
2119insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='array';
2120insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
2121--error ER_INVALID_JSON_VALUE_FOR_CAST
2122insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
2123--error ER_INVALID_JSON_VALUE_FOR_CAST
2124insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
2125--error ER_INVALID_JSON_VALUE_FOR_CAST
2126insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
2127--error ER_INVALID_JSON_VALUE_FOR_CAST
2128insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
2129--error ER_INVALID_JSON_VALUE_FOR_CAST
2130insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
2131--error ER_INVALID_JSON_VALUE_FOR_CAST
2132insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
2133--error ER_INVALID_JSON_VALUE_FOR_CAST
2134insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
2135--error ER_WARN_DATA_OUT_OF_RANGE
2136insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
2137--error ER_INVALID_JSON_VALUE_FOR_CAST
2138insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2139--error ER_INVALID_JSON_VALUE_FOR_CAST
2140insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2141--error ER_INVALID_JSON_VALUE_FOR_CAST
2142insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2143--error ER_INVALID_JSON_VALUE_FOR_CAST
2144insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2145insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2146insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2147--error ER_INVALID_JSON_VALUE_FOR_CAST
2148insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2149insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2150insert into at(c,_dec) select concat('_dec: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2151
2152--error ER_INVALID_JSON_VALUE_FOR_CAST
2153insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='null';
2154insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='bool';
2155insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='uint';
2156insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='int';
2157insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='double';
2158--error ER_INVALID_JSON_VALUE_FOR_CAST
2159insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='stringany';
2160insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='stringint';
2161insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='stringdecimal';
2162--error ER_INVALID_JSON_VALUE_FOR_CAST
2163insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='object';
2164--error ER_INVALID_JSON_VALUE_FOR_CAST
2165insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='array';
2166insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
2167--error ER_INVALID_JSON_VALUE_FOR_CAST
2168insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
2169--error ER_INVALID_JSON_VALUE_FOR_CAST
2170insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
2171--error ER_INVALID_JSON_VALUE_FOR_CAST
2172insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
2173--error ER_INVALID_JSON_VALUE_FOR_CAST
2174insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
2175--error ER_INVALID_JSON_VALUE_FOR_CAST
2176insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
2177--error ER_INVALID_JSON_VALUE_FOR_CAST
2178insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
2179--error ER_INVALID_JSON_VALUE_FOR_CAST
2180insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
2181insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
2182--error ER_INVALID_JSON_VALUE_FOR_CAST
2183insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2184--error ER_INVALID_JSON_VALUE_FOR_CAST
2185insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2186--error ER_INVALID_JSON_VALUE_FOR_CAST
2187insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2188--error ER_INVALID_JSON_VALUE_FOR_CAST
2189insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2190insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2191insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2192--error ER_INVALID_JSON_VALUE_FOR_CAST
2193insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2194insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2195insert into at(c,_flo) select concat('_flo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2196
2197--error ER_INVALID_JSON_VALUE_FOR_CAST
2198insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='null';
2199insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='bool';
2200insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='uint';
2201insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='int';
2202insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='double';
2203--error ER_INVALID_JSON_VALUE_FOR_CAST
2204insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='stringany';
2205insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='stringint';
2206insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='stringdecimal';
2207--error ER_INVALID_JSON_VALUE_FOR_CAST
2208insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='object';
2209--error ER_INVALID_JSON_VALUE_FOR_CAST
2210insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='array';
2211insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
2212--error ER_INVALID_JSON_VALUE_FOR_CAST
2213insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
2214--error ER_INVALID_JSON_VALUE_FOR_CAST
2215insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
2216--error ER_INVALID_JSON_VALUE_FOR_CAST
2217insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
2218--error ER_INVALID_JSON_VALUE_FOR_CAST
2219insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
2220--error ER_INVALID_JSON_VALUE_FOR_CAST
2221insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
2222--error ER_INVALID_JSON_VALUE_FOR_CAST
2223insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
2224--error ER_INVALID_JSON_VALUE_FOR_CAST
2225insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
2226insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
2227--error ER_INVALID_JSON_VALUE_FOR_CAST
2228insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2229--error ER_INVALID_JSON_VALUE_FOR_CAST
2230insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2231--error ER_INVALID_JSON_VALUE_FOR_CAST
2232insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2233--error ER_INVALID_JSON_VALUE_FOR_CAST
2234insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2235insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2236insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2237--error ER_INVALID_JSON_VALUE_FOR_CAST
2238insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2239insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2240insert into at(c,_dou) select concat('_dou: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2241
2242--error ER_INVALID_JSON_VALUE_FOR_CAST
2243insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='null';
2244--error ER_INVALID_JSON_VALUE_FOR_CAST
2245insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='bool';
2246--error ER_INVALID_JSON_VALUE_FOR_CAST
2247insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='uint';
2248--error ER_INVALID_JSON_VALUE_FOR_CAST
2249insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='int';
2250--error ER_INVALID_JSON_VALUE_FOR_CAST
2251insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='double';
2252--error ER_INVALID_JSON_VALUE_FOR_CAST
2253insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='stringany';
2254--error ER_INVALID_JSON_VALUE_FOR_CAST
2255insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='stringint';
2256--error ER_INVALID_JSON_VALUE_FOR_CAST
2257insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='stringdecimal';
2258--error ER_INVALID_JSON_VALUE_FOR_CAST
2259insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='object';
2260--error ER_INVALID_JSON_VALUE_FOR_CAST
2261insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='array';
2262--error ER_INVALID_JSON_VALUE_FOR_CAST
2263insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
2264--error ER_INVALID_JSON_VALUE_FOR_CAST
2265insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
2266--error ER_INVALID_JSON_VALUE_FOR_CAST
2267insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
2268insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
2269--error ER_INVALID_JSON_VALUE_FOR_CAST
2270insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
2271insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
2272--error ER_INVALID_JSON_VALUE_FOR_CAST
2273insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
2274--error ER_INVALID_JSON_VALUE_FOR_CAST
2275insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
2276--error ER_INVALID_JSON_VALUE_FOR_CAST
2277insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
2278--error ER_INVALID_JSON_VALUE_FOR_CAST
2279insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2280--error ER_INVALID_JSON_VALUE_FOR_CAST
2281insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2282--error ER_INVALID_JSON_VALUE_FOR_CAST
2283insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2284--error ER_INVALID_JSON_VALUE_FOR_CAST
2285insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2286insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2287insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2288--error ER_INVALID_JSON_VALUE_FOR_CAST
2289insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2290insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2291insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2292
2293--error ER_INVALID_JSON_VALUE_FOR_CAST
2294insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='null';
2295--error ER_INVALID_JSON_VALUE_FOR_CAST
2296insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='bool';
2297--error ER_INVALID_JSON_VALUE_FOR_CAST
2298insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='uint';
2299--error ER_INVALID_JSON_VALUE_FOR_CAST
2300insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='int';
2301--error ER_INVALID_JSON_VALUE_FOR_CAST
2302insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='double';
2303--error ER_INVALID_JSON_VALUE_FOR_CAST
2304insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='stringany';
2305--error ER_INVALID_JSON_VALUE_FOR_CAST
2306insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='stringint';
2307--error ER_INVALID_JSON_VALUE_FOR_CAST
2308insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='stringdecimal';
2309--error ER_INVALID_JSON_VALUE_FOR_CAST
2310insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='object';
2311--error ER_INVALID_JSON_VALUE_FOR_CAST
2312insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='array';
2313--error ER_INVALID_JSON_VALUE_FOR_CAST
2314insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
2315--error ER_INVALID_JSON_VALUE_FOR_CAST
2316insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
2317--error ER_INVALID_JSON_VALUE_FOR_CAST
2318insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
2319insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
2320--error ER_INVALID_JSON_VALUE_FOR_CAST
2321insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
2322insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
2323--error ER_INVALID_JSON_VALUE_FOR_CAST
2324insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
2325--error ER_INVALID_JSON_VALUE_FOR_CAST
2326insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
2327--error ER_INVALID_JSON_VALUE_FOR_CAST
2328insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
2329--error ER_INVALID_JSON_VALUE_FOR_CAST
2330insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2331--error ER_INVALID_JSON_VALUE_FOR_CAST
2332insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2333--error ER_INVALID_JSON_VALUE_FOR_CAST
2334insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2335--error ER_INVALID_JSON_VALUE_FOR_CAST
2336insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2337insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2338insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2339--error ER_INVALID_JSON_VALUE_FOR_CAST
2340insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2341insert into at(c,_dtt) select concat('_dtt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2342insert into at(c,_dat) select concat('_dat: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2343
2344--error ER_INVALID_JSON_VALUE_FOR_CAST
2345insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='null';
2346--error ER_INVALID_JSON_VALUE_FOR_CAST
2347insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='bool';
2348--error ER_INVALID_JSON_VALUE_FOR_CAST
2349insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='uint';
2350--error ER_INVALID_JSON_VALUE_FOR_CAST
2351insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='int';
2352--error ER_INVALID_JSON_VALUE_FOR_CAST
2353insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='double';
2354--error ER_INVALID_JSON_VALUE_FOR_CAST
2355insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='stringany';
2356--error ER_INVALID_JSON_VALUE_FOR_CAST
2357insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='stringint';
2358--error ER_INVALID_JSON_VALUE_FOR_CAST
2359insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='stringdecimal';
2360--error ER_INVALID_JSON_VALUE_FOR_CAST
2361insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='object';
2362--error ER_INVALID_JSON_VALUE_FOR_CAST
2363insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='array';
2364--error ER_INVALID_JSON_VALUE_FOR_CAST
2365insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
2366--error ER_INVALID_JSON_VALUE_FOR_CAST
2367insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
2368--error ER_INVALID_JSON_VALUE_FOR_CAST
2369insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
2370insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
2371--error ER_INVALID_JSON_VALUE_FOR_CAST
2372insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
2373insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
2374--error ER_INVALID_JSON_VALUE_FOR_CAST
2375insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
2376--error ER_INVALID_JSON_VALUE_FOR_CAST
2377insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
2378--error ER_INVALID_JSON_VALUE_FOR_CAST
2379insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
2380--error ER_INVALID_JSON_VALUE_FOR_CAST
2381insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2382--error ER_INVALID_JSON_VALUE_FOR_CAST
2383insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2384--error ER_INVALID_JSON_VALUE_FOR_CAST
2385insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2386--error ER_INVALID_JSON_VALUE_FOR_CAST
2387insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2388insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2389insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2390--error ER_INVALID_JSON_VALUE_FOR_CAST
2391insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2392insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2393insert into at(c,_smp) select concat('_smp: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2394
2395--error ER_INVALID_JSON_VALUE_FOR_CAST
2396insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='null';
2397--error ER_INVALID_JSON_VALUE_FOR_CAST
2398insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='bool';
2399--error ER_INVALID_JSON_VALUE_FOR_CAST
2400insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='uint';
2401--error ER_INVALID_JSON_VALUE_FOR_CAST
2402insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='int';
2403--error ER_INVALID_JSON_VALUE_FOR_CAST
2404insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='double';
2405--error ER_INVALID_JSON_VALUE_FOR_CAST
2406insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='stringany';
2407--error ER_INVALID_JSON_VALUE_FOR_CAST
2408insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='stringint';
2409--error ER_INVALID_JSON_VALUE_FOR_CAST
2410insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='stringdecimal';
2411--error ER_INVALID_JSON_VALUE_FOR_CAST
2412insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='object';
2413--error ER_INVALID_JSON_VALUE_FOR_CAST
2414insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='array';
2415--error ER_INVALID_JSON_VALUE_FOR_CAST
2416insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
2417--error ER_INVALID_JSON_VALUE_FOR_CAST
2418insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
2419--error ER_INVALID_JSON_VALUE_FOR_CAST
2420insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
2421--error ER_INVALID_JSON_VALUE_FOR_CAST
2422insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
2423insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
2424--error ER_INVALID_JSON_VALUE_FOR_CAST
2425insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
2426--error ER_INVALID_JSON_VALUE_FOR_CAST
2427insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
2428--error ER_INVALID_JSON_VALUE_FOR_CAST
2429insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
2430--error ER_INVALID_JSON_VALUE_FOR_CAST
2431insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
2432--error ER_INVALID_JSON_VALUE_FOR_CAST
2433insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2434--error ER_INVALID_JSON_VALUE_FOR_CAST
2435insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2436--error ER_INVALID_JSON_VALUE_FOR_CAST
2437insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2438--error ER_INVALID_JSON_VALUE_FOR_CAST
2439insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2440insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2441insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2442--error ER_INVALID_JSON_VALUE_FOR_CAST
2443insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2444insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2445insert into at(c,_tim) select concat('_tim: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2446
2447--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
2448insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='null';
2449--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
2450insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='bool';
2451insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='uint';
2452insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='int';
2453insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='double';
2454--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
2455insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='stringany';
2456--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
2457insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='stringint'; # JSON_UNQUOTE helps
2458--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
2459insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='stringdecimal';
2460--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
2461insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='object';
2462--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
2463insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='array';
2464insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
2465--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
2466insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
2467--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
2468insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
2469--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
2470insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
2471--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
2472insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
2473--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
2474insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
2475--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
2476insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
2477--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
2478insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
2479insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
2480--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
2481insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2482--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
2483insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2484--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
2485insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2486--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
2487insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2488insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2489insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2490--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
2491insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2492insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2493insert into at(c,_yea) select concat('_yea: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2494
2495insert into at(c,_jsn) select concat('_jsn: ',c), json_extract(j, '$') from t;
2496
2497insert into at(c,_chr) select concat('_chr: ',c), json_extract(j, '$') from t;
2498
2499insert into at(c,_vch) select concat('_vch: ',c), json_extract(j, '$') from t;
2500
2501insert into at(c,_bin) select concat('_bin: ',c), json_extract(j, '$') from t;
2502
2503insert into at(c,_vbn) select concat('_vbn: ',c), json_extract(j, '$') from t;
2504
2505insert into at(c,_tbl) select concat('_tbl: ',c), json_extract(j, '$') from t;
2506
2507insert into at(c,_ttx) select concat('_ttx: ',c), json_extract(j, '$') from t;
2508
2509insert into at(c,_blb) select concat('_blb: ',c), json_extract(j, '$') from t;
2510
2511insert into at(c,_txt) select concat('_txt: ',c), json_extract(j, '$') from t;
2512
2513insert into at(c,_mbb) select concat('_mbb: ',c), json_extract(j, '$') from t;
2514
2515insert into at(c,_mtx) select concat('_mtx: ',c), json_extract(j, '$') from t;
2516
2517insert into at(c,_lbb) select concat('_lbb: ',c), json_extract(j, '$') from t;
2518
2519insert into at(c,_ltx) select concat('_ltx: ',c), json_extract(j, '$') from t;
2520
2521--error 1265
2522# insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='null';
2523--error 1265
2524# insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='bool';
2525--error 1265
2526#insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='uint';
2527--error 1265
2528#insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='int';
2529--error 1265
2530insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='double';
2531--error 1265
2532insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='stringany'; # needs JSON_UNQUOTE
2533--error 1265
2534insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='stringint';
2535--error 1265
2536insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='stringdecimal';
2537--error 1265
2538insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='object';
2539--error 1265
2540insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='array';
2541--error 1265
2542insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
2543--error 1265
2544insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
2545--error 1265
2546insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
2547--error 1265
2548insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
2549--error 1265
2550insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
2551--error 1265
2552insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
2553--error 1265
2554insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
2555--error 1265
2556insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
2557--error 1265
2558insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
2559--error 1265
2560insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2561--error 1265
2562insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2563--error 1265
2564insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2565--error 1265
2566insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2567insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2568insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2569--error 1265
2570insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2571insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2572insert into at(c,_enu) select concat('_enu: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2573
2574--error 1265
2575insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='null';
2576--error 1265
2577insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='bool';
2578--error 1265
2579insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='uint';
2580--error 1265
2581insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='int';
2582--error 1265
2583insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='double';
2584--error 1265
2585insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='stringany'; # needs JSON_UNQUOTE
2586--error 1265
2587insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='stringint';
2588--error 1265
2589insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='stringdecimal';
2590--error 1265
2591insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='object';
2592--error 1265
2593insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='array';
2594--error 1265
2595insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
2596--error 1265
2597insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
2598--error 1265
2599insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
2600--error 1265
2601insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
2602--error 1265
2603insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
2604--error 1265
2605insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
2606--error 1265
2607insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
2608--error 1265
2609insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
2610--error 1265
2611insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
2612--error 1265
2613insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2614--error 1265
2615insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2616--error 1265
2617insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2618--error 1265
2619insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2620insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2621insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2622--error 1265
2623insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2624insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2625insert into at(c,_set) select concat('_set: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2626
2627--error ER_CANT_CREATE_GEOMETRY_OBJECT
2628insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='null';
2629--error ER_CANT_CREATE_GEOMETRY_OBJECT
2630insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='bool';
2631--error ER_CANT_CREATE_GEOMETRY_OBJECT
2632insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='uint';
2633--error ER_CANT_CREATE_GEOMETRY_OBJECT
2634insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='int';
2635--error ER_CANT_CREATE_GEOMETRY_OBJECT
2636insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='double';
2637--error ER_CANT_CREATE_GEOMETRY_OBJECT
2638insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='stringany';
2639--error ER_CANT_CREATE_GEOMETRY_OBJECT
2640insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='stringint';
2641--error ER_CANT_CREATE_GEOMETRY_OBJECT
2642insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='stringdecimal';
2643--error ER_CANT_CREATE_GEOMETRY_OBJECT
2644insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='object';
2645--error ER_CANT_CREATE_GEOMETRY_OBJECT
2646insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='array';
2647--error ER_CANT_CREATE_GEOMETRY_OBJECT
2648insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
2649--error ER_CANT_CREATE_GEOMETRY_OBJECT
2650insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
2651--error ER_CANT_CREATE_GEOMETRY_OBJECT
2652insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
2653--error ER_CANT_CREATE_GEOMETRY_OBJECT
2654insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
2655--error ER_CANT_CREATE_GEOMETRY_OBJECT
2656insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
2657--error ER_CANT_CREATE_GEOMETRY_OBJECT
2658insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
2659--error ER_CANT_CREATE_GEOMETRY_OBJECT
2660insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
2661--error ER_CANT_CREATE_GEOMETRY_OBJECT
2662insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
2663--error ER_CANT_CREATE_GEOMETRY_OBJECT
2664insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
2665--error ER_CANT_CREATE_GEOMETRY_OBJECT
2666insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2667--error ER_CANT_CREATE_GEOMETRY_OBJECT
2668insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2669--error ER_CANT_CREATE_GEOMETRY_OBJECT
2670insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2671--error ER_CANT_CREATE_GEOMETRY_OBJECT
2672insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2673insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2674insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2675--error ER_CANT_CREATE_GEOMETRY_OBJECT
2676insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2677insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2678insert into at(c,_geo) select concat('_geo: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2679
2680--error ER_CANT_CREATE_GEOMETRY_OBJECT
2681insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='null';
2682--error ER_CANT_CREATE_GEOMETRY_OBJECT
2683insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='bool';
2684--error ER_CANT_CREATE_GEOMETRY_OBJECT
2685insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='uint';
2686--error ER_CANT_CREATE_GEOMETRY_OBJECT
2687insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='int';
2688--error ER_CANT_CREATE_GEOMETRY_OBJECT
2689insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='double';
2690--error ER_CANT_CREATE_GEOMETRY_OBJECT
2691insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='stringany';
2692--error ER_CANT_CREATE_GEOMETRY_OBJECT
2693insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='stringint';
2694--error ER_CANT_CREATE_GEOMETRY_OBJECT
2695insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='stringdecimal';
2696--error ER_CANT_CREATE_GEOMETRY_OBJECT
2697insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='object';
2698--error ER_CANT_CREATE_GEOMETRY_OBJECT
2699insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='array';
2700--error ER_CANT_CREATE_GEOMETRY_OBJECT
2701insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
2702--error ER_CANT_CREATE_GEOMETRY_OBJECT
2703insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
2704--error ER_CANT_CREATE_GEOMETRY_OBJECT
2705insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
2706--error ER_CANT_CREATE_GEOMETRY_OBJECT
2707insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
2708--error ER_CANT_CREATE_GEOMETRY_OBJECT
2709insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
2710--error ER_CANT_CREATE_GEOMETRY_OBJECT
2711insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
2712--error ER_CANT_CREATE_GEOMETRY_OBJECT
2713insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
2714--error ER_CANT_CREATE_GEOMETRY_OBJECT
2715insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
2716--error ER_CANT_CREATE_GEOMETRY_OBJECT
2717insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
2718--error ER_CANT_CREATE_GEOMETRY_OBJECT
2719insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2720--error ER_CANT_CREATE_GEOMETRY_OBJECT
2721insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2722--error ER_CANT_CREATE_GEOMETRY_OBJECT
2723insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2724--error ER_CANT_CREATE_GEOMETRY_OBJECT
2725insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2726insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2727insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2728--error ER_CANT_CREATE_GEOMETRY_OBJECT
2729insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2730insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2731insert into at(c,_pnt) select concat('_pnt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2732
2733--error ER_CANT_CREATE_GEOMETRY_OBJECT
2734insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='null';
2735--error ER_CANT_CREATE_GEOMETRY_OBJECT
2736insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='bool';
2737--error ER_CANT_CREATE_GEOMETRY_OBJECT
2738insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='uint';
2739--error ER_CANT_CREATE_GEOMETRY_OBJECT
2740insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='int';
2741--error ER_CANT_CREATE_GEOMETRY_OBJECT
2742insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='double';
2743--error ER_CANT_CREATE_GEOMETRY_OBJECT
2744insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='stringany';
2745--error ER_CANT_CREATE_GEOMETRY_OBJECT
2746insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='stringint';
2747--error ER_CANT_CREATE_GEOMETRY_OBJECT
2748insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='stringdecimal';
2749--error ER_CANT_CREATE_GEOMETRY_OBJECT
2750insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='object';
2751--error ER_CANT_CREATE_GEOMETRY_OBJECT
2752insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='array';
2753--error ER_CANT_CREATE_GEOMETRY_OBJECT
2754insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
2755--error ER_CANT_CREATE_GEOMETRY_OBJECT
2756insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
2757--error ER_CANT_CREATE_GEOMETRY_OBJECT
2758insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
2759--error ER_CANT_CREATE_GEOMETRY_OBJECT
2760insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
2761--error ER_CANT_CREATE_GEOMETRY_OBJECT
2762insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
2763--error ER_CANT_CREATE_GEOMETRY_OBJECT
2764insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
2765--error ER_CANT_CREATE_GEOMETRY_OBJECT
2766insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
2767--error ER_CANT_CREATE_GEOMETRY_OBJECT
2768insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
2769--error ER_CANT_CREATE_GEOMETRY_OBJECT
2770insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
2771--error ER_CANT_CREATE_GEOMETRY_OBJECT
2772insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2773--error ER_CANT_CREATE_GEOMETRY_OBJECT
2774insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2775--error ER_CANT_CREATE_GEOMETRY_OBJECT
2776insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2777--error ER_CANT_CREATE_GEOMETRY_OBJECT
2778insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2779insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2780insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2781--error ER_CANT_CREATE_GEOMETRY_OBJECT
2782insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2783insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2784insert into at(c,_lst) select concat('_lst: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2785
2786--error ER_CANT_CREATE_GEOMETRY_OBJECT
2787insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='null';
2788--error ER_CANT_CREATE_GEOMETRY_OBJECT
2789insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='bool';
2790--error ER_CANT_CREATE_GEOMETRY_OBJECT
2791insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='uint';
2792--error ER_CANT_CREATE_GEOMETRY_OBJECT
2793insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='int';
2794--error ER_CANT_CREATE_GEOMETRY_OBJECT
2795insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='double';
2796--error ER_CANT_CREATE_GEOMETRY_OBJECT
2797insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='stringany';
2798--error ER_CANT_CREATE_GEOMETRY_OBJECT
2799insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='stringint';
2800--error ER_CANT_CREATE_GEOMETRY_OBJECT
2801insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='stringdecimal';
2802--error ER_CANT_CREATE_GEOMETRY_OBJECT
2803insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='object';
2804--error ER_CANT_CREATE_GEOMETRY_OBJECT
2805insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='array';
2806--error ER_CANT_CREATE_GEOMETRY_OBJECT
2807insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
2808--error ER_CANT_CREATE_GEOMETRY_OBJECT
2809insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
2810--error ER_CANT_CREATE_GEOMETRY_OBJECT
2811insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
2812--error ER_CANT_CREATE_GEOMETRY_OBJECT
2813insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
2814--error ER_CANT_CREATE_GEOMETRY_OBJECT
2815insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
2816--error ER_CANT_CREATE_GEOMETRY_OBJECT
2817insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
2818--error ER_CANT_CREATE_GEOMETRY_OBJECT
2819insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
2820--error ER_CANT_CREATE_GEOMETRY_OBJECT
2821insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
2822--error ER_CANT_CREATE_GEOMETRY_OBJECT
2823insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
2824--error ER_CANT_CREATE_GEOMETRY_OBJECT
2825insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2826--error ER_CANT_CREATE_GEOMETRY_OBJECT
2827insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2828--error ER_CANT_CREATE_GEOMETRY_OBJECT
2829insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2830--error ER_CANT_CREATE_GEOMETRY_OBJECT
2831insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2832insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2833insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2834--error ER_CANT_CREATE_GEOMETRY_OBJECT
2835insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2836insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2837insert into at(c,_pol) select concat('_pol: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2838
2839--error ER_CANT_CREATE_GEOMETRY_OBJECT
2840insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='null';
2841--error ER_CANT_CREATE_GEOMETRY_OBJECT
2842insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='bool';
2843--error ER_CANT_CREATE_GEOMETRY_OBJECT
2844insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='uint';
2845--error ER_CANT_CREATE_GEOMETRY_OBJECT
2846insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='int';
2847--error ER_CANT_CREATE_GEOMETRY_OBJECT
2848insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='double';
2849--error ER_CANT_CREATE_GEOMETRY_OBJECT
2850insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='stringany';
2851--error ER_CANT_CREATE_GEOMETRY_OBJECT
2852insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='stringint';
2853--error ER_CANT_CREATE_GEOMETRY_OBJECT
2854insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='stringdecimal';
2855--error ER_CANT_CREATE_GEOMETRY_OBJECT
2856insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='object';
2857--error ER_CANT_CREATE_GEOMETRY_OBJECT
2858insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='array';
2859--error ER_CANT_CREATE_GEOMETRY_OBJECT
2860insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
2861--error ER_CANT_CREATE_GEOMETRY_OBJECT
2862insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
2863--error ER_CANT_CREATE_GEOMETRY_OBJECT
2864insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
2865--error ER_CANT_CREATE_GEOMETRY_OBJECT
2866insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
2867--error ER_CANT_CREATE_GEOMETRY_OBJECT
2868insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
2869--error ER_CANT_CREATE_GEOMETRY_OBJECT
2870insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
2871--error ER_CANT_CREATE_GEOMETRY_OBJECT
2872insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
2873--error ER_CANT_CREATE_GEOMETRY_OBJECT
2874insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
2875--error ER_CANT_CREATE_GEOMETRY_OBJECT
2876insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
2877--error ER_CANT_CREATE_GEOMETRY_OBJECT
2878insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2879--error ER_CANT_CREATE_GEOMETRY_OBJECT
2880insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2881--error ER_CANT_CREATE_GEOMETRY_OBJECT
2882insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2883--error ER_CANT_CREATE_GEOMETRY_OBJECT
2884insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2885insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2886insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2887--error ER_CANT_CREATE_GEOMETRY_OBJECT
2888insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2889insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2890insert into at(c,_mpt) select concat('_mpt: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2891
2892--error ER_CANT_CREATE_GEOMETRY_OBJECT
2893insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='null';
2894--error ER_CANT_CREATE_GEOMETRY_OBJECT
2895insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='bool';
2896--error ER_CANT_CREATE_GEOMETRY_OBJECT
2897insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='uint';
2898--error ER_CANT_CREATE_GEOMETRY_OBJECT
2899insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='int';
2900--error ER_CANT_CREATE_GEOMETRY_OBJECT
2901insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='double';
2902--error ER_CANT_CREATE_GEOMETRY_OBJECT
2903insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='stringany';
2904--error ER_CANT_CREATE_GEOMETRY_OBJECT
2905insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='stringint';
2906--error ER_CANT_CREATE_GEOMETRY_OBJECT
2907insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='stringdecimal';
2908--error ER_CANT_CREATE_GEOMETRY_OBJECT
2909insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='object';
2910--error ER_CANT_CREATE_GEOMETRY_OBJECT
2911insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='array';
2912--error ER_CANT_CREATE_GEOMETRY_OBJECT
2913insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
2914--error ER_CANT_CREATE_GEOMETRY_OBJECT
2915insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
2916--error ER_CANT_CREATE_GEOMETRY_OBJECT
2917insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
2918--error ER_CANT_CREATE_GEOMETRY_OBJECT
2919insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
2920--error ER_CANT_CREATE_GEOMETRY_OBJECT
2921insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
2922--error ER_CANT_CREATE_GEOMETRY_OBJECT
2923insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
2924--error ER_CANT_CREATE_GEOMETRY_OBJECT
2925insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
2926--error ER_CANT_CREATE_GEOMETRY_OBJECT
2927insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
2928--error ER_CANT_CREATE_GEOMETRY_OBJECT
2929insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
2930--error ER_CANT_CREATE_GEOMETRY_OBJECT
2931insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2932--error ER_CANT_CREATE_GEOMETRY_OBJECT
2933insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2934--error ER_CANT_CREATE_GEOMETRY_OBJECT
2935insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2936--error ER_CANT_CREATE_GEOMETRY_OBJECT
2937insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2938insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2939insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2940--error ER_CANT_CREATE_GEOMETRY_OBJECT
2941insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2942insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2943insert into at(c,_mls) select concat('_mls: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2944
2945--error ER_CANT_CREATE_GEOMETRY_OBJECT
2946insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='null';
2947--error ER_CANT_CREATE_GEOMETRY_OBJECT
2948insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='bool';
2949--error ER_CANT_CREATE_GEOMETRY_OBJECT
2950insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='uint';
2951--error ER_CANT_CREATE_GEOMETRY_OBJECT
2952insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='int';
2953--error ER_CANT_CREATE_GEOMETRY_OBJECT
2954insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='double';
2955--error ER_CANT_CREATE_GEOMETRY_OBJECT
2956insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='stringany';
2957--error ER_CANT_CREATE_GEOMETRY_OBJECT
2958insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='stringint';
2959--error ER_CANT_CREATE_GEOMETRY_OBJECT
2960insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='stringdecimal';
2961--error ER_CANT_CREATE_GEOMETRY_OBJECT
2962insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='object';
2963--error ER_CANT_CREATE_GEOMETRY_OBJECT
2964insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='array';
2965--error ER_CANT_CREATE_GEOMETRY_OBJECT
2966insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
2967--error ER_CANT_CREATE_GEOMETRY_OBJECT
2968insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
2969--error ER_CANT_CREATE_GEOMETRY_OBJECT
2970insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
2971--error ER_CANT_CREATE_GEOMETRY_OBJECT
2972insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
2973--error ER_CANT_CREATE_GEOMETRY_OBJECT
2974insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
2975--error ER_CANT_CREATE_GEOMETRY_OBJECT
2976insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
2977--error ER_CANT_CREATE_GEOMETRY_OBJECT
2978insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
2979--error ER_CANT_CREATE_GEOMETRY_OBJECT
2980insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
2981--error ER_CANT_CREATE_GEOMETRY_OBJECT
2982insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
2983--error ER_CANT_CREATE_GEOMETRY_OBJECT
2984insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
2985--error ER_CANT_CREATE_GEOMETRY_OBJECT
2986insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
2987--error ER_CANT_CREATE_GEOMETRY_OBJECT
2988insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
2989--error ER_CANT_CREATE_GEOMETRY_OBJECT
2990insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
2991insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
2992insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
2993--error ER_CANT_CREATE_GEOMETRY_OBJECT
2994insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
2995insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
2996insert into at(c,_mpy) select concat('_mpy: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
2997
2998--error ER_CANT_CREATE_GEOMETRY_OBJECT
2999insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='null';
3000--error ER_CANT_CREATE_GEOMETRY_OBJECT
3001insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='bool';
3002--error ER_CANT_CREATE_GEOMETRY_OBJECT
3003insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='uint';
3004--error ER_CANT_CREATE_GEOMETRY_OBJECT
3005insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='int';
3006--error ER_CANT_CREATE_GEOMETRY_OBJECT
3007insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='double';
3008--error ER_CANT_CREATE_GEOMETRY_OBJECT
3009insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='stringany';
3010--error ER_CANT_CREATE_GEOMETRY_OBJECT
3011insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='stringint';
3012--error ER_CANT_CREATE_GEOMETRY_OBJECT
3013insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='stringdecimal';
3014--error ER_CANT_CREATE_GEOMETRY_OBJECT
3015insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='object';
3016--error ER_CANT_CREATE_GEOMETRY_OBJECT
3017insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='array';
3018--error ER_CANT_CREATE_GEOMETRY_OBJECT
3019insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_decimal';
3020--error ER_CANT_CREATE_GEOMETRY_OBJECT
3021insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_set';
3022--error ER_CANT_CREATE_GEOMETRY_OBJECT
3023insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_enum';
3024--error ER_CANT_CREATE_GEOMETRY_OBJECT
3025insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_date';
3026--error ER_CANT_CREATE_GEOMETRY_OBJECT
3027insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_time';
3028--error ER_CANT_CREATE_GEOMETRY_OBJECT
3029insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_datetime';
3030--error ER_CANT_CREATE_GEOMETRY_OBJECT
3031insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_geom';
3032--error ER_CANT_CREATE_GEOMETRY_OBJECT
3033insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_bit';
3034--error ER_CANT_CREATE_GEOMETRY_OBJECT
3035insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_year';
3036--error ER_CANT_CREATE_GEOMETRY_OBJECT
3037insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_blob';
3038--error ER_CANT_CREATE_GEOMETRY_OBJECT
3039insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_longblob';
3040--error ER_CANT_CREATE_GEOMETRY_OBJECT
3041insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_mediumblob';
3042--error ER_CANT_CREATE_GEOMETRY_OBJECT
3043insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_tinyblob';
3044insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varbinary';
3045insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_binary';
3046--error ER_CANT_CREATE_GEOMETRY_OBJECT
3047insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_varchar';
3048insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_string';
3049insert into at(c,_gco) select concat('_gco: ',c), json_extract(j, '$') from t where c='opaque_mysql_type_var_string';
3050
3051insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='bool') from t where c='bool';
3052
3053--echo # ----------------------------------------------------------------------
3054--echo #  I N S E R T   F R O M   J S O N   S U B S E L E C T
3055--echo # ----------------------------------------------------------------------
3056insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='null') from t where c='null';
3057insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='bool') from t where c='bool';
3058insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='uint') from t where c='uint';
3059insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='int') from t where c='int';
3060insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='double') from t where c='double';
3061insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='stringany') from t where c='stringany';
3062insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='stringint') from t where c='stringint';
3063insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3064insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='object') from t where c='object';
3065insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='array') from t where c='array';
3066insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3067insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3068insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3069--error ER_DATA_TOO_LONG
3070insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3071--error ER_DATA_TOO_LONG
3072insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3073--error ER_DATA_TOO_LONG
3074insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3075--error ER_DATA_TOO_LONG
3076insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3077--error ER_DATA_TOO_LONG
3078insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3079insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3080--error ER_DATA_TOO_LONG
3081insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3082--error ER_DATA_TOO_LONG
3083insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3084--error ER_DATA_TOO_LONG
3085insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3086--error ER_DATA_TOO_LONG
3087insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3088insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3089insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3090--error ER_DATA_TOO_LONG
3091insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3092insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3093insert into at(c,_bit) select concat('_bit: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3094
3095--error ER_INVALID_JSON_VALUE_FOR_CAST
3096insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='null') from t where c='null';
3097insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='bool') from t where c='bool';
3098insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='uint') from t where c='uint';
3099insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='int') from t where c='int';
3100insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='double') from t where c='double';
3101--error ER_INVALID_JSON_VALUE_FOR_CAST
3102insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='stringany') from t where c='stringany';
3103insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='stringint') from t where c='stringint';
3104--error ER_INVALID_JSON_VALUE_FOR_CAST
3105insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal'; # needs cast(j as decimal)
3106--error ER_INVALID_JSON_VALUE_FOR_CAST
3107insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='object') from t where c='object';
3108--error ER_INVALID_JSON_VALUE_FOR_CAST
3109insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='array') from t where c='array';
3110insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3111--error ER_INVALID_JSON_VALUE_FOR_CAST
3112insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3113--error ER_INVALID_JSON_VALUE_FOR_CAST
3114insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3115--error ER_INVALID_JSON_VALUE_FOR_CAST
3116insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3117--error ER_INVALID_JSON_VALUE_FOR_CAST
3118insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3119--error ER_INVALID_JSON_VALUE_FOR_CAST
3120insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3121--error ER_INVALID_JSON_VALUE_FOR_CAST
3122insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3123--error ER_INVALID_JSON_VALUE_FOR_CAST
3124insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3125--error ER_WARN_DATA_OUT_OF_RANGE
3126insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3127--error ER_INVALID_JSON_VALUE_FOR_CAST
3128insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3129--error ER_INVALID_JSON_VALUE_FOR_CAST
3130insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3131--error ER_INVALID_JSON_VALUE_FOR_CAST
3132insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3133--error ER_INVALID_JSON_VALUE_FOR_CAST
3134insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3135insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3136insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3137--error ER_INVALID_JSON_VALUE_FOR_CAST
3138insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3139insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3140insert into at(c,_tin) select concat('_tin: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3141
3142--error ER_INVALID_JSON_VALUE_FOR_CAST
3143insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='null') from t where c='null';
3144insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='bool') from t where c='bool';
3145insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='uint') from t where c='uint';
3146insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='int') from t where c='int';
3147insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='double') from t where c='double';
3148--error ER_INVALID_JSON_VALUE_FOR_CAST
3149insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='stringany') from t where c='stringany';
3150insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='stringint') from t where c='stringint';
3151--error ER_INVALID_JSON_VALUE_FOR_CAST
3152insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3153--error ER_INVALID_JSON_VALUE_FOR_CAST
3154insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='object') from t where c='object';
3155--error ER_INVALID_JSON_VALUE_FOR_CAST
3156insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='array') from t where c='array';
3157insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3158--error ER_INVALID_JSON_VALUE_FOR_CAST
3159insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3160--error ER_INVALID_JSON_VALUE_FOR_CAST
3161insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3162--error ER_INVALID_JSON_VALUE_FOR_CAST
3163insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3164--error ER_INVALID_JSON_VALUE_FOR_CAST
3165insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3166--error ER_INVALID_JSON_VALUE_FOR_CAST
3167insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3168--error ER_INVALID_JSON_VALUE_FOR_CAST
3169insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3170--error ER_INVALID_JSON_VALUE_FOR_CAST
3171insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3172--error ER_WARN_DATA_OUT_OF_RANGE
3173insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3174--error ER_INVALID_JSON_VALUE_FOR_CAST
3175insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3176--error ER_INVALID_JSON_VALUE_FOR_CAST
3177insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3178--error ER_INVALID_JSON_VALUE_FOR_CAST
3179insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3180--error ER_INVALID_JSON_VALUE_FOR_CAST
3181insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3182insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3183insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3184--error ER_INVALID_JSON_VALUE_FOR_CAST
3185insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3186insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3187insert into at(c,_boo) select concat('_boo: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3188
3189--error ER_INVALID_JSON_VALUE_FOR_CAST
3190insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='null') from t where c='null';
3191insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='bool') from t where c='bool';
3192insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='uint') from t where c='uint';
3193insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='int') from t where c='int';
3194insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='double') from t where c='double';
3195--error ER_INVALID_JSON_VALUE_FOR_CAST
3196insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='stringany') from t where c='stringany';
3197insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='stringint') from t where c='stringint';
3198--error ER_INVALID_JSON_VALUE_FOR_CAST
3199insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3200--error ER_INVALID_JSON_VALUE_FOR_CAST
3201insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='object') from t where c='object';
3202--error ER_INVALID_JSON_VALUE_FOR_CAST
3203insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='array') from t where c='array';
3204insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3205--error ER_INVALID_JSON_VALUE_FOR_CAST
3206insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3207--error ER_INVALID_JSON_VALUE_FOR_CAST
3208insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3209--error ER_INVALID_JSON_VALUE_FOR_CAST
3210insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3211--error ER_INVALID_JSON_VALUE_FOR_CAST
3212insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3213--error ER_INVALID_JSON_VALUE_FOR_CAST
3214--error ER_INVALID_JSON_VALUE_FOR_CAST
3215insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3216--error ER_INVALID_JSON_VALUE_FOR_CAST
3217insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3218--error ER_INVALID_JSON_VALUE_FOR_CAST
3219insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3220insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3221--error ER_INVALID_JSON_VALUE_FOR_CAST
3222insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3223--error ER_INVALID_JSON_VALUE_FOR_CAST
3224insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3225--error ER_INVALID_JSON_VALUE_FOR_CAST
3226insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3227--error ER_INVALID_JSON_VALUE_FOR_CAST
3228insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3229insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3230insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3231--error ER_INVALID_JSON_VALUE_FOR_CAST
3232insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3233insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3234insert into at(c,_sms) select concat('_sms: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3235
3236--error ER_INVALID_JSON_VALUE_FOR_CAST
3237insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='null') from t where c='null';
3238insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='bool') from t where c='bool';
3239insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='uint') from t where c='uint';
3240insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='int') from t where c='int';
3241insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='double') from t where c='double';
3242--error ER_INVALID_JSON_VALUE_FOR_CAST
3243insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='stringany') from t where c='stringany';
3244insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='stringint') from t where c='stringint';
3245--error ER_INVALID_JSON_VALUE_FOR_CAST
3246insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3247--error ER_INVALID_JSON_VALUE_FOR_CAST
3248insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='object') from t where c='object';
3249--error ER_INVALID_JSON_VALUE_FOR_CAST
3250insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='array') from t where c='array';
3251insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3252--error ER_INVALID_JSON_VALUE_FOR_CAST
3253insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3254--error ER_INVALID_JSON_VALUE_FOR_CAST
3255insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3256--error ER_INVALID_JSON_VALUE_FOR_CAST
3257insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3258--error ER_INVALID_JSON_VALUE_FOR_CAST
3259insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3260--error ER_INVALID_JSON_VALUE_FOR_CAST
3261insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3262--error ER_INVALID_JSON_VALUE_FOR_CAST
3263insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3264--error ER_INVALID_JSON_VALUE_FOR_CAST
3265insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3266insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3267--error ER_INVALID_JSON_VALUE_FOR_CAST
3268insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3269--error ER_INVALID_JSON_VALUE_FOR_CAST
3270insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3271--error ER_INVALID_JSON_VALUE_FOR_CAST
3272insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3273--error ER_INVALID_JSON_VALUE_FOR_CAST
3274insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3275insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3276insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3277--error ER_INVALID_JSON_VALUE_FOR_CAST
3278insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3279insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3280insert into at(c,_smu) select concat('_smu: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3281
3282--error ER_INVALID_JSON_VALUE_FOR_CAST
3283insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='null') from t where c='null';
3284insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='bool') from t where c='bool';
3285insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='uint') from t where c='uint';
3286insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='int') from t where c='int';
3287insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='double') from t where c='double';
3288--error ER_INVALID_JSON_VALUE_FOR_CAST
3289insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='stringany') from t where c='stringany';
3290insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='stringint') from t where c='stringint';
3291--error ER_INVALID_JSON_VALUE_FOR_CAST
3292insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3293--error ER_INVALID_JSON_VALUE_FOR_CAST
3294insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='object') from t where c='object';
3295--error ER_INVALID_JSON_VALUE_FOR_CAST
3296insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='array') from t where c='array';
3297insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3298--error ER_INVALID_JSON_VALUE_FOR_CAST
3299insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3300--error ER_INVALID_JSON_VALUE_FOR_CAST
3301insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3302--error ER_INVALID_JSON_VALUE_FOR_CAST
3303insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3304--error ER_INVALID_JSON_VALUE_FOR_CAST
3305insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3306--error ER_INVALID_JSON_VALUE_FOR_CAST
3307insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3308--error ER_INVALID_JSON_VALUE_FOR_CAST
3309insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3310--error ER_INVALID_JSON_VALUE_FOR_CAST
3311insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3312insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3313--error ER_INVALID_JSON_VALUE_FOR_CAST
3314insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3315--error ER_INVALID_JSON_VALUE_FOR_CAST
3316insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3317--error ER_INVALID_JSON_VALUE_FOR_CAST
3318insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3319--error ER_INVALID_JSON_VALUE_FOR_CAST
3320insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3321insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3322insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3323--error ER_INVALID_JSON_VALUE_FOR_CAST
3324insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3325insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3326insert into at(c,_mes) select concat('_mes: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3327
3328--error ER_INVALID_JSON_VALUE_FOR_CAST
3329insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='null') from t where c='null';
3330insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='bool') from t where c='bool';
3331insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='uint') from t where c='uint';
3332insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='int') from t where c='int';
3333insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='double') from t where c='double';
3334--error ER_INVALID_JSON_VALUE_FOR_CAST
3335insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='stringany') from t where c='stringany';
3336insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='stringint') from t where c='stringint';
3337--error ER_INVALID_JSON_VALUE_FOR_CAST
3338insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3339--error ER_INVALID_JSON_VALUE_FOR_CAST
3340insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='object') from t where c='object';
3341--error ER_INVALID_JSON_VALUE_FOR_CAST
3342insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='array') from t where c='array';
3343insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3344--error ER_INVALID_JSON_VALUE_FOR_CAST
3345insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3346--error ER_INVALID_JSON_VALUE_FOR_CAST
3347insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3348--error ER_INVALID_JSON_VALUE_FOR_CAST
3349insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3350--error ER_INVALID_JSON_VALUE_FOR_CAST
3351insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3352--error ER_INVALID_JSON_VALUE_FOR_CAST
3353insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3354--error ER_INVALID_JSON_VALUE_FOR_CAST
3355insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3356--error ER_INVALID_JSON_VALUE_FOR_CAST
3357insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3358insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3359--error ER_INVALID_JSON_VALUE_FOR_CAST
3360insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3361--error ER_INVALID_JSON_VALUE_FOR_CAST
3362insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3363--error ER_INVALID_JSON_VALUE_FOR_CAST
3364insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3365--error ER_INVALID_JSON_VALUE_FOR_CAST
3366insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3367insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3368insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3369--error ER_INVALID_JSON_VALUE_FOR_CAST
3370insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3371insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3372insert into at(c,_meu) select concat('_meu: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3373
3374--error ER_INVALID_JSON_VALUE_FOR_CAST
3375insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='null') from t where c='null';
3376insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='bool') from t where c='bool';
3377insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='uint') from t where c='uint';
3378insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='int') from t where c='int';
3379insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='double') from t where c='double';
3380--error ER_INVALID_JSON_VALUE_FOR_CAST
3381insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='stringany') from t where c='stringany';
3382insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='stringint') from t where c='stringint';
3383--error ER_INVALID_JSON_VALUE_FOR_CAST
3384insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3385--error ER_INVALID_JSON_VALUE_FOR_CAST
3386insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='object') from t where c='object';
3387--error ER_INVALID_JSON_VALUE_FOR_CAST
3388insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='array') from t where c='array';
3389insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3390--error ER_INVALID_JSON_VALUE_FOR_CAST
3391insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3392--error ER_INVALID_JSON_VALUE_FOR_CAST
3393insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3394--error ER_INVALID_JSON_VALUE_FOR_CAST
3395insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3396--error ER_INVALID_JSON_VALUE_FOR_CAST
3397insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3398--error ER_INVALID_JSON_VALUE_FOR_CAST
3399insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3400--error ER_INVALID_JSON_VALUE_FOR_CAST
3401insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3402--error ER_INVALID_JSON_VALUE_FOR_CAST
3403insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3404insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3405--error ER_INVALID_JSON_VALUE_FOR_CAST
3406insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3407--error ER_INVALID_JSON_VALUE_FOR_CAST
3408insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3409--error ER_INVALID_JSON_VALUE_FOR_CAST
3410insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3411--error ER_INVALID_JSON_VALUE_FOR_CAST
3412insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3413insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3414insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3415--error ER_INVALID_JSON_VALUE_FOR_CAST
3416insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3417insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3418insert into at(c,_ins) select concat('_ins: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3419
3420--error ER_INVALID_JSON_VALUE_FOR_CAST
3421insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='null') from t where c='null';
3422insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='bool') from t where c='bool';
3423insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='uint') from t where c='uint';
3424insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='int') from t where c='int';
3425insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='double') from t where c='double';
3426--error ER_INVALID_JSON_VALUE_FOR_CAST
3427insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='stringany') from t where c='stringany';
3428insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='stringint') from t where c='stringint';
3429--error ER_INVALID_JSON_VALUE_FOR_CAST
3430insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3431--error ER_INVALID_JSON_VALUE_FOR_CAST
3432insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='object') from t where c='object';
3433--error ER_INVALID_JSON_VALUE_FOR_CAST
3434insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='array') from t where c='array';
3435insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3436--error ER_INVALID_JSON_VALUE_FOR_CAST
3437insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3438--error ER_INVALID_JSON_VALUE_FOR_CAST
3439insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3440--error ER_INVALID_JSON_VALUE_FOR_CAST
3441insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3442--error ER_INVALID_JSON_VALUE_FOR_CAST
3443insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3444--error ER_INVALID_JSON_VALUE_FOR_CAST
3445insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3446--error ER_INVALID_JSON_VALUE_FOR_CAST
3447insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3448--error ER_INVALID_JSON_VALUE_FOR_CAST
3449insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3450insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3451--error ER_INVALID_JSON_VALUE_FOR_CAST
3452insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3453--error ER_INVALID_JSON_VALUE_FOR_CAST
3454insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3455--error ER_INVALID_JSON_VALUE_FOR_CAST
3456insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3457--error ER_INVALID_JSON_VALUE_FOR_CAST
3458insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3459insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3460insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3461--error ER_INVALID_JSON_VALUE_FOR_CAST
3462insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3463insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3464insert into at(c,_inu) select concat('_inu: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3465
3466--error ER_INVALID_JSON_VALUE_FOR_CAST
3467insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='null') from t where c='null';
3468insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='bool') from t where c='bool';
3469insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='uint') from t where c='uint';
3470insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='int') from t where c='int';
3471insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='double') from t where c='double';
3472--error ER_INVALID_JSON_VALUE_FOR_CAST
3473insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='stringany') from t where c='stringany';
3474insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='stringint') from t where c='stringint';
3475--error ER_INVALID_JSON_VALUE_FOR_CAST
3476insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3477--error ER_INVALID_JSON_VALUE_FOR_CAST
3478insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='object') from t where c='object';
3479--error ER_INVALID_JSON_VALUE_FOR_CAST
3480insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='array') from t where c='array';
3481insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3482--error ER_INVALID_JSON_VALUE_FOR_CAST
3483insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3484--error ER_INVALID_JSON_VALUE_FOR_CAST
3485insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3486--error ER_INVALID_JSON_VALUE_FOR_CAST
3487insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3488--error ER_INVALID_JSON_VALUE_FOR_CAST
3489insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3490--error ER_INVALID_JSON_VALUE_FOR_CAST
3491insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3492--error ER_INVALID_JSON_VALUE_FOR_CAST
3493insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3494--error ER_INVALID_JSON_VALUE_FOR_CAST
3495insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3496insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3497--error ER_INVALID_JSON_VALUE_FOR_CAST
3498insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3499--error ER_INVALID_JSON_VALUE_FOR_CAST
3500insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3501--error ER_INVALID_JSON_VALUE_FOR_CAST
3502insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3503--error ER_INVALID_JSON_VALUE_FOR_CAST
3504insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3505insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3506insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3507--error ER_INVALID_JSON_VALUE_FOR_CAST
3508insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3509insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3510insert into at(c,_bis) select concat('_bis: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3511
3512--error ER_INVALID_JSON_VALUE_FOR_CAST
3513insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='null') from t where c='null';
3514insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='bool') from t where c='bool';
3515insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='uint') from t where c='uint';
3516insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='int') from t where c='int';
3517insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='double') from t where c='double';
3518--error ER_INVALID_JSON_VALUE_FOR_CAST
3519insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='stringany') from t where c='stringany';
3520insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='stringint') from t where c='stringint';
3521--error ER_INVALID_JSON_VALUE_FOR_CAST
3522insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3523--error ER_INVALID_JSON_VALUE_FOR_CAST
3524insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='object') from t where c='object';
3525--error ER_INVALID_JSON_VALUE_FOR_CAST
3526insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='array') from t where c='array';
3527insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3528--error ER_INVALID_JSON_VALUE_FOR_CAST
3529insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3530--error ER_INVALID_JSON_VALUE_FOR_CAST
3531insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3532--error ER_INVALID_JSON_VALUE_FOR_CAST
3533insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3534--error ER_INVALID_JSON_VALUE_FOR_CAST
3535insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3536--error ER_INVALID_JSON_VALUE_FOR_CAST
3537insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3538--error ER_INVALID_JSON_VALUE_FOR_CAST
3539insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3540--error ER_INVALID_JSON_VALUE_FOR_CAST
3541insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3542insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3543--error ER_INVALID_JSON_VALUE_FOR_CAST
3544insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3545--error ER_INVALID_JSON_VALUE_FOR_CAST
3546insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3547--error ER_INVALID_JSON_VALUE_FOR_CAST
3548insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3549--error ER_INVALID_JSON_VALUE_FOR_CAST
3550insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3551insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3552insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3553--error ER_INVALID_JSON_VALUE_FOR_CAST
3554insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3555insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3556insert into at(c,_biu) select concat('_biu: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3557
3558--error ER_INVALID_JSON_VALUE_FOR_CAST
3559insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='null') from t where c='null';
3560insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='bool') from t where c='bool';
3561insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='uint') from t where c='uint';
3562insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='int') from t where c='int';
3563insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='double') from t where c='double';
3564--error ER_INVALID_JSON_VALUE_FOR_CAST
3565insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='stringany') from t where c='stringany';
3566insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='stringint') from t where c='stringint';
3567insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3568--error ER_INVALID_JSON_VALUE_FOR_CAST
3569insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='object') from t where c='object';
3570--error ER_INVALID_JSON_VALUE_FOR_CAST
3571insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='array') from t where c='array';
3572insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3573--error ER_INVALID_JSON_VALUE_FOR_CAST
3574insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3575--error ER_INVALID_JSON_VALUE_FOR_CAST
3576insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3577--error ER_INVALID_JSON_VALUE_FOR_CAST
3578insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3579--error ER_INVALID_JSON_VALUE_FOR_CAST
3580insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3581--error ER_INVALID_JSON_VALUE_FOR_CAST
3582insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3583--error ER_INVALID_JSON_VALUE_FOR_CAST
3584insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3585--error ER_INVALID_JSON_VALUE_FOR_CAST
3586insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3587--error ER_WARN_DATA_OUT_OF_RANGE
3588insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3589--error ER_INVALID_JSON_VALUE_FOR_CAST
3590insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3591--error ER_INVALID_JSON_VALUE_FOR_CAST
3592insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3593--error ER_INVALID_JSON_VALUE_FOR_CAST
3594insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3595--error ER_INVALID_JSON_VALUE_FOR_CAST
3596insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3597insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3598insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3599--error ER_INVALID_JSON_VALUE_FOR_CAST
3600insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3601insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3602insert into at(c,_dec) select concat('_dec: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3603
3604--error ER_INVALID_JSON_VALUE_FOR_CAST
3605insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='null') from t where c='null';
3606insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='bool') from t where c='bool';
3607insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='uint') from t where c='uint';
3608insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='int') from t where c='int';
3609insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='double') from t where c='double';
3610--error ER_INVALID_JSON_VALUE_FOR_CAST
3611insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='stringany') from t where c='stringany';
3612insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='stringint') from t where c='stringint';
3613insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3614--error ER_INVALID_JSON_VALUE_FOR_CAST
3615insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='object') from t where c='object';
3616--error ER_INVALID_JSON_VALUE_FOR_CAST
3617insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='array') from t where c='array';
3618insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3619--error ER_INVALID_JSON_VALUE_FOR_CAST
3620insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3621--error ER_INVALID_JSON_VALUE_FOR_CAST
3622insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3623--error ER_INVALID_JSON_VALUE_FOR_CAST
3624insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3625--error ER_INVALID_JSON_VALUE_FOR_CAST
3626insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3627--error ER_INVALID_JSON_VALUE_FOR_CAST
3628insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3629--error ER_INVALID_JSON_VALUE_FOR_CAST
3630insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3631--error ER_INVALID_JSON_VALUE_FOR_CAST
3632insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3633insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3634--error ER_INVALID_JSON_VALUE_FOR_CAST
3635insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3636--error ER_INVALID_JSON_VALUE_FOR_CAST
3637insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3638--error ER_INVALID_JSON_VALUE_FOR_CAST
3639insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3640--error ER_INVALID_JSON_VALUE_FOR_CAST
3641insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3642insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3643insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3644--error ER_INVALID_JSON_VALUE_FOR_CAST
3645insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3646insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3647insert into at(c,_flo) select concat('_flo: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3648
3649--error ER_INVALID_JSON_VALUE_FOR_CAST
3650insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='null') from t where c='null';
3651insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='bool') from t where c='bool';
3652insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='uint') from t where c='uint';
3653insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='int') from t where c='int';
3654insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='double') from t where c='double';
3655--error ER_INVALID_JSON_VALUE_FOR_CAST
3656insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='stringany') from t where c='stringany';
3657insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='stringint') from t where c='stringint';
3658insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3659--error ER_INVALID_JSON_VALUE_FOR_CAST
3660insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='object') from t where c='object';
3661--error ER_INVALID_JSON_VALUE_FOR_CAST
3662insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='array') from t where c='array';
3663insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3664--error ER_INVALID_JSON_VALUE_FOR_CAST
3665insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3666--error ER_INVALID_JSON_VALUE_FOR_CAST
3667insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3668--error ER_INVALID_JSON_VALUE_FOR_CAST
3669insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3670--error ER_INVALID_JSON_VALUE_FOR_CAST
3671insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3672--error ER_INVALID_JSON_VALUE_FOR_CAST
3673insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3674--error ER_INVALID_JSON_VALUE_FOR_CAST
3675insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3676--error ER_INVALID_JSON_VALUE_FOR_CAST
3677insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3678insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3679--error ER_INVALID_JSON_VALUE_FOR_CAST
3680insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3681--error ER_INVALID_JSON_VALUE_FOR_CAST
3682insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3683--error ER_INVALID_JSON_VALUE_FOR_CAST
3684insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3685--error ER_INVALID_JSON_VALUE_FOR_CAST
3686insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3687insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3688insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3689--error ER_INVALID_JSON_VALUE_FOR_CAST
3690insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3691insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3692insert into at(c,_dou) select concat('_dou: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3693
3694--error ER_INVALID_JSON_VALUE_FOR_CAST
3695insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='null') from t where c='null';
3696--error ER_INVALID_JSON_VALUE_FOR_CAST
3697insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='bool') from t where c='bool';
3698--error ER_INVALID_JSON_VALUE_FOR_CAST
3699insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='uint') from t where c='uint';
3700--error ER_INVALID_JSON_VALUE_FOR_CAST
3701insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='int') from t where c='int';
3702--error ER_INVALID_JSON_VALUE_FOR_CAST
3703insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='double') from t where c='double';
3704--error ER_INVALID_JSON_VALUE_FOR_CAST
3705insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='stringany') from t where c='stringany';
3706--error ER_INVALID_JSON_VALUE_FOR_CAST
3707insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='stringint') from t where c='stringint';
3708--error ER_INVALID_JSON_VALUE_FOR_CAST
3709insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3710--error ER_INVALID_JSON_VALUE_FOR_CAST
3711insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='object') from t where c='object';
3712--error ER_INVALID_JSON_VALUE_FOR_CAST
3713insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='array') from t where c='array';
3714--error ER_INVALID_JSON_VALUE_FOR_CAST
3715insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3716--error ER_INVALID_JSON_VALUE_FOR_CAST
3717insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3718--error ER_INVALID_JSON_VALUE_FOR_CAST
3719insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3720insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3721--error ER_INVALID_JSON_VALUE_FOR_CAST
3722insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3723insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3724--error ER_INVALID_JSON_VALUE_FOR_CAST
3725insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3726--error ER_INVALID_JSON_VALUE_FOR_CAST
3727insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3728--error ER_INVALID_JSON_VALUE_FOR_CAST
3729insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3730--error ER_INVALID_JSON_VALUE_FOR_CAST
3731insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3732--error ER_INVALID_JSON_VALUE_FOR_CAST
3733insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3734--error ER_INVALID_JSON_VALUE_FOR_CAST
3735insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3736--error ER_INVALID_JSON_VALUE_FOR_CAST
3737insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3738insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3739insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3740--error ER_INVALID_JSON_VALUE_FOR_CAST
3741insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3742insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3743insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3744
3745--error ER_INVALID_JSON_VALUE_FOR_CAST
3746insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='null') from t where c='null';
3747--error ER_INVALID_JSON_VALUE_FOR_CAST
3748insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='bool') from t where c='bool';
3749--error ER_INVALID_JSON_VALUE_FOR_CAST
3750insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='uint') from t where c='uint';
3751--error ER_INVALID_JSON_VALUE_FOR_CAST
3752insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='int') from t where c='int';
3753--error ER_INVALID_JSON_VALUE_FOR_CAST
3754insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='double') from t where c='double';
3755--error ER_INVALID_JSON_VALUE_FOR_CAST
3756insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='stringany') from t where c='stringany';
3757--error ER_INVALID_JSON_VALUE_FOR_CAST
3758insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='stringint') from t where c='stringint';
3759--error ER_INVALID_JSON_VALUE_FOR_CAST
3760insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3761--error ER_INVALID_JSON_VALUE_FOR_CAST
3762insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='object') from t where c='object';
3763--error ER_INVALID_JSON_VALUE_FOR_CAST
3764insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='array') from t where c='array';
3765--error ER_INVALID_JSON_VALUE_FOR_CAST
3766insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3767--error ER_INVALID_JSON_VALUE_FOR_CAST
3768insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3769--error ER_INVALID_JSON_VALUE_FOR_CAST
3770insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3771insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3772--error ER_INVALID_JSON_VALUE_FOR_CAST
3773insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3774insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3775--error ER_INVALID_JSON_VALUE_FOR_CAST
3776insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3777--error ER_INVALID_JSON_VALUE_FOR_CAST
3778insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3779--error ER_INVALID_JSON_VALUE_FOR_CAST
3780insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3781--error ER_INVALID_JSON_VALUE_FOR_CAST
3782insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3783--error ER_INVALID_JSON_VALUE_FOR_CAST
3784insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3785--error ER_INVALID_JSON_VALUE_FOR_CAST
3786insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3787--error ER_INVALID_JSON_VALUE_FOR_CAST
3788insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3789insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3790insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3791--error ER_INVALID_JSON_VALUE_FOR_CAST
3792insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3793insert into at(c,_dtt) select concat('_dtt: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3794insert into at(c,_dat) select concat('_dat: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3795
3796--error ER_INVALID_JSON_VALUE_FOR_CAST
3797insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='null') from t where c='null';
3798--error ER_INVALID_JSON_VALUE_FOR_CAST
3799insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='bool') from t where c='bool';
3800--error ER_INVALID_JSON_VALUE_FOR_CAST
3801insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='uint') from t where c='uint';
3802--error ER_INVALID_JSON_VALUE_FOR_CAST
3803insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='int') from t where c='int';
3804--error ER_INVALID_JSON_VALUE_FOR_CAST
3805insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='double') from t where c='double';
3806--error ER_INVALID_JSON_VALUE_FOR_CAST
3807insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='stringany') from t where c='stringany';
3808--error ER_INVALID_JSON_VALUE_FOR_CAST
3809insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='stringint') from t where c='stringint';
3810--error ER_INVALID_JSON_VALUE_FOR_CAST
3811insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3812--error ER_INVALID_JSON_VALUE_FOR_CAST
3813insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='object') from t where c='object';
3814--error ER_INVALID_JSON_VALUE_FOR_CAST
3815insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='array') from t where c='array';
3816--error ER_INVALID_JSON_VALUE_FOR_CAST
3817insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3818--error ER_INVALID_JSON_VALUE_FOR_CAST
3819insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3820--error ER_INVALID_JSON_VALUE_FOR_CAST
3821insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3822insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3823--error ER_INVALID_JSON_VALUE_FOR_CAST
3824insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3825insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3826--error ER_INVALID_JSON_VALUE_FOR_CAST
3827insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3828--error ER_INVALID_JSON_VALUE_FOR_CAST
3829insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3830--error ER_INVALID_JSON_VALUE_FOR_CAST
3831insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3832--error ER_INVALID_JSON_VALUE_FOR_CAST
3833insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3834--error ER_INVALID_JSON_VALUE_FOR_CAST
3835insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3836--error ER_INVALID_JSON_VALUE_FOR_CAST
3837insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3838--error ER_INVALID_JSON_VALUE_FOR_CAST
3839insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3840insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3841insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3842--error ER_INVALID_JSON_VALUE_FOR_CAST
3843insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3844insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3845insert into at(c,_smp) select concat('_smp: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3846
3847--error ER_INVALID_JSON_VALUE_FOR_CAST
3848insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='null') from t where c='null';
3849--error ER_INVALID_JSON_VALUE_FOR_CAST
3850insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='bool') from t where c='bool';
3851--error ER_INVALID_JSON_VALUE_FOR_CAST
3852insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='uint') from t where c='uint';
3853--error ER_INVALID_JSON_VALUE_FOR_CAST
3854insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='int') from t where c='int';
3855--error ER_INVALID_JSON_VALUE_FOR_CAST
3856insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='double') from t where c='double';
3857--error ER_INVALID_JSON_VALUE_FOR_CAST
3858insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='stringany') from t where c='stringany';
3859--error ER_INVALID_JSON_VALUE_FOR_CAST
3860insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='stringint') from t where c='stringint';
3861--error ER_INVALID_JSON_VALUE_FOR_CAST
3862insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3863--error ER_INVALID_JSON_VALUE_FOR_CAST
3864insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='object') from t where c='object';
3865--error ER_INVALID_JSON_VALUE_FOR_CAST
3866insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='array') from t where c='array';
3867--error ER_INVALID_JSON_VALUE_FOR_CAST
3868insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3869--error ER_INVALID_JSON_VALUE_FOR_CAST
3870insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3871--error ER_INVALID_JSON_VALUE_FOR_CAST
3872insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3873--error ER_INVALID_JSON_VALUE_FOR_CAST
3874insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3875insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3876--error ER_INVALID_JSON_VALUE_FOR_CAST
3877insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3878--error ER_INVALID_JSON_VALUE_FOR_CAST
3879insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3880--error ER_INVALID_JSON_VALUE_FOR_CAST
3881insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3882--error ER_INVALID_JSON_VALUE_FOR_CAST
3883insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3884--error ER_INVALID_JSON_VALUE_FOR_CAST
3885insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3886--error ER_INVALID_JSON_VALUE_FOR_CAST
3887insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3888--error ER_INVALID_JSON_VALUE_FOR_CAST
3889insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3890--error ER_INVALID_JSON_VALUE_FOR_CAST
3891insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3892insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3893insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3894--error ER_INVALID_JSON_VALUE_FOR_CAST
3895insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3896insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3897insert into at(c,_tim) select concat('_tim: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3898
3899--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3900insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='null') from t where c='null';
3901--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3902insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='bool') from t where c='bool';
3903insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='uint') from t where c='uint';
3904insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='int') from t where c='int';
3905insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='double') from t where c='double';
3906--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3907insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='stringany') from t where c='stringany';
3908--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3909insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='stringint') from t where c='stringint'; # JSON_UNQUOTE helps
3910--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3911insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3912--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3913insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='object') from t where c='object';
3914--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3915insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='array') from t where c='array';
3916insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3917--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3918insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3919--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3920insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3921--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3922insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3923--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3924insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3925--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3926insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3927--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3928insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3929--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3930insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3931insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3932--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3933insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3934--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3935insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3936--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3937insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3938--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3939insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3940insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3941insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3942--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
3943insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3944insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3945insert into at(c,_yea) select concat('_yea: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3946
3947insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='null') from t where c='null';
3948insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='bool') from t where c='bool';
3949insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='uint') from t where c='uint';
3950insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='int') from t where c='int';
3951insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='double') from t where c='double';
3952insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='stringany') from t where c='stringany';
3953insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='stringint') from t where c='stringint';
3954insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3955insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='object') from t where c='object';
3956insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='array') from t where c='array';
3957insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3958insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3959insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3960insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3961insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3962insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3963insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3964insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3965insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3966insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3967insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3968insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3969insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3970insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
3971insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
3972insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
3973insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
3974insert into at(c,_jsn) select concat('_jsn: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
3975
3976insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='null') from t where c='null';
3977insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='bool') from t where c='bool';
3978insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='uint') from t where c='uint';
3979insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='int') from t where c='int';
3980insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='double') from t where c='double';
3981insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='stringany') from t where c='stringany';
3982insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='stringint') from t where c='stringint';
3983insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
3984insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='object') from t where c='object';
3985insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='array') from t where c='array';
3986insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
3987insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
3988insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
3989insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
3990insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
3991insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
3992insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
3993insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
3994insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
3995insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
3996insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
3997insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
3998insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
3999insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4000insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4001insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4002insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4003insert into at(c,_chr) select concat('_chr: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4004
4005insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='null') from t where c='null';
4006insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='bool') from t where c='bool';
4007insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='uint') from t where c='uint';
4008insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='int') from t where c='int';
4009insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='double') from t where c='double';
4010insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='stringany') from t where c='stringany';
4011insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='stringint') from t where c='stringint';
4012insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4013insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='object') from t where c='object';
4014insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='array') from t where c='array';
4015insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4016insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4017insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4018insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4019insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4020insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4021insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4022insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4023insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4024insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4025insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4026insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4027insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4028insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4029insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4030insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4031insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4032insert into at(c,_vch) select concat('_vch: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4033
4034insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='null') from t where c='null';
4035insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='bool') from t where c='bool';
4036insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='uint') from t where c='uint';
4037insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='int') from t where c='int';
4038insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='double') from t where c='double';
4039insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='stringany') from t where c='stringany';
4040insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='stringint') from t where c='stringint';
4041insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4042insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='object') from t where c='object';
4043insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='array') from t where c='array';
4044insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4045insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4046insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4047insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4048insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4049insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4050insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4051insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4052insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4053insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4054insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4055insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4056insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4057insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4058insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4059insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4060insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4061insert into at(c,_bin) select concat('_bin: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4062
4063insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='null') from t where c='null';
4064insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='bool') from t where c='bool';
4065insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='uint') from t where c='uint';
4066insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='int') from t where c='int';
4067insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='double') from t where c='double';
4068insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='stringany') from t where c='stringany';
4069insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='stringint') from t where c='stringint';
4070insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4071insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='object') from t where c='object';
4072insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='array') from t where c='array';
4073insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4074insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4075insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4076insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4077insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4078insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4079insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4080insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4081insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4082insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4083insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4084insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4085insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4086insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4087insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4088insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4089insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4090insert into at(c,_vbn) select concat('_vbn: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4091
4092insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='null') from t where c='null';
4093insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='bool') from t where c='bool';
4094insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='uint') from t where c='uint';
4095insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='int') from t where c='int';
4096insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='double') from t where c='double';
4097insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='stringany') from t where c='stringany';
4098insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='stringint') from t where c='stringint';
4099insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4100insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='object') from t where c='object';
4101insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='array') from t where c='array';
4102insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4103insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4104insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4105insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4106insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4107insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4108insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4109insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4110insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4111insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4112insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4113insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4114insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4115insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4116insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4117insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4118insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4119insert into at(c,_tbl) select concat('_tbl: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4120
4121insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='null') from t where c='null';
4122insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='bool') from t where c='bool';
4123insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='uint') from t where c='uint';
4124insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='int') from t where c='int';
4125insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='double') from t where c='double';
4126insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='stringany') from t where c='stringany';
4127insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='stringint') from t where c='stringint';
4128insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4129insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='object') from t where c='object';
4130insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='array') from t where c='array';
4131insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4132insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4133insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4134insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4135insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4136insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4137insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4138insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4139insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4140insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4141insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4142insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4143insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4144insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4145insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4146insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4147insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4148insert into at(c,_ttx) select concat('_ttx: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4149
4150insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='null') from t where c='null';
4151insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='bool') from t where c='bool';
4152insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='uint') from t where c='uint';
4153insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='int') from t where c='int';
4154insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='double') from t where c='double';
4155insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='stringany') from t where c='stringany';
4156insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='stringint') from t where c='stringint';
4157insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4158insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='object') from t where c='object';
4159insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='array') from t where c='array';
4160insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4161insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4162insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4163insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4164insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4165insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4166insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4167insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4168insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4169insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4170insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4171insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4172insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4173insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4174insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4175insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4176insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4177insert into at(c,_blb) select concat('_blb: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4178
4179insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='null') from t where c='null';
4180insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='bool') from t where c='bool';
4181insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='uint') from t where c='uint';
4182insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='int') from t where c='int';
4183insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='double') from t where c='double';
4184insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='stringany') from t where c='stringany';
4185insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='stringint') from t where c='stringint';
4186insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4187insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='object') from t where c='object';
4188insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='array') from t where c='array';
4189insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4190insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4191insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4192insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4193insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4194insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4195insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4196insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4197insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4198insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4199insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4200insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4201insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4202insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4203insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4204insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4205insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4206insert into at(c,_txt) select concat('_txt: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4207
4208insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='null') from t where c='null';
4209insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='bool') from t where c='bool';
4210insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='uint') from t where c='uint';
4211insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='int') from t where c='int';
4212insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='double') from t where c='double';
4213insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='stringany') from t where c='stringany';
4214insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='stringint') from t where c='stringint';
4215insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4216insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='object') from t where c='object';
4217insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='array') from t where c='array';
4218insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4219insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4220insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4221insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4222insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4223insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4224insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4225insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4226insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4227insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4228insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4229insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4230insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4231insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4232insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4233insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4234insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4235insert into at(c,_mbb) select concat('_mbb: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4236
4237insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='null') from t where c='null';
4238insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='bool') from t where c='bool';
4239insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='uint') from t where c='uint';
4240insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='int') from t where c='int';
4241insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='double') from t where c='double';
4242insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='stringany') from t where c='stringany';
4243insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='stringint') from t where c='stringint';
4244insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4245insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='object') from t where c='object';
4246insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='array') from t where c='array';
4247insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4248insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4249insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4250insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4251insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4252insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4253insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4254insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4255insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4256insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4257insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4258insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4259insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4260insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4261insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4262insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4263insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4264insert into at(c,_mtx) select concat('_mtx: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4265
4266insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='null') from t where c='null';
4267insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='bool') from t where c='bool';
4268insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='uint') from t where c='uint';
4269insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='int') from t where c='int';
4270insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='double') from t where c='double';
4271insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='stringany') from t where c='stringany';
4272insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='stringint') from t where c='stringint';
4273insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4274insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='object') from t where c='object';
4275insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='array') from t where c='array';
4276insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4277insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4278insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4279insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4280insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4281insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4282insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4283insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4284insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4285insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4286insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4287insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4288insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4289insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4290insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4291insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4292insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4293insert into at(c,_lbb) select concat('_lbb: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4294
4295insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='null') from t where c='null';
4296insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='bool') from t where c='bool';
4297insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='uint') from t where c='uint';
4298insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='int') from t where c='int';
4299insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='double') from t where c='double';
4300insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='stringany') from t where c='stringany';
4301insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='stringint') from t where c='stringint';
4302insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4303insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='object') from t where c='object';
4304insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='array') from t where c='array';
4305insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4306insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4307insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4308insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4309insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4310insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4311insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4312insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4313insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4314insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4315insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4316insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4317insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4318insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4319insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4320insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4321insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4322insert into at(c,_ltx) select concat('_ltx: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4323
4324--error 1265
4325# insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='null') from t where c='null';
4326--error 1265
4327# insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='bool') from t where c='bool';
4328--error 1265
4329#insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='uint') from t where c='uint';
4330--error 1265
4331#insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='int') from t where c='int';
4332--error 1265
4333insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='double') from t where c='double';
4334--error 1265
4335insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='stringany') from t where c='stringany'; # needs JSON_UNQUOTE
4336--error 1265
4337insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='stringint') from t where c='stringint';
4338--error 1265
4339insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4340--error 1265
4341insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='object') from t where c='object';
4342--error 1265
4343insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='array') from t where c='array';
4344--error 1265
4345insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4346--error 1265
4347insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4348--error 1265
4349insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4350--error 1265
4351insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4352--error 1265
4353insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4354--error 1265
4355insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4356--error 1265
4357insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4358--error 1265
4359insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4360--error 1265
4361insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4362--error 1265
4363insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4364--error 1265
4365insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4366--error 1265
4367insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4368--error 1265
4369insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4370insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4371insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4372--error 1265
4373insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4374insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4375insert into at(c,_enu) select concat('_enu: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4376
4377--error 1265
4378insert into at(c,_set) select concat('_set: ',c), (select j from t where c='null') from t where c='null';
4379--error 1265
4380insert into at(c,_set) select concat('_set: ',c), (select j from t where c='bool') from t where c='bool';
4381--error 1265
4382insert into at(c,_set) select concat('_set: ',c), (select j from t where c='uint') from t where c='uint';
4383--error 1265
4384insert into at(c,_set) select concat('_set: ',c), (select j from t where c='int') from t where c='int';
4385--error 1265
4386insert into at(c,_set) select concat('_set: ',c), (select j from t where c='double') from t where c='double';
4387--error 1265
4388insert into at(c,_set) select concat('_set: ',c), (select j from t where c='stringany') from t where c='stringany'; # needs JSON_UNQUOTE
4389--error 1265
4390insert into at(c,_set) select concat('_set: ',c), (select j from t where c='stringint') from t where c='stringint';
4391--error 1265
4392insert into at(c,_set) select concat('_set: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4393--error 1265
4394insert into at(c,_set) select concat('_set: ',c), (select j from t where c='object') from t where c='object';
4395--error 1265
4396insert into at(c,_set) select concat('_set: ',c), (select j from t where c='array') from t where c='array';
4397--error 1265
4398insert into at(c,_set) select concat('_set: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4399--error 1265
4400insert into at(c,_set) select concat('_set: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4401--error 1265
4402insert into at(c,_set) select concat('_set: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4403--error 1265
4404insert into at(c,_set) select concat('_set: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4405--error 1265
4406insert into at(c,_set) select concat('_set: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4407--error 1265
4408insert into at(c,_set) select concat('_set: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4409--error 1265
4410insert into at(c,_set) select concat('_set: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4411--error 1265
4412insert into at(c,_set) select concat('_set: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4413--error 1265
4414insert into at(c,_set) select concat('_set: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4415--error 1265
4416insert into at(c,_set) select concat('_set: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4417--error 1265
4418insert into at(c,_set) select concat('_set: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4419--error 1265
4420insert into at(c,_set) select concat('_set: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4421--error 1265
4422insert into at(c,_set) select concat('_set: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4423insert into at(c,_set) select concat('_set: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4424insert into at(c,_set) select concat('_set: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4425--error 1265
4426insert into at(c,_set) select concat('_set: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4427insert into at(c,_set) select concat('_set: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4428insert into at(c,_set) select concat('_set: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4429
4430--error ER_CANT_CREATE_GEOMETRY_OBJECT
4431insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='null') from t where c='null';
4432--error ER_CANT_CREATE_GEOMETRY_OBJECT
4433insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='bool') from t where c='bool';
4434--error ER_CANT_CREATE_GEOMETRY_OBJECT
4435insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='uint') from t where c='uint';
4436--error ER_CANT_CREATE_GEOMETRY_OBJECT
4437insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='int') from t where c='int';
4438--error ER_CANT_CREATE_GEOMETRY_OBJECT
4439insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='double') from t where c='double';
4440--error ER_CANT_CREATE_GEOMETRY_OBJECT
4441insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='stringany') from t where c='stringany';
4442--error ER_CANT_CREATE_GEOMETRY_OBJECT
4443insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='stringint') from t where c='stringint';
4444--error ER_CANT_CREATE_GEOMETRY_OBJECT
4445insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4446--error ER_CANT_CREATE_GEOMETRY_OBJECT
4447insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='object') from t where c='object';
4448--error ER_CANT_CREATE_GEOMETRY_OBJECT
4449insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='array') from t where c='array';
4450--error ER_CANT_CREATE_GEOMETRY_OBJECT
4451insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4452--error ER_CANT_CREATE_GEOMETRY_OBJECT
4453insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4454--error ER_CANT_CREATE_GEOMETRY_OBJECT
4455insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4456--error ER_CANT_CREATE_GEOMETRY_OBJECT
4457insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4458--error ER_CANT_CREATE_GEOMETRY_OBJECT
4459insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4460--error ER_CANT_CREATE_GEOMETRY_OBJECT
4461insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4462--error ER_CANT_CREATE_GEOMETRY_OBJECT
4463insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4464--error ER_CANT_CREATE_GEOMETRY_OBJECT
4465insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4466--error ER_CANT_CREATE_GEOMETRY_OBJECT
4467insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4468--error ER_CANT_CREATE_GEOMETRY_OBJECT
4469insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4470--error ER_CANT_CREATE_GEOMETRY_OBJECT
4471insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4472--error ER_CANT_CREATE_GEOMETRY_OBJECT
4473insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4474--error ER_CANT_CREATE_GEOMETRY_OBJECT
4475insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4476insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4477insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4478--error ER_CANT_CREATE_GEOMETRY_OBJECT
4479insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4480insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4481insert into at(c,_geo) select concat('_geo: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4482
4483--error ER_CANT_CREATE_GEOMETRY_OBJECT
4484insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='null') from t where c='null';
4485--error ER_CANT_CREATE_GEOMETRY_OBJECT
4486insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='bool') from t where c='bool';
4487--error ER_CANT_CREATE_GEOMETRY_OBJECT
4488insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='uint') from t where c='uint';
4489--error ER_CANT_CREATE_GEOMETRY_OBJECT
4490insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='int') from t where c='int';
4491--error ER_CANT_CREATE_GEOMETRY_OBJECT
4492insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='double') from t where c='double';
4493--error ER_CANT_CREATE_GEOMETRY_OBJECT
4494insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='stringany') from t where c='stringany';
4495--error ER_CANT_CREATE_GEOMETRY_OBJECT
4496insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='stringint') from t where c='stringint';
4497--error ER_CANT_CREATE_GEOMETRY_OBJECT
4498insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4499--error ER_CANT_CREATE_GEOMETRY_OBJECT
4500insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='object') from t where c='object';
4501--error ER_CANT_CREATE_GEOMETRY_OBJECT
4502insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='array') from t where c='array';
4503--error ER_CANT_CREATE_GEOMETRY_OBJECT
4504insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4505--error ER_CANT_CREATE_GEOMETRY_OBJECT
4506insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4507--error ER_CANT_CREATE_GEOMETRY_OBJECT
4508insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4509--error ER_CANT_CREATE_GEOMETRY_OBJECT
4510insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4511--error ER_CANT_CREATE_GEOMETRY_OBJECT
4512insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4513--error ER_CANT_CREATE_GEOMETRY_OBJECT
4514insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4515--error ER_CANT_CREATE_GEOMETRY_OBJECT
4516insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4517--error ER_CANT_CREATE_GEOMETRY_OBJECT
4518insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4519--error ER_CANT_CREATE_GEOMETRY_OBJECT
4520insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4521--error ER_CANT_CREATE_GEOMETRY_OBJECT
4522insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4523--error ER_CANT_CREATE_GEOMETRY_OBJECT
4524insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4525--error ER_CANT_CREATE_GEOMETRY_OBJECT
4526insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4527--error ER_CANT_CREATE_GEOMETRY_OBJECT
4528insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4529insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4530insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4531--error ER_CANT_CREATE_GEOMETRY_OBJECT
4532insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4533insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4534insert into at(c,_pnt) select concat('_pnt: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4535
4536--error ER_CANT_CREATE_GEOMETRY_OBJECT
4537insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='null') from t where c='null';
4538--error ER_CANT_CREATE_GEOMETRY_OBJECT
4539insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='bool') from t where c='bool';
4540--error ER_CANT_CREATE_GEOMETRY_OBJECT
4541insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='uint') from t where c='uint';
4542--error ER_CANT_CREATE_GEOMETRY_OBJECT
4543insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='int') from t where c='int';
4544--error ER_CANT_CREATE_GEOMETRY_OBJECT
4545insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='double') from t where c='double';
4546--error ER_CANT_CREATE_GEOMETRY_OBJECT
4547insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='stringany') from t where c='stringany';
4548--error ER_CANT_CREATE_GEOMETRY_OBJECT
4549insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='stringint') from t where c='stringint';
4550--error ER_CANT_CREATE_GEOMETRY_OBJECT
4551insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4552--error ER_CANT_CREATE_GEOMETRY_OBJECT
4553insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='object') from t where c='object';
4554--error ER_CANT_CREATE_GEOMETRY_OBJECT
4555insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='array') from t where c='array';
4556--error ER_CANT_CREATE_GEOMETRY_OBJECT
4557insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4558--error ER_CANT_CREATE_GEOMETRY_OBJECT
4559insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4560--error ER_CANT_CREATE_GEOMETRY_OBJECT
4561insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4562--error ER_CANT_CREATE_GEOMETRY_OBJECT
4563insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4564--error ER_CANT_CREATE_GEOMETRY_OBJECT
4565insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4566--error ER_CANT_CREATE_GEOMETRY_OBJECT
4567insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4568--error ER_CANT_CREATE_GEOMETRY_OBJECT
4569insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4570--error ER_CANT_CREATE_GEOMETRY_OBJECT
4571insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4572--error ER_CANT_CREATE_GEOMETRY_OBJECT
4573insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4574--error ER_CANT_CREATE_GEOMETRY_OBJECT
4575insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4576--error ER_CANT_CREATE_GEOMETRY_OBJECT
4577insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4578--error ER_CANT_CREATE_GEOMETRY_OBJECT
4579insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4580--error ER_CANT_CREATE_GEOMETRY_OBJECT
4581insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4582insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4583insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4584--error ER_CANT_CREATE_GEOMETRY_OBJECT
4585insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4586insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4587insert into at(c,_lst) select concat('_lst: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4588
4589--error ER_CANT_CREATE_GEOMETRY_OBJECT
4590insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='null') from t where c='null';
4591--error ER_CANT_CREATE_GEOMETRY_OBJECT
4592insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='bool') from t where c='bool';
4593--error ER_CANT_CREATE_GEOMETRY_OBJECT
4594insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='uint') from t where c='uint';
4595--error ER_CANT_CREATE_GEOMETRY_OBJECT
4596insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='int') from t where c='int';
4597--error ER_CANT_CREATE_GEOMETRY_OBJECT
4598insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='double') from t where c='double';
4599--error ER_CANT_CREATE_GEOMETRY_OBJECT
4600insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='stringany') from t where c='stringany';
4601--error ER_CANT_CREATE_GEOMETRY_OBJECT
4602insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='stringint') from t where c='stringint';
4603--error ER_CANT_CREATE_GEOMETRY_OBJECT
4604insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4605--error ER_CANT_CREATE_GEOMETRY_OBJECT
4606insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='object') from t where c='object';
4607--error ER_CANT_CREATE_GEOMETRY_OBJECT
4608insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='array') from t where c='array';
4609--error ER_CANT_CREATE_GEOMETRY_OBJECT
4610insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4611--error ER_CANT_CREATE_GEOMETRY_OBJECT
4612insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4613--error ER_CANT_CREATE_GEOMETRY_OBJECT
4614insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4615--error ER_CANT_CREATE_GEOMETRY_OBJECT
4616insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4617--error ER_CANT_CREATE_GEOMETRY_OBJECT
4618insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4619--error ER_CANT_CREATE_GEOMETRY_OBJECT
4620insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4621--error ER_CANT_CREATE_GEOMETRY_OBJECT
4622insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4623--error ER_CANT_CREATE_GEOMETRY_OBJECT
4624insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4625--error ER_CANT_CREATE_GEOMETRY_OBJECT
4626insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4627--error ER_CANT_CREATE_GEOMETRY_OBJECT
4628insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4629--error ER_CANT_CREATE_GEOMETRY_OBJECT
4630insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4631--error ER_CANT_CREATE_GEOMETRY_OBJECT
4632insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4633--error ER_CANT_CREATE_GEOMETRY_OBJECT
4634insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4635insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4636insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4637--error ER_CANT_CREATE_GEOMETRY_OBJECT
4638insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4639insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4640insert into at(c,_pol) select concat('_pol: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4641
4642--error ER_CANT_CREATE_GEOMETRY_OBJECT
4643insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='null') from t where c='null';
4644--error ER_CANT_CREATE_GEOMETRY_OBJECT
4645insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='bool') from t where c='bool';
4646--error ER_CANT_CREATE_GEOMETRY_OBJECT
4647insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='uint') from t where c='uint';
4648--error ER_CANT_CREATE_GEOMETRY_OBJECT
4649insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='int') from t where c='int';
4650--error ER_CANT_CREATE_GEOMETRY_OBJECT
4651insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='double') from t where c='double';
4652--error ER_CANT_CREATE_GEOMETRY_OBJECT
4653insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='stringany') from t where c='stringany';
4654--error ER_CANT_CREATE_GEOMETRY_OBJECT
4655insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='stringint') from t where c='stringint';
4656--error ER_CANT_CREATE_GEOMETRY_OBJECT
4657insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4658--error ER_CANT_CREATE_GEOMETRY_OBJECT
4659insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='object') from t where c='object';
4660--error ER_CANT_CREATE_GEOMETRY_OBJECT
4661insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='array') from t where c='array';
4662--error ER_CANT_CREATE_GEOMETRY_OBJECT
4663insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4664--error ER_CANT_CREATE_GEOMETRY_OBJECT
4665insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4666--error ER_CANT_CREATE_GEOMETRY_OBJECT
4667insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4668--error ER_CANT_CREATE_GEOMETRY_OBJECT
4669insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4670--error ER_CANT_CREATE_GEOMETRY_OBJECT
4671insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4672--error ER_CANT_CREATE_GEOMETRY_OBJECT
4673insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4674--error ER_CANT_CREATE_GEOMETRY_OBJECT
4675insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4676--error ER_CANT_CREATE_GEOMETRY_OBJECT
4677insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4678--error ER_CANT_CREATE_GEOMETRY_OBJECT
4679insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4680--error ER_CANT_CREATE_GEOMETRY_OBJECT
4681insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4682--error ER_CANT_CREATE_GEOMETRY_OBJECT
4683insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4684--error ER_CANT_CREATE_GEOMETRY_OBJECT
4685insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4686--error ER_CANT_CREATE_GEOMETRY_OBJECT
4687insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4688insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4689insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4690--error ER_CANT_CREATE_GEOMETRY_OBJECT
4691insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4692insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4693insert into at(c,_mpt) select concat('_mpt: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4694
4695--error ER_CANT_CREATE_GEOMETRY_OBJECT
4696insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='null') from t where c='null';
4697--error ER_CANT_CREATE_GEOMETRY_OBJECT
4698insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='bool') from t where c='bool';
4699--error ER_CANT_CREATE_GEOMETRY_OBJECT
4700insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='uint') from t where c='uint';
4701--error ER_CANT_CREATE_GEOMETRY_OBJECT
4702insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='int') from t where c='int';
4703--error ER_CANT_CREATE_GEOMETRY_OBJECT
4704insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='double') from t where c='double';
4705--error ER_CANT_CREATE_GEOMETRY_OBJECT
4706insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='stringany') from t where c='stringany';
4707--error ER_CANT_CREATE_GEOMETRY_OBJECT
4708insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='stringint') from t where c='stringint';
4709--error ER_CANT_CREATE_GEOMETRY_OBJECT
4710insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4711--error ER_CANT_CREATE_GEOMETRY_OBJECT
4712insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='object') from t where c='object';
4713--error ER_CANT_CREATE_GEOMETRY_OBJECT
4714insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='array') from t where c='array';
4715--error ER_CANT_CREATE_GEOMETRY_OBJECT
4716insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4717--error ER_CANT_CREATE_GEOMETRY_OBJECT
4718insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4719--error ER_CANT_CREATE_GEOMETRY_OBJECT
4720insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4721--error ER_CANT_CREATE_GEOMETRY_OBJECT
4722insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4723--error ER_CANT_CREATE_GEOMETRY_OBJECT
4724insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4725--error ER_CANT_CREATE_GEOMETRY_OBJECT
4726insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4727--error ER_CANT_CREATE_GEOMETRY_OBJECT
4728insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4729--error ER_CANT_CREATE_GEOMETRY_OBJECT
4730insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4731--error ER_CANT_CREATE_GEOMETRY_OBJECT
4732insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4733--error ER_CANT_CREATE_GEOMETRY_OBJECT
4734insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4735--error ER_CANT_CREATE_GEOMETRY_OBJECT
4736insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4737--error ER_CANT_CREATE_GEOMETRY_OBJECT
4738insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4739--error ER_CANT_CREATE_GEOMETRY_OBJECT
4740insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4741insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4742insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4743--error ER_CANT_CREATE_GEOMETRY_OBJECT
4744insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4745insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4746insert into at(c,_mls) select concat('_mls: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4747
4748--error ER_CANT_CREATE_GEOMETRY_OBJECT
4749insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='null') from t where c='null';
4750--error ER_CANT_CREATE_GEOMETRY_OBJECT
4751insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='bool') from t where c='bool';
4752--error ER_CANT_CREATE_GEOMETRY_OBJECT
4753insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='uint') from t where c='uint';
4754--error ER_CANT_CREATE_GEOMETRY_OBJECT
4755insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='int') from t where c='int';
4756--error ER_CANT_CREATE_GEOMETRY_OBJECT
4757insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='double') from t where c='double';
4758--error ER_CANT_CREATE_GEOMETRY_OBJECT
4759insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='stringany') from t where c='stringany';
4760--error ER_CANT_CREATE_GEOMETRY_OBJECT
4761insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='stringint') from t where c='stringint';
4762--error ER_CANT_CREATE_GEOMETRY_OBJECT
4763insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4764--error ER_CANT_CREATE_GEOMETRY_OBJECT
4765insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='object') from t where c='object';
4766--error ER_CANT_CREATE_GEOMETRY_OBJECT
4767insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='array') from t where c='array';
4768--error ER_CANT_CREATE_GEOMETRY_OBJECT
4769insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4770--error ER_CANT_CREATE_GEOMETRY_OBJECT
4771insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4772--error ER_CANT_CREATE_GEOMETRY_OBJECT
4773insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4774--error ER_CANT_CREATE_GEOMETRY_OBJECT
4775insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4776--error ER_CANT_CREATE_GEOMETRY_OBJECT
4777insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4778--error ER_CANT_CREATE_GEOMETRY_OBJECT
4779insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4780--error ER_CANT_CREATE_GEOMETRY_OBJECT
4781insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4782--error ER_CANT_CREATE_GEOMETRY_OBJECT
4783insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4784--error ER_CANT_CREATE_GEOMETRY_OBJECT
4785insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4786--error ER_CANT_CREATE_GEOMETRY_OBJECT
4787insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4788--error ER_CANT_CREATE_GEOMETRY_OBJECT
4789insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4790--error ER_CANT_CREATE_GEOMETRY_OBJECT
4791insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4792--error ER_CANT_CREATE_GEOMETRY_OBJECT
4793insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4794insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4795insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4796--error ER_CANT_CREATE_GEOMETRY_OBJECT
4797insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4798insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4799insert into at(c,_mpy) select concat('_mpy: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4800
4801--error ER_CANT_CREATE_GEOMETRY_OBJECT
4802insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='null') from t where c='null';
4803--error ER_CANT_CREATE_GEOMETRY_OBJECT
4804insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='bool') from t where c='bool';
4805--error ER_CANT_CREATE_GEOMETRY_OBJECT
4806insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='uint') from t where c='uint';
4807--error ER_CANT_CREATE_GEOMETRY_OBJECT
4808insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='int') from t where c='int';
4809--error ER_CANT_CREATE_GEOMETRY_OBJECT
4810insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='double') from t where c='double';
4811--error ER_CANT_CREATE_GEOMETRY_OBJECT
4812insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='stringany') from t where c='stringany';
4813--error ER_CANT_CREATE_GEOMETRY_OBJECT
4814insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='stringint') from t where c='stringint';
4815--error ER_CANT_CREATE_GEOMETRY_OBJECT
4816insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='stringdecimal') from t where c='stringdecimal';
4817--error ER_CANT_CREATE_GEOMETRY_OBJECT
4818insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='object') from t where c='object';
4819--error ER_CANT_CREATE_GEOMETRY_OBJECT
4820insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='array') from t where c='array';
4821--error ER_CANT_CREATE_GEOMETRY_OBJECT
4822insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='opaque_mysql_type_decimal') from t where c='opaque_mysql_type_decimal';
4823--error ER_CANT_CREATE_GEOMETRY_OBJECT
4824insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='opaque_mysql_type_set') from t where c='opaque_mysql_type_set';
4825--error ER_CANT_CREATE_GEOMETRY_OBJECT
4826insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='opaque_mysql_type_enum') from t where c='opaque_mysql_type_enum';
4827--error ER_CANT_CREATE_GEOMETRY_OBJECT
4828insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='opaque_mysql_type_date') from t where c='opaque_mysql_type_date';
4829--error ER_CANT_CREATE_GEOMETRY_OBJECT
4830insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='opaque_mysql_type_time') from t where c='opaque_mysql_type_time';
4831--error ER_CANT_CREATE_GEOMETRY_OBJECT
4832insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='opaque_mysql_type_datetime') from t where c='opaque_mysql_type_datetime';
4833--error ER_CANT_CREATE_GEOMETRY_OBJECT
4834insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='opaque_mysql_type_geom') from t where c='opaque_mysql_type_geom';
4835--error ER_CANT_CREATE_GEOMETRY_OBJECT
4836insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='opaque_mysql_type_bit') from t where c='opaque_mysql_type_bit';
4837--error ER_CANT_CREATE_GEOMETRY_OBJECT
4838insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='opaque_mysql_type_year') from t where c='opaque_mysql_type_year';
4839--error ER_CANT_CREATE_GEOMETRY_OBJECT
4840insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='opaque_mysql_type_blob') from t where c='opaque_mysql_type_blob';
4841--error ER_CANT_CREATE_GEOMETRY_OBJECT
4842insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='opaque_mysql_type_longblob') from t where c='opaque_mysql_type_longblob';
4843--error ER_CANT_CREATE_GEOMETRY_OBJECT
4844insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='opaque_mysql_type_mediumblob') from t where c='opaque_mysql_type_mediumblob';
4845--error ER_CANT_CREATE_GEOMETRY_OBJECT
4846insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='opaque_mysql_type_tinyblob') from t where c='opaque_mysql_type_tinyblob';
4847insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='opaque_mysql_type_varbinary') from t where c='opaque_mysql_type_varbinary';
4848insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='opaque_mysql_type_binary') from t where c='opaque_mysql_type_binary';
4849--error ER_CANT_CREATE_GEOMETRY_OBJECT
4850insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='opaque_mysql_type_varchar') from t where c='opaque_mysql_type_varchar';
4851insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='opaque_mysql_type_string') from t where c='opaque_mysql_type_string';
4852insert into at(c,_gco) select concat('_gco: ',c), (select j from t where c='opaque_mysql_type_var_string') from t where c='opaque_mysql_type_var_string';
4853
4854--echo # ----------------------------------------------------------------------
4855--echo # Validate the data actually inserted
4856--echo # ----------------------------------------------------------------------
4857
4858select c, _bit from at
4859where c like '_bit%';
4860select c, _tin from at
4861where c like '_tin%';
4862select c, _boo from at
4863where c like '_boo%';
4864select c, _sms from at
4865where c like '_sms%';
4866select c, _smu from at
4867where c like '_smu%';
4868select c, _mes from at
4869where c like '_mes%';
4870select c, _meu from at
4871where c like '_meu%';
4872select c, _ins from at
4873where c like '_ins%';
4874select c, _inu from at
4875where c like '_inu%';
4876select c, _bis from at
4877where c like '_bis%';
4878select c, _biu from at
4879where c like '_biu%';
4880select c, _dec from at
4881where c like '_dec%';
4882select c, _flo from at
4883where c like '_flo%';
4884select c, _dou from at
4885where c like '_dou%';
4886--replace_regex /2015-01-15/--EXPECTED_DATE--/ /[0-9]{4}-[0-9]{2}-[0-9]{2}/--DATE--/
4887select c, _dat from at
4888where c like '_dat%';
4889--replace_regex /2015-01-15 23:24:25/--EXPECTED_DATETIME--/ /[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}/--DATETIME--/
4890select c, _dtt from at
4891where c like '_dtt%';
4892--replace_regex /2015-01-15 23:24:25/--EXPECTED_TIMESTAMP--/ /[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}/--TIMESTAMP--/
4893select c, _smp from at
4894where c like '_smp%';
4895--replace_regex /23:24:25/--EXPECTED_TIME--/ /[0-9]{2}:[0-9]{2}:[0-9]{2}/--TIME--/
4896select c, _tim from at
4897where c like '_tim%';
4898select c, _yea from at
4899where c like '_yea%';
4900select c, _jsn from at
4901where c like '_jsn%';
4902select c, _chr from at
4903where c like '_chr%';
4904select c, _vch from at
4905where c like '_vch%';
4906select c, replace(_bin, '\0', '') from at
4907where c like '_bin%';
4908select c, _vbn from at
4909where c like '_vbn%';
4910select c, _tbl from at
4911where c like '_tbl%';
4912select c, _ttx from at
4913where c like '_ttx%';
4914select c, _blb from at
4915where c like '_blb%';
4916select c, _txt from at
4917where c like '_txt%';
4918select c, _mbb from at
4919where c like '_mbb%';
4920select c, _mtx from at
4921where c like '_mtx%';
4922select c, _lbb from at
4923where c like '_lbb%';
4924select c, _ltx from at
4925where c like '_ltx%';
4926select c, _enu from at
4927where c like '_enu%';
4928select c, _set from at
4929where c like '_set%';
4930select c, _geo from at
4931where c like '_geo%';
4932select c, _pnt from at
4933where c like '_pnt%';
4934select c, _lst from at
4935where c like '_lst%';
4936select c, _pol from at
4937where c like '_pol%';
4938select c, _mpt from at
4939where c like '_mpt%';
4940select c, _mls from at
4941where c like '_mls%';
4942select c, _mpy from at
4943where c like '_mpy%';
4944select c, _gco from at
4945where c like '_gco%';
4946
4947
4948
4949
4950--echo # Explicit coercions (CAST)
4951--echo # ----------------------------------------------------------------------
4952
4953--echo # CAST to BINARY[(N)]
4954--echo # CAST to CHAR[(N)]
4955--echo # CAST to DATE
4956--echo # CAST to DATETIME
4957--echo # CAST to TIME
4958--echo # CAST to DECIMAL[(M[,D])]
4959--echo # CAST to SIGNED [INTEGER]
4960--echo # CAST to UNSIGNED [INTEGER]
4961--echo # CAST to JSON
4962
4963--echo # ----------------------------------------------------------------------
4964--echo #  C A S T   F R O M   J S O N   C O L U M N
4965--echo # ----------------------------------------------------------------------
4966select concat('From JSON col ',c, ' as BINARY(35)'), replace(cast(j as BINARY(35)), '\0', '') from t;
4967
4968select concat('From JSON col ',c, ' as CHAR(35))'), cast(j as CHAR(35)) from t;
4969
4970select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='null';
4971select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='bool';
4972select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='uint';
4973select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='int';
4974select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='double';
4975select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='stringany';
4976select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='stringint';
4977select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='stringdecimal';
4978select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='object';
4979select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='array';
4980select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_decimal';
4981select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_set';
4982select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_enum';
4983select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_date';
4984--replace_regex /2015-01-15/--EXPECTED_DATE--/ /[0-9]{4}-[0-9]{2}-[0-9]{2}/--DATE--/
4985select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_time';
4986select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_datetime';
4987select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_geom';
4988select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_bit';
4989select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_year';
4990select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_blob';
4991select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_longblob';
4992select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_mediumblob';
4993select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_tinyblob';
4994select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_varbinary';
4995select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_binary';
4996select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_varchar';
4997select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_string';
4998select concat('From JSON col ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_var_string';
4999
5000select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='null';
5001select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='bool';
5002select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='uint';
5003select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='int';
5004select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='double';
5005select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='stringany';
5006select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='stringint';
5007select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='stringdecimal';
5008select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='object';
5009select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='array';
5010select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_decimal';
5011select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_set';
5012select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_enum';
5013select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_date';
5014--replace_regex /2015-01-15/--EXPECTED_DATE--/ /[0-9]{4}-[0-9]{2}-[0-9]{2}/--DATE--/
5015select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_time';
5016select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_datetime';
5017select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_geom';
5018select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_bit';
5019select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_year';
5020select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_blob';
5021select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_longblob';
5022select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_mediumblob';
5023select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_tinyblob';
5024select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_varbinary';
5025select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_binary';
5026select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_varchar';
5027select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_string';
5028select concat('From JSON col ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_var_string';
5029
5030select concat('From JSON col ',c, ' as TIME'), cast(j as TIME) from t;
5031
5032select concat('From JSON col ',c, ' as DECIMAL(5,2)'), cast(j as DECIMAL(5,2)) from t;
5033
5034select concat('From JSON col ',c, ' as UNSIGNED'), cast(j as UNSIGNED) from t;
5035
5036select concat('From JSON col ',c, ' as SIGNED'), cast(j as SIGNED) from t;
5037
5038
5039--echo # ----------------------------------------------------------------------
5040--echo #  C A S T   F R O M   J S O N   F U N C T I O N
5041--echo # ----------------------------------------------------------------------
5042select concat('From JSON func ',c, ' as BINARY(35)'), replace(cast(json_extract(j, '$') as BINARY(35)), '\0', '') from t;
5043
5044select concat('From JSON func ',c, ' as CHAR(35))'), cast(json_extract(j, '$') as CHAR(35)) from t;
5045
5046select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='null';
5047select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='bool';
5048select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='uint';
5049select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='int';
5050select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='double';
5051select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='stringany';
5052select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='stringint';
5053select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='stringdecimal';
5054select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='object';
5055select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='array';
5056select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='opaque_mysql_type_decimal';
5057select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='opaque_mysql_type_set';
5058select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='opaque_mysql_type_enum';
5059select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='opaque_mysql_type_date';
5060--replace_regex /2015-01-15/--EXPECTED_DATE--/ /[0-9]{4}-[0-9]{2}-[0-9]{2}/--DATE--/
5061select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='opaque_mysql_type_time';
5062select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='opaque_mysql_type_datetime';
5063select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='opaque_mysql_type_geom';
5064select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='opaque_mysql_type_bit';
5065select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='opaque_mysql_type_year';
5066select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='opaque_mysql_type_blob';
5067select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='opaque_mysql_type_longblob';
5068select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='opaque_mysql_type_mediumblob';
5069select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='opaque_mysql_type_tinyblob';
5070select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='opaque_mysql_type_varbinary';
5071select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='opaque_mysql_type_binary';
5072select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='opaque_mysql_type_varchar';
5073select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='opaque_mysql_type_string';
5074select concat('From JSON func ',c, ' as DATE'), cast(json_extract(j, '$') as DATE) from t where c='opaque_mysql_type_var_string';
5075
5076
5077select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='null';
5078select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='bool';
5079select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='uint';
5080select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='int';
5081select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='double';
5082select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='stringany';
5083select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='stringint';
5084select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='stringdecimal';
5085select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='object';
5086select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='array';
5087select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='opaque_mysql_type_decimal';
5088select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='opaque_mysql_type_set';
5089select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='opaque_mysql_type_enum';
5090select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='opaque_mysql_type_date';
5091--replace_regex /2015-01-15/--EXPECTED_DATE--/ /[0-9]{4}-[0-9]{2}-[0-9]{2}/--DATE--/
5092select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='opaque_mysql_type_time';
5093select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='opaque_mysql_type_datetime';
5094select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='opaque_mysql_type_geom';
5095select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='opaque_mysql_type_bit';
5096select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='opaque_mysql_type_year';
5097select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='opaque_mysql_type_blob';
5098select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='opaque_mysql_type_longblob';
5099select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='opaque_mysql_type_mediumblob';
5100select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='opaque_mysql_type_tinyblob';
5101select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='opaque_mysql_type_varbinary';
5102select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='opaque_mysql_type_binary';
5103select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='opaque_mysql_type_varchar';
5104select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='opaque_mysql_type_string';
5105select concat('From JSON func ',c, ' as DATETIME'), cast(json_extract(j, '$') as DATETIME) from t where c='opaque_mysql_type_var_string';
5106
5107select concat('From JSON func ',c, ' as TIME'), cast(json_extract(j, '$') as TIME) from t;
5108
5109select concat('From JSON func ',c, ' as DECIMAL(5,2)'), cast(json_extract(j, '$') as DECIMAL(5,2)) from t;
5110
5111select concat('From JSON func ',c, ' as UNSIGNED'), cast(json_extract(j, '$') as UNSIGNED) from t;
5112
5113select concat('From JSON func ',c, ' as SIGNED'), cast(json_extract(j, '$') as SIGNED) from t;
5114
5115--echo # ----------------------------------------------------------------------
5116--echo #  C A S T   F R O M   J S O N   S U B Q U E R Y
5117--echo # ----------------------------------------------------------------------
5118
5119select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='null') as BINARY(35)), '\0', '') from t where c='null';
5120select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='bool') as BINARY(35)), '\0', '') from t where c='bool';
5121select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='uint') as BINARY(35)), '\0', '') from t where c='uint';
5122select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='int') as BINARY(35)), '\0', '') from t where c='int';
5123select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='double') as BINARY(35)), '\0', '') from t where c='double';
5124select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='stringany') as BINARY(35)), '\0', '') from t where c='stringany';
5125select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='stringint') as BINARY(35)), '\0', '') from t where c='stringint';
5126select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='stringdecimal') as BINARY(35)), '\0', '') from t where c='stringdecimal';
5127select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='object') as BINARY(35)), '\0', '') from t where c='object';
5128select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='array') as BINARY(35)), '\0', '') from t where c='array';
5129select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='opaque_mysql_type_decimal') as BINARY(35)), '\0', '') from t where c='opaque_mysql_type_decimal';
5130select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='opaque_mysql_type_set') as BINARY(35)), '\0', '') from t where c='opaque_mysql_type_set';
5131select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='opaque_mysql_type_enum') as BINARY(35)), '\0', '') from t where c='opaque_mysql_type_enum';
5132select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='opaque_mysql_type_date') as BINARY(35)), '\0', '') from t where c='opaque_mysql_type_date';
5133select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='opaque_mysql_type_time') as BINARY(35)), '\0', '') from t where c='opaque_mysql_type_time';
5134select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='opaque_mysql_type_datetime') as BINARY(35)), '\0', '') from t where c='opaque_mysql_type_datetime';
5135select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='opaque_mysql_type_geom') as BINARY(35)), '\0', '') from t where c='opaque_mysql_type_geom';
5136select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='opaque_mysql_type_bit') as BINARY(35)), '\0', '') from t where c='opaque_mysql_type_bit';
5137select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='opaque_mysql_type_year') as BINARY(35)), '\0', '') from t where c='opaque_mysql_type_year';
5138select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='opaque_mysql_type_blob') as BINARY(35)), '\0', '') from t where c='opaque_mysql_type_blob';
5139select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='opaque_mysql_type_longblob') as BINARY(35)), '\0', '') from t where c='opaque_mysql_type_longblob';
5140select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='opaque_mysql_type_mediumblob') as BINARY(35)), '\0', '') from t where c='opaque_mysql_type_mediumblob';
5141select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='opaque_mysql_type_tinyblob') as BINARY(35)), '\0', '') from t where c='opaque_mysql_type_tinyblob';
5142select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='opaque_mysql_type_varbinary') as BINARY(35)), '\0', '') from t where c='opaque_mysql_type_varbinary';
5143select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='opaque_mysql_type_binary') as BINARY(35)), '\0', '') from t where c='opaque_mysql_type_binary';
5144select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='opaque_mysql_type_varchar') as BINARY(35)), '\0', '') from t where c='opaque_mysql_type_varchar';
5145select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='opaque_mysql_type_string') as BINARY(35)), '\0', '') from t where c='opaque_mysql_type_string';
5146select concat('From JSON subselect ',c, ' as BINARY(35)'), replace(cast((select j from t where c='opaque_mysql_type_var_string') as BINARY(35)), '\0', '') from t where c='opaque_mysql_type_var_string';
5147
5148select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='null') as CHAR(35)) from t where c='null';
5149select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='bool') as CHAR(35)) from t where c='bool';
5150select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='uint') as CHAR(35)) from t where c='uint';
5151select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='int') as CHAR(35)) from t where c='int';
5152select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='double') as CHAR(35)) from t where c='double';
5153select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='stringany') as CHAR(35)) from t where c='stringany';
5154select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='stringint') as CHAR(35)) from t where c='stringint';
5155select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='stringdecimal') as CHAR(35)) from t where c='stringdecimal';
5156select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='object') as CHAR(35)) from t where c='object';
5157select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='array') as CHAR(35)) from t where c='array';
5158select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='opaque_mysql_type_decimal') as CHAR(35)) from t where c='opaque_mysql_type_decimal';
5159select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='opaque_mysql_type_set') as CHAR(35)) from t where c='opaque_mysql_type_set';
5160select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='opaque_mysql_type_enum') as CHAR(35)) from t where c='opaque_mysql_type_enum';
5161select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='opaque_mysql_type_date') as CHAR(35)) from t where c='opaque_mysql_type_date';
5162select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='opaque_mysql_type_time') as CHAR(35)) from t where c='opaque_mysql_type_time';
5163select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='opaque_mysql_type_datetime') as CHAR(35)) from t where c='opaque_mysql_type_datetime';
5164select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='opaque_mysql_type_geom') as CHAR(35)) from t where c='opaque_mysql_type_geom';
5165select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='opaque_mysql_type_bit') as CHAR(35)) from t where c='opaque_mysql_type_bit';
5166select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='opaque_mysql_type_year') as CHAR(35)) from t where c='opaque_mysql_type_year';
5167select concat('From JSON subselect ',c, ' as CHAR(35))'), cast(j as CHAR(35)) from t where c='opaque_mysql_type_year';
5168select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='opaque_mysql_type_blob') as CHAR(35)) from t where c='opaque_mysql_type_blob';
5169select concat('From JSON subselect ',c, ' as CHAR(35))'), cast(j as CHAR(35)) from t where c='opaque_mysql_type_longblob';
5170select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='opaque_mysql_type_mediumblob') as CHAR(35)) from t where c='opaque_mysql_type_mediumblob';
5171select concat('From JSON subselect ',c, ' as CHAR(35))'), cast(j as CHAR(35)) from t where c='opaque_mysql_type_tinyblob';
5172select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='opaque_mysql_type_varbinary') as CHAR(35)) from t where c='opaque_mysql_type_varbinary';
5173select concat('From JSON subselect ',c, ' as CHAR(35))'), cast(j as CHAR(35)) from t where c='opaque_mysql_type_binary';
5174select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='opaque_mysql_type_varchar') as CHAR(35)) from t where c='opaque_mysql_type_varchar';
5175select concat('From JSON subselect ',c, ' as CHAR(35))'), cast(j as CHAR(35)) from t where c='opaque_mysql_type_string';
5176select concat('From JSON subselect ',c, ' as CHAR(35))'), cast((select j from t where c='opaque_mysql_type_var_string') as CHAR(35)) from t where c='opaque_mysql_type_var_string';
5177
5178select concat('From JSON subselect ',c, ' as DATE'), cast((select j from t where c='null') as DATE) from t where c='null';
5179select concat('From JSON subselect ',c, ' as DATE'), cast(j as DATE) from t where c='bool';
5180select concat('From JSON subselect ',c, ' as DATE'), cast((select j from t where c='uint') as DATE) from t where c='uint';
5181select concat('From JSON subselect ',c, ' as DATE'), cast(j as DATE) from t where c='int';
5182select concat('From JSON subselect ',c, ' as DATE'), cast((select j from t where c='double') as DATE) from t where c='double';
5183select concat('From JSON subselect ',c, ' as DATE'), cast(j as DATE) from t where c='stringany';
5184select concat('From JSON subselect ',c, ' as DATE'), cast((select j from t where c='stringint') as DATE) from t where c='stringint';
5185select concat('From JSON subselect ',c, ' as DATE'), cast(j as DATE) from t where c='stringdecimal';
5186select concat('From JSON subselect ',c, ' as DATE'), cast((select j from t where c='object') as DATE) from t where c='object';
5187select concat('From JSON subselect ',c, ' as DATE'), cast(j as DATE) from t where c='array';
5188select concat('From JSON subselect ',c, ' as DATE'), cast((select j from t where c='opaque_mysql_type_decimal') as DATE) from t where c='opaque_mysql_type_decimal';
5189select concat('From JSON subselect ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_set';
5190select concat('From JSON subselect ',c, ' as DATE'), cast((select j from t where c='opaque_mysql_type_enum') as DATE) from t where c='opaque_mysql_type_enum';
5191select concat('From JSON subselect ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_date';
5192--replace_regex /2015-01-15/--EXPECTED_DATE--/ /[0-9]{4}-[0-9]{2}-[0-9]{2}/--DATE--/
5193select concat('From JSON subselect ',c, ' as DATE'), cast((select j from t where c='opaque_mysql_type_time') as DATE) from t where c='opaque_mysql_type_time';
5194select concat('From JSON subselect ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_datetime';
5195select concat('From JSON subselect ',c, ' as DATE'), cast((select j from t where c='opaque_mysql_type_geom') as DATE) from t where c='opaque_mysql_type_geom';
5196select concat('From JSON subselect ',c, ' as DATE'), cast(j as DATE) from t where c='opaque_mysql_type_bit';
5197select concat('From JSON subselect ',c, ' as DATE'), cast((select j from t where c='opaque_mysql_type_year') as DATE) from t where c='opaque_mysql_type_year';
5198select concat('From JSON subselect ',c, ' as DATE'), cast((select j from t where c='opaque_mysql_type_blob') as DATE) from t where c='opaque_mysql_type_blob';
5199select concat('From JSON subselect ',c, ' as DATE'), cast((select j from t where c='opaque_mysql_type_longblob') as DATE) from t where c='opaque_mysql_type_longblob';
5200select concat('From JSON subselect ',c, ' as DATE'), cast((select j from t where c='opaque_mysql_type_mediumblob') as DATE) from t where c='opaque_mysql_type_mediumblob';
5201select concat('From JSON subselect ',c, ' as DATE'), cast((select j from t where c='opaque_mysql_type_tinyblob') as DATE) from t where c='opaque_mysql_type_tinyblob';
5202select concat('From JSON subselect ',c, ' as DATE'), cast((select j from t where c='opaque_mysql_type_varbinary') as DATE) from t where c='opaque_mysql_type_varbinary';
5203select concat('From JSON subselect ',c, ' as DATE'), cast((select j from t where c='opaque_mysql_type_binary') as DATE) from t where c='opaque_mysql_type_binary';
5204select concat('From JSON subselect ',c, ' as DATE'), cast((select j from t where c='opaque_mysql_type_varchar') as DATE) from t where c='opaque_mysql_type_varchar';
5205select concat('From JSON subselect ',c, ' as DATE'), cast((select j from t where c='opaque_mysql_type_string') as DATE) from t where c='opaque_mysql_type_string';
5206select concat('From JSON subselect ',c, ' as DATE'), cast((select j from t where c='opaque_mysql_type_var_string') as DATE) from t where c='opaque_mysql_type_var_string';
5207
5208
5209select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='null') as DATETIME) from t where c='null';
5210select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='bool') as DATETIME) from t where c='bool';
5211select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='uint') as DATETIME) from t where c='uint';
5212select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='int') as DATETIME) from t where c='int';
5213select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='double') as DATETIME) from t where c='double';
5214select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='stringany') as DATETIME) from t where c='stringany';
5215select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='stringint') as DATETIME) from t where c='stringint';
5216select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='stringdecimal') as DATETIME) from t where c='stringdecimal';
5217select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='object') as DATETIME) from t where c='object';
5218select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='array') as DATETIME) from t where c='array';
5219select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='opaque_mysql_type_decimal') as DATETIME) from t where c='opaque_mysql_type_decimal';
5220select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='opaque_mysql_type_set') as DATETIME) from t where c='opaque_mysql_type_set';
5221select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='opaque_mysql_type_enum') as DATETIME) from t where c='opaque_mysql_type_enum';
5222select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='opaque_mysql_type_date') as DATETIME) from t where c='opaque_mysql_type_date';
5223--replace_regex /2015-01-15/--EXPECTED_DATE--/ /[0-9]{4}-[0-9]{2}-[0-9]{2}/--DATE--/
5224select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='opaque_mysql_type_time') as DATETIME) from t where c='opaque_mysql_type_time';
5225select concat('From JSON subselect ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_datetime';
5226select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='opaque_mysql_type_geom') as DATETIME) from t where c='opaque_mysql_type_geom';
5227select concat('From JSON subselect ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_bit';
5228select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='opaque_mysql_type_year') as DATETIME) from t where c='opaque_mysql_type_year';
5229select concat('From JSON subselect ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_year';
5230select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='opaque_mysql_type_blob') as DATETIME) from t where c='opaque_mysql_type_blob';
5231select concat('From JSON subselect ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_longblob';
5232select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='opaque_mysql_type_mediumblob') as DATETIME) from t where c='opaque_mysql_type_mediumblob';
5233select concat('From JSON subselect ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_tinyblob';
5234select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='opaque_mysql_type_varbinary') as DATETIME) from t where c='opaque_mysql_type_varbinary';
5235select concat('From JSON subselect ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_binary';
5236select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='opaque_mysql_type_varchar') as DATETIME) from t where c='opaque_mysql_type_varchar';
5237select concat('From JSON subselect ',c, ' as DATETIME'), cast(j as DATETIME) from t where c='opaque_mysql_type_string';
5238select concat('From JSON subselect ',c, ' as DATETIME'), cast((select j from t where c='opaque_mysql_type_var_string') as DATETIME) from t where c='opaque_mysql_type_var_string';
5239
5240select concat('From JSON subselect ',c, ' as TIME'), cast((select j from t where c='null') as TIME) from t where c='null';
5241select concat('From JSON subselect ',c, ' as TIME'), cast(j as TIME) from t where c='bool';
5242select concat('From JSON subselect ',c, ' as TIME'), cast((select j from t where c='uint') as TIME) from t where c='uint';
5243select concat('From JSON subselect ',c, ' as TIME'), cast(j as TIME) from t where c='int';
5244select concat('From JSON subselect ',c, ' as TIME'), cast((select j from t where c='double') as TIME) from t where c='double';
5245select concat('From JSON subselect ',c, ' as TIME'), cast(j as TIME) from t where c='stringany';
5246select concat('From JSON subselect ',c, ' as TIME'), cast((select j from t where c='stringint') as TIME) from t where c='stringint';
5247select concat('From JSON subselect ',c, ' as TIME'), cast(j as TIME) from t where c='stringdecimal';
5248select concat('From JSON subselect ',c, ' as TIME'), cast((select j from t where c='object') as TIME) from t where c='object';
5249select concat('From JSON subselect ',c, ' as TIME'), cast(j as TIME) from t where c='array';
5250select concat('From JSON subselect ',c, ' as TIME'), cast((select j from t where c='opaque_mysql_type_decimal') as TIME) from t where c='opaque_mysql_type_decimal';
5251select concat('From JSON subselect ',c, ' as TIME'), cast(j as TIME) from t where c='opaque_mysql_type_set';
5252select concat('From JSON subselect ',c, ' as TIME'), cast((select j from t where c='opaque_mysql_type_enum') as TIME) from t where c='opaque_mysql_type_enum';
5253select concat('From JSON subselect ',c, ' as TIME'), cast(j as TIME) from t where c='opaque_mysql_type_date';
5254select concat('From JSON subselect ',c, ' as TIME'), cast((select j from t where c='opaque_mysql_type_time') as TIME) from t where c='opaque_mysql_type_time';
5255select concat('From JSON subselect ',c, ' as TIME'), cast(j as TIME) from t where c='opaque_mysql_type_datetime';
5256select concat('From JSON subselect ',c, ' as TIME'), cast((select j from t where c='opaque_mysql_type_geom') as TIME) from t where c='opaque_mysql_type_geom';
5257select concat('From JSON subselect ',c, ' as TIME'), cast(j as TIME) from t where c='opaque_mysql_type_bit';
5258select concat('From JSON subselect ',c, ' as TIME'), cast((select j from t where c='opaque_mysql_type_year') as TIME) from t where c='opaque_mysql_type_year';
5259select concat('From JSON subselect ',c, ' as TIME'), cast(j as TIME) from t where c='opaque_mysql_type_year';
5260select concat('From JSON subselect ',c, ' as TIME'), cast((select j from t where c='opaque_mysql_type_blob') as TIME) from t where c='opaque_mysql_type_blob';
5261select concat('From JSON subselect ',c, ' as TIME'), cast(j as TIME) from t where c='opaque_mysql_type_longblob';
5262select concat('From JSON subselect ',c, ' as TIME'), cast((select j from t where c='opaque_mysql_type_mediumblob') as TIME) from t where c='opaque_mysql_type_mediumblob';
5263select concat('From JSON subselect ',c, ' as TIME'), cast(j as TIME) from t where c='opaque_mysql_type_tinyblob';
5264select concat('From JSON subselect ',c, ' as TIME'), cast((select j from t where c='opaque_mysql_type_varbinary') as TIME) from t where c='opaque_mysql_type_varbinary';
5265select concat('From JSON subselect ',c, ' as TIME'), cast(j as TIME) from t where c='opaque_mysql_type_binary';
5266select concat('From JSON subselect ',c, ' as TIME'), cast((select j from t where c='opaque_mysql_type_varchar') as TIME) from t where c='opaque_mysql_type_varchar';
5267select concat('From JSON subselect ',c, ' as TIME'), cast(j as TIME) from t where c='opaque_mysql_type_string';
5268select concat('From JSON subselect ',c, ' as TIME'), cast((select j from t where c='opaque_mysql_type_var_string') as TIME) from t where c='opaque_mysql_type_var_string';
5269
5270select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast((select j from t where c='null') as DECIMAL(5,2)) from t where c='null';
5271select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast(j as DECIMAL(5,2)) from t where c='bool';
5272select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast((select j from t where c='uint') as DECIMAL(5,2)) from t where c='uint';
5273select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast(j as DECIMAL(5,2)) from t where c='int';
5274select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast((select j from t where c='double') as DECIMAL(5,2)) from t where c='double';
5275select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast(j as DECIMAL(5,2)) from t where c='stringany';
5276select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast((select j from t where c='stringint') as DECIMAL(5,2)) from t where c='stringint';
5277select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast(j as DECIMAL(5,2)) from t where c='stringdecimal';
5278select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast((select j from t where c='object') as DECIMAL(5,2)) from t where c='object';
5279select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast(j as DECIMAL(5,2)) from t where c='array';
5280select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast((select j from t where c='opaque_mysql_type_decimal') as DECIMAL(5,2)) from t where c='opaque_mysql_type_decimal';
5281select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast(j as DECIMAL(5,2)) from t where c='opaque_mysql_type_set';
5282select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast((select j from t where c='opaque_mysql_type_enum') as DECIMAL(5,2)) from t where c='opaque_mysql_type_enum';
5283select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast(j as DECIMAL(5,2)) from t where c='opaque_mysql_type_date';
5284select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast((select j from t where c='opaque_mysql_type_time') as DECIMAL(5,2)) from t where c='opaque_mysql_type_time';
5285select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast(j as DECIMAL(5,2)) from t where c='opaque_mysql_type_datetime';
5286select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast((select j from t where c='opaque_mysql_type_geom') as DECIMAL(5,2)) from t where c='opaque_mysql_type_geom';
5287select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast(j as DECIMAL(5,2)) from t where c='opaque_mysql_type_bit';
5288select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast((select j from t where c='opaque_mysql_type_year') as DECIMAL(5,2)) from t where c='opaque_mysql_type_year';
5289select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast(j as DECIMAL(5,2)) from t where c='opaque_mysql_type_year';
5290select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast((select j from t where c='opaque_mysql_type_blob') as DECIMAL(5,2)) from t where c='opaque_mysql_type_blob';
5291select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast(j as DECIMAL(5,2)) from t where c='opaque_mysql_type_longblob';
5292select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast((select j from t where c='opaque_mysql_type_mediumblob') as DECIMAL(5,2)) from t where c='opaque_mysql_type_mediumblob';
5293select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast(j as DECIMAL(5,2)) from t where c='opaque_mysql_type_tinyblob';
5294select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast((select j from t where c='opaque_mysql_type_varbinary') as DECIMAL(5,2)) from t where c='opaque_mysql_type_varbinary';
5295select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast(j as DECIMAL(5,2)) from t where c='opaque_mysql_type_binary';
5296select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast((select j from t where c='opaque_mysql_type_varchar') as DECIMAL(5,2)) from t where c='opaque_mysql_type_varchar';
5297select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast(j as DECIMAL(5,2)) from t where c='opaque_mysql_type_string';
5298select concat('From JSON subselect ',c, ' as DECIMAL(5,2)'), cast((select j from t where c='opaque_mysql_type_var_string') as DECIMAL(5,2)) from t where c='opaque_mysql_type_var_string';
5299
5300select concat('From JSON subselect ',c, ' as UNSIGNED'), cast((select j from t where c='null') as UNSIGNED) from t where c='null';
5301select concat('From JSON subselect ',c, ' as UNSIGNED'), cast(j as UNSIGNED) from t where c='bool';
5302select concat('From JSON subselect ',c, ' as UNSIGNED'), cast((select j from t where c='uint') as UNSIGNED) from t where c='uint';
5303select concat('From JSON subselect ',c, ' as UNSIGNED'), cast(j as UNSIGNED) from t where c='int';
5304select concat('From JSON subselect ',c, ' as UNSIGNED'), cast((select j from t where c='double') as UNSIGNED) from t where c='double';
5305select concat('From JSON subselect ',c, ' as UNSIGNED'), cast(j as UNSIGNED) from t where c='stringany';
5306select concat('From JSON subselect ',c, ' as UNSIGNED'), cast((select j from t where c='stringint') as UNSIGNED) from t where c='stringint';
5307select concat('From JSON subselect ',c, ' as UNSIGNED'), cast(j as UNSIGNED) from t where c='stringdecimal';
5308select concat('From JSON subselect ',c, ' as UNSIGNED'), cast((select j from t where c='object') as UNSIGNED) from t where c='object';
5309select concat('From JSON subselect ',c, ' as UNSIGNED'), cast(j as UNSIGNED) from t where c='array';
5310select concat('From JSON subselect ',c, ' as UNSIGNED'), cast((select j from t where c='opaque_mysql_type_decimal') as UNSIGNED) from t where c='opaque_mysql_type_decimal';
5311select concat('From JSON subselect ',c, ' as UNSIGNED'), cast(j as UNSIGNED) from t where c='opaque_mysql_type_set';
5312select concat('From JSON subselect ',c, ' as UNSIGNED'), cast((select j from t where c='opaque_mysql_type_enum') as UNSIGNED) from t where c='opaque_mysql_type_enum';
5313select concat('From JSON subselect ',c, ' as UNSIGNED'), cast(j as UNSIGNED) from t where c='opaque_mysql_type_date';
5314select concat('From JSON subselect ',c, ' as UNSIGNED'), cast((select j from t where c='opaque_mysql_type_time') as UNSIGNED) from t where c='opaque_mysql_type_time';
5315select concat('From JSON subselect ',c, ' as UNSIGNED'), cast(j as UNSIGNED) from t where c='opaque_mysql_type_datetime';
5316select concat('From JSON subselect ',c, ' as UNSIGNED'), cast((select j from t where c='opaque_mysql_type_geom') as UNSIGNED) from t where c='opaque_mysql_type_geom';
5317select concat('From JSON subselect ',c, ' as UNSIGNED'), cast(j as UNSIGNED) from t where c='opaque_mysql_type_bit';
5318select concat('From JSON subselect ',c, ' as UNSIGNED'), cast((select j from t where c='opaque_mysql_type_year') as UNSIGNED) from t where c='opaque_mysql_type_year';
5319select concat('From JSON subselect ',c, ' as UNSIGNED'), cast(j as UNSIGNED) from t where c='opaque_mysql_type_year';
5320select concat('From JSON subselect ',c, ' as UNSIGNED'), cast((select j from t where c='opaque_mysql_type_blob') as UNSIGNED) from t where c='opaque_mysql_type_blob';
5321select concat('From JSON subselect ',c, ' as UNSIGNED'), cast(j as UNSIGNED) from t where c='opaque_mysql_type_longblob';
5322select concat('From JSON subselect ',c, ' as UNSIGNED'), cast((select j from t where c='opaque_mysql_type_mediumblob') as UNSIGNED) from t where c='opaque_mysql_type_mediumblob';
5323select concat('From JSON subselect ',c, ' as UNSIGNED'), cast(j as UNSIGNED) from t where c='opaque_mysql_type_tinyblob';
5324select concat('From JSON subselect ',c, ' as UNSIGNED'), cast((select j from t where c='opaque_mysql_type_varbinary') as UNSIGNED) from t where c='opaque_mysql_type_varbinary';
5325select concat('From JSON subselect ',c, ' as UNSIGNED'), cast(j as UNSIGNED) from t where c='opaque_mysql_type_binary';
5326select concat('From JSON subselect ',c, ' as UNSIGNED'), cast((select j from t where c='opaque_mysql_type_varchar') as UNSIGNED) from t where c='opaque_mysql_type_varchar';
5327select concat('From JSON subselect ',c, ' as UNSIGNED'), cast(j as UNSIGNED) from t where c='opaque_mysql_type_string';
5328select concat('From JSON subselect ',c, ' as UNSIGNED'), cast((select j from t where c='opaque_mysql_type_var_string') as UNSIGNED) from t where c='opaque_mysql_type_var_string';
5329
5330select concat('From JSON subselect ',c, ' as SIGNED'), cast((select j from t where c='null') as SIGNED) from t where c='null';
5331select concat('From JSON subselect ',c, ' as SIGNED'), cast(j as SIGNED) from t where c='bool';
5332select concat('From JSON subselect ',c, ' as SIGNED'), cast((select j from t where c='uint') as SIGNED) from t where c='uint';
5333select concat('From JSON subselect ',c, ' as SIGNED'), cast(j as SIGNED) from t where c='int';
5334select concat('From JSON subselect ',c, ' as SIGNED'), cast((select j from t where c='double') as SIGNED) from t where c='double';
5335select concat('From JSON subselect ',c, ' as SIGNED'), cast(j as SIGNED) from t where c='stringany';
5336select concat('From JSON subselect ',c, ' as SIGNED'), cast((select j from t where c='stringint') as SIGNED) from t where c='stringint';
5337select concat('From JSON subselect ',c, ' as SIGNED'), cast(j as SIGNED) from t where c='stringdecimal';
5338select concat('From JSON subselect ',c, ' as SIGNED'), cast((select j from t where c='object') as SIGNED) from t where c='object';
5339select concat('From JSON subselect ',c, ' as SIGNED'), cast(j as SIGNED) from t where c='array';
5340select concat('From JSON subselect ',c, ' as SIGNED'), cast((select j from t where c='opaque_mysql_type_decimal') as SIGNED) from t where c='opaque_mysql_type_decimal';
5341select concat('From JSON subselect ',c, ' as SIGNED'), cast(j as SIGNED) from t where c='opaque_mysql_type_set';
5342select concat('From JSON subselect ',c, ' as SIGNED'), cast((select j from t where c='opaque_mysql_type_enum') as SIGNED) from t where c='opaque_mysql_type_enum';
5343select concat('From JSON subselect ',c, ' as SIGNED'), cast(j as SIGNED) from t where c='opaque_mysql_type_date';
5344select concat('From JSON subselect ',c, ' as SIGNED'), cast((select j from t where c='opaque_mysql_type_time') as SIGNED) from t where c='opaque_mysql_type_time';
5345select concat('From JSON subselect ',c, ' as SIGNED'), cast(j as SIGNED) from t where c='opaque_mysql_type_datetime';
5346select concat('From JSON subselect ',c, ' as SIGNED'), cast((select j from t where c='opaque_mysql_type_geom') as SIGNED) from t where c='opaque_mysql_type_geom';
5347select concat('From JSON subselect ',c, ' as SIGNED'), cast(j as SIGNED) from t where c='opaque_mysql_type_bit';
5348select concat('From JSON subselect ',c, ' as SIGNED'), cast((select j from t where c='opaque_mysql_type_year') as SIGNED) from t where c='opaque_mysql_type_year';
5349select concat('From JSON subselect ',c, ' as SIGNED'), cast(j as SIGNED) from t where c='opaque_mysql_type_year';
5350select concat('From JSON subselect ',c, ' as SIGNED'), cast((select j from t where c='opaque_mysql_type_blob') as SIGNED) from t where c='opaque_mysql_type_blob';
5351select concat('From JSON subselect ',c, ' as SIGNED'), cast(j as SIGNED) from t where c='opaque_mysql_type_longblob';
5352select concat('From JSON subselect ',c, ' as SIGNED'), cast((select j from t where c='opaque_mysql_type_mediumblob') as SIGNED) from t where c='opaque_mysql_type_mediumblob';
5353select concat('From JSON subselect ',c, ' as SIGNED'), cast(j as SIGNED) from t where c='opaque_mysql_type_tinyblob';
5354select concat('From JSON subselect ',c, ' as SIGNED'), cast((select j from t where c='opaque_mysql_type_varbinary') as SIGNED) from t where c='opaque_mysql_type_varbinary';
5355select concat('From JSON subselect ',c, ' as SIGNED'), cast(j as SIGNED) from t where c='opaque_mysql_type_binary';
5356select concat('From JSON subselect ',c, ' as SIGNED'), cast((select j from t where c='opaque_mysql_type_varchar') as SIGNED) from t where c='opaque_mysql_type_varchar';
5357select concat('From JSON subselect ',c, ' as SIGNED'), cast(j as SIGNED) from t where c='opaque_mysql_type_string';
5358select concat('From JSON subselect ',c, ' as SIGNED'), cast((select j from t where c='opaque_mysql_type_var_string') as SIGNED) from t where c='opaque_mysql_type_var_string';
5359
5360# JSON Comparator Test Cases
5361# Table Setup for a new JSON table containing all kind of unique
5362# data taken from this test itself.
5363#---------------------------------------------------------------
5364--disable_query_log
5365
5366create table t_bit select DISTINCT(_bit) FROM at;
5367create table t_tin select DISTINCT(_tin) FROM at;
5368create table t_boo select DISTINCT(_boo) FROM at;
5369create table t_sms select DISTINCT(_sms) FROM at;
5370create table t_smu select DISTINCT(_smu) FROM at;
5371create table t_mes select DISTINCT(_mes) FROM at;
5372create table t_meu select DISTINCT(_meu) FROM at;
5373create table t_ins select DISTINCT(_ins) FROM at;
5374create table t_inu select DISTINCT(_inu) FROM at;
5375create table t_bis select DISTINCT(_bis) FROM at;
5376create table t_biu select DISTINCT(_biu) FROM at;
5377create table t_dec select DISTINCT(_dec) FROM at;
5378create table t_flo select DISTINCT(_flo) FROM at;
5379create table t_dou select DISTINCT(_dou) FROM at;
5380create table t_dat select DISTINCT(_dat) FROM at;
5381create table t_dtt select DISTINCT(_dtt) FROM at;
5382create table t_smp select DISTINCT(_smp) FROM at;
5383create table t_tim select DISTINCT(_tim) FROM at;
5384create table t_yea select DISTINCT(_yea) FROM at;
5385create table t_chr select DISTINCT(_chr) FROM at;
5386create table t_vch select DISTINCT(_vch) FROM at;
5387create table t_bin select DISTINCT(_bin) FROM at;
5388create table t_vbn select DISTINCT(_vbn) FROM at;
5389create table t_tbl select DISTINCT(_tbl) FROM at;
5390create table t_ttx select DISTINCT(_ttx) FROM at;
5391create table t_blb select DISTINCT(_blb) FROM at;
5392create table t_txt select DISTINCT(_txt) FROM at;
5393create table t_mbb select DISTINCT(_mbb) FROM at;
5394create table t_mtx select DISTINCT(_mtx) FROM at;
5395create table t_lbb select DISTINCT(_lbb) FROM at;
5396create table t_ltx select DISTINCT(_ltx) FROM at;
5397create table t_enu select DISTINCT(_enu) FROM at;
5398create table t_set select DISTINCT(_set) FROM at;
5399create table t_geo select DISTINCT(_geo) FROM at;
5400create table t_pnt select DISTINCT(_pnt) FROM at;
5401create table t_lst select DISTINCT(_lst) FROM at;
5402create table t_pol select DISTINCT(_pol) FROM at;
5403create table t_mpt select DISTINCT(_mpt) FROM at;
5404create table t_mls select DISTINCT(_mls) FROM at;
5405create table t_mpy select DISTINCT(_mpy) FROM at;
5406create table t_gco select DISTINCT(_gco) FROM at;
5407
5408CREATE TABLE jj (col JSON);
5409INSERT INTO jj
5410SELECT CAST(_bit AS JSON) FROM t_bit UNION
5411SELECT CAST(_tin AS JSON) FROM t_tin UNION
5412SELECT CAST(_boo AS JSON) FROM t_boo UNION
5413SELECT CAST(_sms AS JSON) FROM t_sms UNION
5414SELECT CAST(_smu AS JSON) FROM t_smu UNION
5415SELECT CAST(_mes AS JSON) FROM t_mes UNION
5416SELECT CAST(_meu AS JSON) FROM t_meu UNION
5417SELECT CAST(_ins AS JSON) FROM t_ins UNION
5418SELECT CAST(_inu AS JSON) FROM t_inu UNION
5419SELECT CAST(_bis AS JSON) FROM t_bis UNION
5420SELECT CAST(_biu AS JSON) FROM t_biu UNION
5421SELECT CAST(_dec AS JSON) FROM t_dec UNION
5422SELECT CAST(_dou AS JSON) FROM t_dou UNION
5423SELECT CAST(_dat AS JSON) FROM t_dat UNION
5424SELECT CAST(_dtt AS JSON) FROM t_dtt UNION
5425SELECT CAST(_smp AS JSON) FROM t_smp UNION
5426SELECT CAST(_tim AS JSON) FROM t_tim UNION
5427SELECT CAST(_yea AS JSON) FROM t_yea UNION
5428SELECT CAST(_chr AS JSON) FROM t_chr UNION
5429SELECT CAST(_vch AS JSON) FROM t_vch UNION
5430SELECT CAST(_bin AS JSON) FROM t_bin UNION
5431SELECT CAST(_vbn AS JSON) FROM t_vbn UNION
5432SELECT CAST(_tbl AS JSON) FROM t_tbl UNION
5433SELECT CAST(_ttx AS JSON) FROM t_ttx UNION
5434SELECT CAST(_blb AS JSON) FROM t_blb UNION
5435SELECT CAST(_txt AS JSON) FROM t_txt UNION
5436SELECT CAST(_mbb AS JSON) FROM t_mbb UNION
5437SELECT CAST(_mtx AS JSON) FROM t_mtx UNION
5438SELECT CAST(_lbb AS JSON) FROM t_lbb UNION
5439SELECT CAST(_ltx AS JSON) FROM t_ltx UNION
5440SELECT CAST(_enu AS JSON) FROM t_enu UNION
5441SELECT CAST(_set AS JSON) FROM t_set UNION
5442SELECT CAST(_geo AS JSON) FROM t_geo UNION
5443SELECT CAST(_pnt AS JSON) FROM t_pnt UNION
5444SELECT CAST(_lst AS JSON) FROM t_lst UNION
5445SELECT CAST(_pol AS JSON) FROM t_pol UNION
5446SELECT CAST(_mpt AS JSON) FROM t_mpt UNION
5447SELECT CAST(_mls AS JSON) FROM t_mls UNION
5448SELECT CAST(_mpy AS JSON) FROM t_mpy UNION
5449SELECT CAST(_gco AS JSON) FROM t_gco UNION
5450SELECT CAST(_bit AS JSON) FROM t_bit UNION
5451SELECT CAST(_tin AS JSON) FROM t_tin UNION
5452SELECT CAST(_boo AS JSON) FROM t_boo UNION
5453SELECT CAST(_sms AS JSON) FROM t_sms UNION
5454SELECT CAST(_smu AS JSON) FROM t_smu UNION
5455SELECT CAST(_mes AS JSON) FROM t_mes UNION
5456SELECT CAST(_meu AS JSON) FROM t_meu UNION
5457SELECT CAST(_ins AS JSON) FROM t_ins UNION
5458SELECT CAST(_inu AS JSON) FROM t_inu UNION
5459SELECT CAST(_bis AS JSON) FROM t_bis UNION
5460SELECT CAST(_biu AS JSON) FROM t_biu UNION
5461SELECT CAST(_dec AS JSON) FROM t_dec UNION
5462SELECT CAST(_dou AS JSON) FROM t_dou UNION
5463SELECT CAST(_dat AS JSON) FROM t_dat UNION
5464SELECT CAST(_dtt AS JSON) FROM t_dtt UNION
5465SELECT CAST(_smp AS JSON) FROM t_smp UNION
5466SELECT CAST(_tim AS JSON) FROM t_tim UNION
5467SELECT CAST(_yea AS JSON) FROM t_yea UNION
5468SELECT CAST(_chr AS JSON) FROM t_chr UNION
5469SELECT CAST(_vch AS JSON) FROM t_vch UNION
5470SELECT CAST(_bin AS JSON) FROM t_bin UNION
5471SELECT CAST(_vbn AS JSON) FROM t_vbn UNION
5472SELECT CAST(_tbl AS JSON) FROM t_tbl UNION
5473SELECT CAST(_ttx AS JSON) FROM t_ttx UNION
5474SELECT CAST(_blb AS JSON) FROM t_blb UNION
5475SELECT CAST(_txt AS JSON) FROM t_txt UNION
5476SELECT CAST(_mbb AS JSON) FROM t_mbb UNION
5477SELECT CAST(_mtx AS JSON) FROM t_mtx UNION
5478SELECT CAST(_lbb AS JSON) FROM t_lbb UNION
5479SELECT CAST(_ltx AS JSON) FROM t_ltx UNION
5480SELECT CAST(_enu AS JSON) FROM t_enu UNION
5481SELECT CAST(_set AS JSON) FROM t_set UNION
5482SELECT CAST(_geo AS JSON) FROM t_geo UNION
5483SELECT CAST(_pnt AS JSON) FROM t_pnt UNION
5484SELECT CAST(_lst AS JSON) FROM t_lst UNION
5485SELECT CAST(_pol AS JSON) FROM t_pol UNION
5486SELECT CAST(_mpt AS JSON) FROM t_mpt UNION
5487SELECT CAST(_mls AS JSON) FROM t_mls UNION
5488SELECT CAST(_mpy AS JSON) FROM t_mpy UNION
5489SELECT CAST(_gco AS JSON) FROM t_gco UNION
5490SELECT _jsn FROM at;
5491
5492# JSON Data Type Weigtage Function. This is used in
5493# first level and second level validation
5494#---------------------------------------------
5495
5496CREATE FUNCTION GET_JSON_WEIGHT(json_type VARCHAR(100))
5497RETURNS INT DETERMINISTIC
5498RETURN CASE json_type
5499WHEN 'NULL' THEN 1
5500WHEN 'DECIMAL' THEN 2
5501WHEN 'DOUBLE' THEN 2
5502WHEN 'UNSIGNED INTEGER' THEN 2
5503WHEN 'INTEGER' THEN 2
5504WHEN 'BLOB' THEN 3
5505WHEN 'STRING' THEN 3
5506WHEN 'OBJECT' THEN 4
5507WHEN 'ARRAY' THEN 5
5508WHEN 'BOOLEAN' THEN 6
5509WHEN 'DATE' THEN 7
5510WHEN 'TIME' THEN 8
5511WHEN 'DATETIME' THEN 9
5512WHEN 'TIMESTAMP' THEN 9
5513WHEN 'OPAQUE' THEN 10
5514END;
5515
5516
5517# In this part comparision tests for each comparator
5518# for JSON vs JSON datatypes is present
5519#--------------------------------------------------------
5520
5521--source suite/json/inc/json_vs_json_comparator.inc
5522
5523# In this part comparision tests for each comparator
5524# for JSON vs Other datatypes is present
5525#--------------------------------------------------------
5526--source suite/json/inc/sql_vs_json_equalto.inc
5527--source suite/json/inc/sql_vs_json_lessthan.inc
5528--source suite/json/inc/sql_vs_json_greaterthan.inc
5529--source suite/json/inc/sql_vs_json_lessthanequalto.inc
5530--source suite/json/inc/sql_vs_json_greaterthanequalto.inc
5531--source suite/json/inc/sql_vs_json_notequal.inc
5532--source suite/json/inc/sql_vs_json_null_safe_equal_to.inc
5533
5534drop table t_bit;
5535drop table t_tin;
5536drop table t_boo;
5537drop table t_sms;
5538drop table t_smu;
5539drop table t_mes;
5540drop table t_meu;
5541drop table t_ins;
5542drop table t_inu;
5543drop table t_bis;
5544drop table t_biu;
5545drop table t_dec;
5546drop table t_flo;
5547drop table t_dou;
5548drop table t_dat;
5549drop table t_dtt;
5550drop table t_smp;
5551drop table t_tim;
5552drop table t_yea;
5553drop table t_chr;
5554drop table t_vch;
5555drop table t_bin;
5556drop table t_vbn;
5557drop table t_tbl;
5558drop table t_ttx;
5559drop table t_blb;
5560drop table t_txt;
5561drop table t_mbb;
5562drop table t_mtx;
5563drop table t_lbb;
5564drop table t_ltx;
5565drop table t_enu;
5566drop table t_set;
5567drop table t_geo;
5568drop table t_pnt;
5569drop table t_lst;
5570drop table t_pol;
5571drop table t_mpt;
5572drop table t_mls;
5573drop table t_mpy;
5574drop table t_gco;
5575drop table jj;
5576drop table t;
5577drop table at;
5578
5579drop function get_json_weight;
5580