mariadb/mysql-test/t/ansi.test
unknown d05cd28c10 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
2003-05-13 19:26:07 +03:00

17 lines
296 B
Text

#
# Test of ansi mode
#
drop table if exists t1;
# Test some functions that works different in ansi mode
SELECT 'A' || 'B';
# Test GROUP BY behaviour
CREATE TABLE t1 (id INT, id2 int);
SELECT id,NULL,1,1.1,'a' FROM t1 GROUP BY id;
--error 1055
SELECT id FROM t1 GROUP BY id2;
drop table t1;