summaryrefslogtreecommitdiff
path: root/mysql-test/r/distinct.result
diff options
context:
space:
mode:
authorunknown <igor@rurik.mysql.com>2005-08-19 20:21:09 -0700
committerunknown <igor@rurik.mysql.com>2005-08-19 20:21:09 -0700
commit3a143f488805f81f2b9447cde73497d19a720a35 (patch)
tree235244822bb31efacb87fd7285ea4e58736f8d19 /mysql-test/r/distinct.result
parent77069fc529f47d4d387e8acbfe9ad9dfbd89eb5b (diff)
parenta8031724acf5cd91039d089d8aefecae9b42d60f (diff)
downloadmariadb-git-3a143f488805f81f2b9447cde73497d19a720a35.tar.gz
Manual merge
sql/sql_select.cc: Auto merged
Diffstat (limited to 'mysql-test/r/distinct.result')
-rw-r--r--mysql-test/r/distinct.result40
1 files changed, 40 insertions, 0 deletions
diff --git a/mysql-test/r/distinct.result b/mysql-test/r/distinct.result
index 3ad2b73f1d3..9d008fc3830 100644
--- a/mysql-test/r/distinct.result
+++ b/mysql-test/r/distinct.result
@@ -472,3 +472,43 @@ id IFNULL(dsc, '-')
2 line number two
3 line number three
drop table t1;
+CREATE TABLE t1 (a int);
+INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
+SELECT DISTINCT a, 1 FROM t1;
+a 1
+1 1
+2 1
+3 1
+4 1
+5 1
+SELECT DISTINCT 1, a FROM t1;
+1 a
+1 1
+1 2
+1 3
+1 4
+1 5
+CREATE TABLE t2 (a int, b int);
+INSERT INTO t2 VALUES (1,1),(2,2),(2,3),(2,4),(3,5);
+SELECT DISTINCT a, b, 2 FROM t2;
+a b 2
+1 1 2
+2 2 2
+2 3 2
+2 4 2
+3 5 2
+SELECT DISTINCT 2, a, b FROM t2;
+2 a b
+2 1 1
+2 2 2
+2 2 3
+2 2 4
+2 3 5
+SELECT DISTINCT a, 2, b FROM t2;
+a 2 b
+1 2 1
+2 2 2
+2 2 3
+2 2 4
+3 2 5
+DROP TABLE t1,t2;