mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
23145cfed7
bmove_allign -> bmove_align Added OLAP function ROLLUP Split mysql_fix_privilege_tables to a script and a .sql data file Added new (MEMROOT*) functions to avoid calling current_thd() when creating some common objects. Added table_alias_charset, for easier --lower-case-table-name handling Better SQL_MODE handling (Setting complex options also sets sub options) New (faster) assembler string functions for x86
24 lines
417 B
Text
24 lines
417 B
Text
#
|
|
# Test of ansi mode
|
|
#
|
|
|
|
--disable_warnings
|
|
drop table if exists t1;
|
|
--enable_warnings
|
|
|
|
# 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;
|
|
|
|
set sql_mode="MySQL40";
|
|
select @@sql_mode;
|
|
set sql_mode="ANSI";
|
|
select @@sql_mode;
|