diff options
author | Alexander Barkov <bar@mariadb.org> | 2015-09-22 14:01:54 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2015-09-22 14:01:54 +0400 |
commit | 5c9c8ef1eac0a3868a57ed8fda8bda8cd2453b37 (patch) | |
tree | 88739fffdf78de796c665affa6beb8687ca25a2b /mysql-test/suite/innodb/t/innodb.test | |
parent | 89af0f11a83188cb2bfbfed0b54c00d718734995 (diff) | |
download | mariadb-git-5c9c8ef1eac0a3868a57ed8fda8bda8cd2453b37.tar.gz |
MDEV-3929 Add system variable explicit_defaults_for_timestamp for compatibility with MySQL
Diffstat (limited to 'mysql-test/suite/innodb/t/innodb.test')
-rw-r--r-- | mysql-test/suite/innodb/t/innodb.test | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mysql-test/suite/innodb/t/innodb.test b/mysql-test/suite/innodb/t/innodb.test index bef13f5f418..2e7306c8e29 100644 --- a/mysql-test/suite/innodb/t/innodb.test +++ b/mysql-test/suite/innodb/t/innodb.test @@ -457,7 +457,8 @@ drop table t1; # Test of opening table twice and timestamps # set @a:=now(); -CREATE TABLE t1 (a int not null, b timestamp not null, primary key (a)) engine=innodb; +CREATE TABLE t1 (a int not null, b timestamp not null default +current_timestamp on update current_timestamp, primary key (a)) engine=innodb; insert into t1 (a) values(1),(2),(3); select t1.a from t1 natural join t1 as t2 where t1.b >= @a order by t1.a; select a from t1 natural join t1 as t2 where b >= @a order by a; |