diff options
author | Martin Hansson <mhansson@mysql.com> | 2009-06-16 10:34:32 +0200 |
---|---|---|
committer | Martin Hansson <mhansson@mysql.com> | 2009-06-16 10:34:32 +0200 |
commit | 5d44b2f3a529abe41da158b3d9230d8ba5d4387c (patch) | |
tree | 6e412cac8dd20aec02bdbe2b2f8ed6425fa649de /mysql-test/r/group_min_max.result | |
parent | 3cc3aa7d70ccffe701f378a6a9f21b1ee02dabc2 (diff) | |
parent | f2448c93d6fc159d8e450539e120066396c44596 (diff) | |
download | mariadb-git-5d44b2f3a529abe41da158b3d9230d8ba5d4387c.tar.gz |
Merge
Diffstat (limited to 'mysql-test/r/group_min_max.result')
-rw-r--r-- | mysql-test/r/group_min_max.result | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/mysql-test/r/group_min_max.result b/mysql-test/r/group_min_max.result index 27448d3e949..1324b2d93ca 100644 --- a/mysql-test/r/group_min_max.result +++ b/mysql-test/r/group_min_max.result @@ -2502,3 +2502,61 @@ a MAX(b) 2 1 DROP TABLE t; End of 5.0 tests +CREATE TABLE t1 ( a INT, b INT, c INT, KEY bc(b, c) ) +PARTITION BY KEY (a, b) PARTITIONS 3 +; +INSERT INTO t1 VALUES +(17, 1, -8), +(3, 1, -7), +(23, 1, -6), +(22, 1, -5), +(11, 1, -4), +(21, 1, -3), +(19, 1, -2), +(30, 1, -1), +(20, 1, 1), +(16, 1, 2), +(18, 1, 3), +(9, 1, 4), +(15, 1, 5), +(28, 1, 6), +(29, 1, 7), +(25, 1, 8), +(10, 1, 9), +(13, 1, 10), +(27, 1, 11), +(24, 1, 12), +(12, 1, 13), +(26, 1, 14), +(14, 1, 15) +; +SELECT b, c FROM t1 WHERE b = 1 GROUP BY b, c; +b c +1 -8 +1 -7 +1 -6 +1 -5 +1 -4 +1 -3 +1 -2 +1 -1 +1 1 +1 2 +1 3 +1 4 +1 5 +1 6 +1 7 +1 8 +1 9 +1 10 +1 11 +1 12 +1 13 +1 14 +1 15 +EXPLAIN +SELECT b, c FROM t1 WHERE b = 1 GROUP BY b, c; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE t1 range bc bc 10 NULL 7 Using where; Using index for group-by +DROP TABLE t1; |