config root man

Current Path : /home/usr.opt/mysql57/mysql-test/t/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : /home/usr.opt/mysql57/mysql-test/t/ansi.test

 #Get deafult engine value
--let $DEFAULT_ENGINE = `select @@global.default_storage_engine`

#
# Test of ansi mode
#

--disable_warnings
drop table if exists t1;
--enable_warnings

set sql_mode="MySQL40";
select @@sql_mode;
set @@sql_mode="ANSI";
select @@sql_mode;

# 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;
# ONLY_FULL_GROUP_BY is included in ANSI:
--error ER_WRONG_FIELD_WITH_GROUP
SELECT id FROM t1 GROUP BY id2;
drop table t1;

SET @@SQL_MODE="";

# Bug#14515

CREATE TABLE t1 (i int auto_increment NOT NULL, PRIMARY KEY (i));

#Replace default engine value with static engine string 
--replace_result $DEFAULT_ENGINE ENGINE
SHOW CREATE TABLE t1;
SET @@SQL_MODE="MYSQL323";

#Replace default engine value with static engine string 
--replace_result $DEFAULT_ENGINE ENGINE
SHOW CREATE TABLE t1;
SET @@SQL_MODE="MYSQL40";

#Replace default engine value with static engine string 
--replace_result $DEFAULT_ENGINE ENGINE
SHOW CREATE TABLE t1;
SET @@SQL_MODE="NO_FIELD_OPTIONS";

#Replace default engine value with static engine string 
--replace_result $DEFAULT_ENGINE ENGINE
SHOW CREATE TABLE t1;
DROP TABLE t1;

# End of 4.1 tests

Man Man