mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fixed problem with ansi mode and GROUP BY with constants. (Bug #387)
sql/sql_select.cc: Fixed problem with ansi mode and GROUP BY with constants
This commit is contained in:
10
mysql-test/r/ansi.result
Normal file
10
mysql-test/r/ansi.result
Normal file
@ -0,0 +1,10 @@
|
||||
drop table if exists t1;
|
||||
SELECT 'A' || 'B';
|
||||
'A' || 'B'
|
||||
AB
|
||||
CREATE TABLE t1 (id INT, id2 int);
|
||||
SELECT id,NULL,1,1.1,'a' FROM t1 GROUP BY id;
|
||||
id NULL 1 1.1 a
|
||||
SELECT id FROM t1 GROUP BY id2;
|
||||
't1.id' isn't in GROUP BY
|
||||
drop table t1;
|
Reference in New Issue
Block a user