333
333
create table t1 SELECT "a" as a UNION select "aa" as a;
334
334
select * from t1;
335
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
336
335
show create table t1;
338
337
create table t1 SELECT 12 as a UNION select "aa" as a;
339
338
select * from t1;
340
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
341
339
show create table t1;
343
341
create table t1 SELECT 12 as a UNION select 12.2 as a;
344
342
select * from t1;
345
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
346
343
show create table t1;
352
349
create table t1 SELECT it2 from t2 UNION select it1 from t2;
353
350
select * from t1;
354
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
355
351
show create table t1;
357
353
create table t1 SELECT it2 from t2 UNION select i from t2;
358
354
select * from t1;
359
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
360
355
show create table t1;
362
357
create table t1 SELECT i from t2 UNION select f from t2;
363
358
select * from t1;
364
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
365
359
show create table t1;
367
361
create table t1 SELECT f from t2 UNION select d from t2;
368
362
select * from t1;
369
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
370
363
show create table t1;
372
365
create table t1 SELECT ib from t2 UNION select f from t2;
373
366
select * from t1;
374
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
375
367
show create table t1;
377
369
create table t1 SELECT ib from t2 UNION select d from t2;
378
370
select * from t1;
379
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
380
371
show create table t1;
382
373
create table t1 SELECT f from t2 UNION select da from t2;
383
374
select * from t1;
384
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
385
375
show create table t1;
387
377
create table t1 SELECT da from t2 UNION select dt from t2;
388
378
select * from t1;
389
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
390
379
show create table t1;
392
381
create table t1 SELECT dt from t2 UNION select trim(sc) from t2;
393
382
select trim(dt) from t1;
394
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
395
383
show create table t1;
397
385
create table t1 SELECT dt from t2 UNION select sv from t2;
398
386
select * from t1;
399
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
400
387
show create table t1;
402
389
create table t1 SELECT sc from t2 UNION select sv from t2;
403
390
select * from t1;
404
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
405
391
show create table t1;
407
393
create table t1 SELECT dt from t2 UNION select b from t2;
408
394
select * from t1;
409
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
410
395
show create table t1;
412
397
create table t1 SELECT sv from t2 UNION select b from t2;
413
398
select * from t1;
414
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
415
399
show create table t1;
417
401
create table t1 SELECT i from t2 UNION select d from t2 UNION select b from t2;
418
402
select * from t1;
419
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
420
403
show create table t1;
422
405
create table t1 SELECT sv from t2 UNION select tx from t2;
423
406
select * from t1;
424
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
425
407
show create table t1;
427
409
create table t1 SELECT b from t2 UNION select tx from t2;
428
410
select * from t1;
429
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
430
411
show create table t1;
431
412
drop table t1,t2;
432
413
create table t1 select 1 union select -1;
433
414
select * from t1;
434
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
435
415
show create table t1;
755
728
# b ENUM("one", "two") character set utf8,
756
729
# c ENUM("one", "two")
758
#--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
759
731
#show create table t1;
760
732
#insert into t1 values ('�', 'one', 'one'), ('�', 'two', 'one'), ('�', NULL, NULL);
761
733
#create table t2 select NULL union select a from t1;
798
770
create table t1 (a varchar(5));
799
771
create table t2 select * from t1 union select 'abcdefghijkl';
800
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
801
772
show create table t2;
802
773
select row_format from information_schema.TABLES where table_schema="test" and table_name="t2";
803
774
alter table t2 ROW_FORMAT=fixed;
804
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
805
775
show create table t2;
806
776
drop table t1,t2;
814
784
INSERT INTO t1 VALUES ('a'),('b');
815
785
SELECT left(a,100000000) FROM t1 UNION SELECT b FROM t2;
816
786
create table t3 SELECT left(a,100000000) FROM t1 UNION SELECT b FROM t2;
817
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
818
787
show create table t3;
819
788
drop tables t1,t2,t3;
829
798
INSERT INTO t1 VALUES ('a'),('b');
830
799
SELECT left(a,100000000) FROM t1 UNION SELECT b FROM t2;
831
800
create table t3 SELECT left(a,100000000) FROM t1 UNION SELECT b FROM t2;
832
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
833
801
show create table t3;
834
802
drop tables t1,t2,t3;
844
812
CREATE TABLE t2 (b varchar(20));
845
813
INSERT INTO t1 VALUES ('a');
846
814
CREATE TABLE t3 SELECT REPEAT(a,20000000) AS a FROM t1 UNION SELECT b FROM t2;
847
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
848
815
SHOW CREATE TABLE t3;
849
816
DROP TABLES t1,t3;
850
817
CREATE TABLE t1 (a tinytext);
851
818
INSERT INTO t1 VALUES ('a');
852
819
CREATE TABLE t3 SELECT REPEAT(a,2) AS a FROM t1 UNION SELECT b FROM t2;
853
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
854
820
SHOW CREATE TABLE t3;
855
821
DROP TABLES t1,t3;
856
822
CREATE TABLE t1 (a mediumtext);
857
823
INSERT INTO t1 VALUES ('a');
858
824
CREATE TABLE t3 SELECT REPEAT(a,2) AS a FROM t1 UNION SELECT b FROM t2;
859
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
860
825
SHOW CREATE TABLE t3;
861
826
DROP TABLES t1,t3;
862
827
CREATE TABLE t1 (a tinyblob);
863
828
INSERT INTO t1 VALUES ('a');
864
829
CREATE TABLE t3 SELECT REPEAT(a,2) AS a FROM t1 UNION SELECT b FROM t2;
865
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
866
830
SHOW CREATE TABLE t3;
867
831
DROP TABLES t1,t2,t3;
868
832
SET max_allowed_packet:= @tmp_max;
885
849
create table t1(f1 char(1), f2 char(5), f3 blob, f4 blob, f5 timestamp, f6 varchar(1) collate utf8_general_ci, f7 text);
886
850
create table t2 as select *, f6 as f8 from t1 union select *, f7 from t1;
887
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
888
851
show create table t2;
889
852
drop table t1, t2;