MDEV-3929 Add system variable explicit_defaults_for_timestamp for compatibility with MySQL

This commit is contained in:
Alexander Barkov 2015-09-22 14:01:54 +04:00
commit 5c9c8ef1ea
111 changed files with 844 additions and 219 deletions

View file

@ -106,7 +106,7 @@ drop table t1;
set @@test_sql_discovery_statement='t1:
create table t1 (
a int not null default 5 primary key,
b timestamp,
b timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
c tinyblob,
d decimal(5,2),
e varchar(30) character set ascii,

View file

@ -99,7 +99,7 @@ drop table t1;
set @@test_sql_discovery_statement='t1:
create table t1 (
a int not null default 5 primary key,
b timestamp,
b timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
c tinyblob,
d decimal(5,2),
e varchar(30) character set ascii,