~ubuntu-branches/ubuntu/quantal/drizzle/quantal

« back to all changes in this revision

Viewing changes to tests/t/func_gconcat.test

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2011-02-14 12:40:34 UTC
  • mfrom: (1.2.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20110214124034-eih75vcr64qt4db1
Tags: 2011.02.10-0ubuntu1
* New upstream release.
* Incorporated all patches upstream.
* Added unix-socket-protocol package. Disabled it by default.

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
create table t1(id int);
105
105
create table t2(id int);
106
106
insert into t1 values(0),(1);
107
 
select group_concat(t1.id) FROM t1,t2;
 
107
select group_concat(t1.id) FROM t1,t2 where t2.id < 2;
108
108
drop table t1;
109
109
drop table t2;
110
110
 
190
190
CREATE TABLE t2 ( a int );
191
191
INSERT INTO t1 VALUES (1), (2);
192
192
INSERT INTO t2 VALUES (1), (2);
193
 
SELECT GROUP_CONCAT(t1.a*t2.a ORDER BY t2.a) FROM t1, t2 GROUP BY t1.a;
 
193
SELECT GROUP_CONCAT(t1.a*t2.a ORDER BY t2.a) FROM t1, t2 WHERE t1.a < 3 GROUP BY t1.a;
194
194
DROP TABLE t1, t2;
195
195
 
196
196
#
602
602
 FROM
603
603
  t1 AS t1,
604
604
  t1 AS t2
 
605
 WHERE t2.a IS NULL
605
606
 GROUP BY 1
606
607
) AS s1;
607
608
DROP TABLE t1;