~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/t/group_by.test

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-21 15:31:05 UTC
  • mfrom: (1.1.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20100621153105-pbbz3t6nyrf9t2zq
Tags: upstream-5.1.48
ImportĀ upstreamĀ versionĀ 5.1.48

Show diffs side-by-side

added added

removed removed

Lines of Context:
1205
1205
 
1206
1206
DROP TABLE t1, t2;
1207
1207
 
 
1208
 
 
1209
--echo #
 
1210
--echo # Bug#52051: Aggregate functions incorrectly returns NULL from outer
 
1211
--echo # join query
 
1212
--echo #
 
1213
CREATE TABLE t1 (a INT PRIMARY KEY);
 
1214
CREATE TABLE t2 (a INT PRIMARY KEY);
 
1215
INSERT INTO t2 VALUES (1), (2);
 
1216
EXPLAIN SELECT MIN(t2.a) FROM t2 LEFT JOIN t1 ON t2.a = t1.a;
 
1217
SELECT MIN(t2.a) FROM t2 LEFT JOIN t1 ON t2.a = t1.a;
 
1218
EXPLAIN SELECT MAX(t2.a) FROM t2 LEFT JOIN t1 ON t2.a = t1.a;
 
1219
SELECT MAX(t2.a) FROM t2 LEFT JOIN t1 ON t2.a = t1.a;
 
1220
DROP TABLE t1, t2;
 
1221
 
 
1222
 
1208
1223
--echo #
1209
1224
 
1210
1225
--echo # End of 5.1 tests