Merge Stewart - including adapting and expanding the "differences from mysql" page from the wiki. Merge Stewart - fix bug 668143: drizzleslap with --commit runs second iteration data load in a transaction
select 1 'is_in_group', a.user_name, c.group_name, b.id from t1 a, t3 b, t2 c where a.id = b.user_id and b.group_id = c.id UNION select 0 'is_in_group', a.user_name, c.group_name, null from t1 a CROSS JOIN t2 c;
518
select 1 'is_in_group', a.user_name, c.group_name, b.id from t1 a, t3 b, t2 c where a.id = b.user_id and b.group_id = c.id UNION select 0 'is_in_group', a.user_name, c.group_name, null from t1 a, t2 c;
519
519
is_in_group user_name group_name id
520
520
1 Tester Group A 1
521
521
0 Tester Group A NULL
539
539
select * from t1;
540
540
a
541
541
a
542
aa
543
542
show create table t1;
544
543
Table Create Table
545
544
t1 CREATE TABLE `t1` (
546
`a` VARCHAR(2) COLLATE utf8_general_ci NOT NULL DEFAULT ''
545
`a` VARCHAR(1) COLLATE utf8_general_ci NOT NULL DEFAULT ''
547
546
) ENGINE=DEFAULT COLLATE = utf8_general_ci
548
547
drop table t1;
549
548
create table t1 SELECT 12 as a UNION select "aa" as a;
554
553
show create table t1;
555
554
Table Create Table
556
555
t1 CREATE TABLE `t1` (
557
`a` VARBINARY(8) NOT NULL DEFAULT ''
556
`a` VARBINARY(4) NOT NULL DEFAULT ''
558
557
) ENGINE=DEFAULT COLLATE = utf8_general_ci
559
558
drop table t1;
560
559
create table t1 SELECT 12 as a UNION select 12.2 as a;
666
665
show create table t1;
667
666
Table Create Table
668
667
t1 CREATE TABLE `t1` (
669
`dt` VARBINARY(40) DEFAULT NULL
668
`dt` VARBINARY(19) DEFAULT NULL
670
669
) ENGINE=DEFAULT COLLATE = utf8_general_ci
671
670
drop table t1;
672
671
create table t1 SELECT dt from t2 UNION select sv from t2;
766
765
show create table t1;
767
766
Table Create Table
768
767
t1 CREATE TABLE `t1` (
769
`test` VARCHAR(5) COLLATE utf8_general_ci NOT NULL DEFAULT ''
768
`test` VARCHAR(4) COLLATE utf8_general_ci NOT NULL DEFAULT ''