Merge Andrew - fix bug 628419 - A double free was possible during a range query cleanup Merge Andrew - fix bug 550251 - If an error occurred during results fetch in drizzle client the result set was not freed correctly ending in segfault upon client end. Merge Andrew - fix bug 619591 - In SHOW CREATE TABLE type (INT, VARCHAR, etc...) is now uppercase and Collation is now shown for VARCHAR columns
`a` VARCHAR(1) COLLATE utf8_general_ci NOT NULL DEFAULT ''
546
546
) ENGINE=DEFAULT COLLATE = utf8_general_ci
547
547
drop table t1;
548
548
create table t1 SELECT 12 as a UNION select "aa" as a;
553
553
show create table t1;
554
554
Table Create Table
555
555
t1 CREATE TABLE `t1` (
556
`a` varbinary(4) NOT NULL DEFAULT ''
556
`a` VARBINARY(4) NOT NULL DEFAULT ''
557
557
) ENGINE=DEFAULT COLLATE = utf8_general_ci
558
558
drop table t1;
559
559
create table t1 SELECT 12 as a UNION select 12.2 as a;
564
564
show create table t1;
565
565
Table Create Table
566
566
t1 CREATE TABLE `t1` (
567
`a` decimal(3,1) NOT NULL DEFAULT '0.0'
567
`a` DECIMAL(3,1) NOT NULL DEFAULT '0.0'
568
568
) ENGINE=DEFAULT COLLATE = utf8_general_ci
569
569
drop table t1;
570
570
create table t2 (it1 int, it2 int not null, i int not null, ib int, f float, d double, da date, dt datetime, sc char(10), sv varchar(10), b blob, tx text);
577
577
show create table t1;
578
578
Table Create Table
579
579
t1 CREATE TABLE `t1` (
580
`it2` int DEFAULT NULL
580
`it2` INT DEFAULT NULL
581
581
) ENGINE=DEFAULT COLLATE = utf8_general_ci
582
582
drop table t1;
583
583
create table t1 SELECT it2 from t2 UNION select i from t2;
588
588
show create table t1;
589
589
Table Create Table
590
590
t1 CREATE TABLE `t1` (
591
`it2` int NOT NULL DEFAULT '0'
591
`it2` INT NOT NULL DEFAULT '0'
592
592
) ENGINE=DEFAULT COLLATE = utf8_general_ci
593
593
drop table t1;
594
594
create table t1 SELECT i from t2 UNION select f from t2;
599
599
show create table t1;
600
600
Table Create Table
601
601
t1 CREATE TABLE `t1` (
602
`i` double DEFAULT NULL
602
`i` DOUBLE DEFAULT NULL
603
603
) ENGINE=DEFAULT COLLATE = utf8_general_ci
604
604
drop table t1;
605
605
create table t1 SELECT f from t2 UNION select d from t2;
610
610
show create table t1;
611
611
Table Create Table
612
612
t1 CREATE TABLE `t1` (
613
`f` double DEFAULT NULL
613
`f` DOUBLE DEFAULT NULL
614
614
) ENGINE=DEFAULT COLLATE = utf8_general_ci
615
615
drop table t1;
616
616
create table t1 SELECT ib from t2 UNION select f from t2;
621
621
show create table t1;
622
622
Table Create Table
623
623
t1 CREATE TABLE `t1` (
624
`ib` double DEFAULT NULL
624
`ib` DOUBLE DEFAULT NULL
625
625
) ENGINE=DEFAULT COLLATE = utf8_general_ci
626
626
drop table t1;
627
627
create table t1 SELECT ib from t2 UNION select d from t2;
632
632
show create table t1;
633
633
Table Create Table
634
634
t1 CREATE TABLE `t1` (
635
`ib` double DEFAULT NULL
635
`ib` DOUBLE DEFAULT NULL
636
636
) ENGINE=DEFAULT COLLATE = utf8_general_ci
637
637
drop table t1;
638
638
create table t1 SELECT f from t2 UNION select da from t2;
643
643
show create table t1;
644
644
Table Create Table
645
645
t1 CREATE TABLE `t1` (
646
`f` varbinary(22) DEFAULT NULL
646
`f` VARBINARY(22) DEFAULT NULL
647
647
) ENGINE=DEFAULT COLLATE = utf8_general_ci
648
648
drop table t1;
649
649
create table t1 SELECT da from t2 UNION select dt from t2;
654
654
show create table t1;
655
655
Table Create Table
656
656
t1 CREATE TABLE `t1` (
657
`da` datetime DEFAULT NULL
657
`da` DATETIME DEFAULT NULL
658
658
) ENGINE=DEFAULT COLLATE = utf8_general_ci
659
659
drop table t1;
660
660
create table t1 SELECT dt from t2 UNION select trim(sc) from t2;
665
665
show create table t1;
666
666
Table Create Table
667
667
t1 CREATE TABLE `t1` (
668
`dt` varbinary(19) DEFAULT NULL
668
`dt` VARBINARY(19) DEFAULT NULL
669
669
) ENGINE=DEFAULT COLLATE = utf8_general_ci
670
670
drop table t1;
671
671
create table t1 SELECT dt from t2 UNION select sv from t2;
676
676
show create table t1;
677
677
Table Create Table
678
678
t1 CREATE TABLE `t1` (
679
`dt` varbinary(40) DEFAULT NULL
679
`dt` VARBINARY(40) DEFAULT NULL
680
680
) ENGINE=DEFAULT COLLATE = utf8_general_ci
681
681
drop table t1;
682
682
create table t1 SELECT sc from t2 UNION select sv from t2;