mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
group_by.result, group_by.test:
Added a test case for bug #8614. sql_select.cc: Fixed bug #8614. SELECT DISTINCT ... GROUP BY 'const' must be equivalent to SELECT ... GROUP BY 'const'. sql/sql_select.cc: Fixed bug #8614. SELECT DISTINCT ... GROUP BY 'const' must be equivalent to SELECT ... GROUP BY 'const'. mysql-test/t/group_by.test: Added a test case for bug #8614. mysql-test/r/group_by.result: Added a test case for bug #8614.
This commit is contained in:
@ -722,3 +722,13 @@ WHERE hostname LIKE '%aol%'
|
||||
GROUP BY hostname;
|
||||
hostname no
|
||||
cache-dtc-af05.proxy.aol.com 1
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (a int, b int);
|
||||
INSERT INTO t1 VALUES (1,2), (1,3);
|
||||
SELECT a, b FROM t1 GROUP BY 'const';
|
||||
a b
|
||||
1 2
|
||||
SELECT DISTINCT a, b FROM t1 GROUP BY 'const';
|
||||
a b
|
||||
1 2
|
||||
DROP TABLE t1;
|
||||
|
Reference in New Issue
Block a user