~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/group_by.test

  • Committer: Brian Aker
  • Date: 2009-06-05 23:10:06 UTC
  • mto: This revision was merged to the branch mainline in revision 1055.
  • Revision ID: brian@gaz-20090605231006-01nyw7pfpj2z2v8p
Remove guts in parser for LOCK TABLE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
#
91
91
# Problem with GROUP BY + ORDER BY when no match
92
92
# Tested with locking
 
93
#  NOTE: LOCK TABLE was removed, so now just testing normal syntax.
93
94
#
94
95
 
95
96
CREATE TABLE t1 (
108
109
  KEY contact_id (contact_id)
109
110
);
110
111
 
111
 
lock tables t1 read,t2 write;
112
 
 
113
112
INSERT INTO t2 VALUES (10,2);
114
113
INSERT INTO t2 VALUES (18,2);
115
114
INSERT INTO t2 VALUES (62,2);
121
120
SELECT cid, CONCAT(firstname, ' ', surname), COUNT(call_id) FROM t1 LEFT JOIN t2 ON cid=contact_id WHERE firstname like '%foo%' GROUP BY cid ORDER BY surname, firstname;
122
121
 
123
122
drop table t2;
124
 
unlock tables;
125
123
drop table t1;
126
124
 
127
125
# Test needs to be rewritten