~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/group_by.result

  • Committer: Olaf van der Spek
  • Date: 2011-02-12 18:24:24 UTC
  • mto: (2167.1.2 build) (2172.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2168.
  • Revision ID: olafvdspek@gmail.com-20110212182424-kgnm9osi7qo97at2
casts

Show diffs side-by-side

added added

removed removed

Lines of Context:
543
543
primary key (a,b(132),c,d),
544
544
key a (a,b)
545
545
);
546
 
Warnings:
547
 
Warning 1071    Specified key was too long; max key length is 767 bytes
548
546
insert into t2 select 
549
547
x3.a,  -- 3
550
548
concat('val-', x3.a + 3*x4.a), -- 12
554
552
delete from t2  where a = 2 and b = 'val-2' order by a,b,c,d limit 30;
555
553
explain select c from t2 where a = 2 and b = 'val-2' group by c;
556
554
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
557
 
1       SIMPLE  t2      ref     PRIMARY,a       a       770     const,const     36      Using where; Using index
 
555
1       SIMPLE  t2      #       PRIMARY,a       a       #       const,const     #       #
558
556
select c from t2 where a = 2 and b = 'val-2' group by c;
559
557
c
560
558
val-74
897
895
f1      f2
898
896
select * from t1 group by f1, f2;
899
897
f1      f2
900
 
select t1.f1,t.* from t1, t1 t group by 1;
 
898
select t1.f1,t.* from t1, t1 t where t1.f1 >= 0 group by 1;
901
899
f1      f1      f2
902
900
drop table t1;
903
901
CREATE TABLE t1(