~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/union.test

  • Committer: Monty Taylor
  • Date: 2009-01-28 04:37:46 UTC
  • mto: (779.7.3 devel)
  • mto: This revision was merged to the branch mainline in revision 816.
  • Revision ID: mordred@inaugust.com-20090128043746-d2yukekishwn3ftm
TurnedĀ onĀ -Wshadow.

Show diffs side-by-side

added added

removed removed

Lines of Context:
416
416
drop table t1;
417
417
-- error 1054
418
418
create table t1 select _latin1"test" union select _latin1"testt" ;
 
419
-- error 1054
419
420
create table t1 select _utf8"test" union select _utf8"testt" ;
 
421
create table t1 select "test" union select "testt" ;
420
422
show create table t1;
421
423
drop table t1;
422
424
 
586
588
# Bug #6139 UNION doesn't understand collate in the column of second select
587
589
#
588
590
create table t1 as
589
 
(select _utf8'test') union
590
 
(select _utf8'TEST') union
591
 
(select _utf8'TeST');
592
 
show create table t1;
593
 
select count(*) from t1;
594
 
drop table t1;
595
 
 
596
 
create table t1 as
597
 
(select _utf8'test' collate utf8_bin) union
598
 
(select _utf8'TEST') union
599
 
(select _utf8'TeST');
600
 
show create table t1;
601
 
select count(*) from t1;
602
 
drop table t1;
603
 
 
604
 
create table t1 as
605
 
(select _utf8'test') union
606
 
(select _utf8'TEST' collate utf8_bin) union
607
 
(select _utf8'TeST');
608
 
show create table t1;
609
 
select count(*) from t1;
610
 
drop table t1;
611
 
 
612
 
create table t1 as
613
 
(select _utf8'test') union
614
 
(select _utf8'TEST') union
615
 
(select _utf8'TeST' collate utf8_bin);
 
591
(select 'test') union
 
592
(select 'TEST') union
 
593
(select 'TeST');
 
594
show create table t1;
 
595
select count(*) from t1;
 
596
drop table t1;
 
597
 
 
598
create table t1 as
 
599
(select 'test' collate utf8_bin) union
 
600
(select 'TEST') union
 
601
(select 'TeST');
 
602
show create table t1;
 
603
select count(*) from t1;
 
604
drop table t1;
 
605
 
 
606
create table t1 as
 
607
(select 'test') union
 
608
(select 'TEST' collate utf8_bin) union
 
609
(select 'TeST');
 
610
show create table t1;
 
611
select count(*) from t1;
 
612
drop table t1;
 
613
 
 
614
create table t1 as
 
615
(select 'test') union
 
616
(select 'TEST') union
 
617
(select 'TeST' collate utf8_bin);
616
618
show create table t1;
617
619
select count(*) from t1;
618
620
drop table t1;
708
710
#
709
711
# Bug#15949 union + illegal mix of collations (IMPLICIT + COERCIBLE)
710
712
#
711
 
select concat(_utf8'a', _utf8'b' collate utf8_bin);
 
713
select concat('a', 'b' collate utf8_bin);
712
714
create table t1 (foo varchar(100)) collate utf8_bin;
713
715
insert into t1 (foo) values ("foo");
714
716
--error 1146
900
902
# Bug #16881: password() and union select
901
903
# (The issue was poor handling of character set aggregation.)
902
904
#
903
 
select _utf8'12' union select _utf8'12345';
 
905
select '12' union select '12345';
904
906
 
905
907
#
906
908
# Bug #26661: UNION with ORDER BY undefined column in FROM list