diff options
author | unknown <monty@narttu.mysql.fi> | 2003-05-13 19:26:07 +0300 |
---|---|---|
committer | unknown <monty@narttu.mysql.fi> | 2003-05-13 19:26:07 +0300 |
commit | d05cd28c10bdc94783074ebaba40a3ed1fabe6a6 (patch) | |
tree | 475f7895f8b8ca9b87712c500177e254a1b0e08e /mysql-test/t/ansi.test | |
parent | dc1e55f8194db83e7a40dea5bf49e9fef970826c (diff) | |
download | mariadb-git-d05cd28c10bdc94783074ebaba40a3ed1fabe6a6.tar.gz |
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
Diffstat (limited to 'mysql-test/t/ansi.test')
-rw-r--r-- | mysql-test/t/ansi.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/t/ansi.test b/mysql-test/t/ansi.test new file mode 100644 index 00000000000..e1ac8ffd4f9 --- /dev/null +++ b/mysql-test/t/ansi.test @@ -0,0 +1,17 @@ +# +# 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; |