diff options
author | unknown <gluh@eagle.intranet.mysql.r18.ru> | 2005-09-29 17:21:32 +0500 |
---|---|---|
committer | unknown <gluh@eagle.intranet.mysql.r18.ru> | 2005-09-29 17:21:32 +0500 |
commit | 0d7a2fb87f166d89d257699821cc9c7a9153529b (patch) | |
tree | 8b328ec0b390293dc556f8ce73c1cc930f1cf70e /mysql-test/r/sql_mode.result | |
parent | fc3efeb09f42dba15053d414ba82d1847ce71a88 (diff) | |
download | mariadb-git-0d7a2fb87f166d89d257699821cc9c7a9153529b.tar.gz |
after merge fix
Diffstat (limited to 'mysql-test/r/sql_mode.result')
-rw-r--r-- | mysql-test/r/sql_mode.result | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/mysql-test/r/sql_mode.result b/mysql-test/r/sql_mode.result index 903384429ab..83099623e23 100644 --- a/mysql-test/r/sql_mode.result +++ b/mysql-test/r/sql_mode.result @@ -140,6 +140,26 @@ t1 CREATE TABLE `t1` ( drop table t1 ; set @@SQL_MODE=NULL; ERROR 42000: Variable 'sql_mode' can't be set to the value of 'NULL' +set session sql_mode=ansi; +create table t1 +(f1 integer auto_increment primary key, +f2 timestamp default current_timestamp on update current_timestamp); +show create table t1; +Table Create Table +t1 CREATE TABLE "t1" ( + "f1" int(11) NOT NULL auto_increment, + "f2" timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, + PRIMARY KEY ("f1") +) +set session sql_mode=no_field_options; +show create table t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `f1` int(11) NOT NULL, + `f2` timestamp NOT NULL default CURRENT_TIMESTAMP, + PRIMARY KEY (`f1`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1 +drop table t1; SET @OLD_SQL_MODE=@@SQL_MODE, @@SQL_MODE=''; show local variables like 'SQL_MODE'; Variable_name Value @@ -457,24 +477,4 @@ v1 CREATE ALGORITHM=UNDEFINED DEFINER="root"@"localhost" SQL SECURITY DEFINER VI create view v2 as select a from t2 where a in (select a from v1); drop view v2, v1; drop table t1, t2; -set session sql_mode=ansi; -create table t1 -(f1 integer auto_increment primary key, -f2 timestamp default current_timestamp on update current_timestamp); -show create table t1; -Table Create Table -t1 CREATE TABLE "t1" ( - "f1" int(11) NOT NULL auto_increment, - "f2" timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, - PRIMARY KEY ("f1") -) -set session sql_mode=no_field_options; -show create table t1; -Table Create Table -t1 CREATE TABLE `t1` ( - `f1` int(11) NOT NULL, - `f2` timestamp NOT NULL default CURRENT_TIMESTAMP, - PRIMARY KEY (`f1`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1 -drop table t1; SET @@SQL_MODE=@OLD_SQL_MODE; |