mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
after merge: update the test for 10.10
because explicit_defaults_for_timestamp is now true
This commit is contained in:
@ -416,7 +416,8 @@ drop table t1;
|
||||
# MDEV-31164 default current_timestamp() not working when used INSERT ON DUPLICATE KEY in some cases
|
||||
#
|
||||
set timestamp=unix_timestamp('2000-10-20 0:0:0');
|
||||
create table t1 (pk integer primary key, val varchar(20) not null, ts timestamp);
|
||||
create table t1 (pk integer primary key, val varchar(20) not null, ts timestamp
|
||||
default current_timestamp on update current_timestamp);
|
||||
insert t1 (pk, val) values(1, 'val1');
|
||||
select * from t1;
|
||||
pk val ts
|
||||
|
@ -316,7 +316,8 @@ drop table t1;
|
||||
--echo # MDEV-31164 default current_timestamp() not working when used INSERT ON DUPLICATE KEY in some cases
|
||||
--echo #
|
||||
set timestamp=unix_timestamp('2000-10-20 0:0:0');
|
||||
create table t1 (pk integer primary key, val varchar(20) not null, ts timestamp);
|
||||
create table t1 (pk integer primary key, val varchar(20) not null, ts timestamp
|
||||
default current_timestamp on update current_timestamp);
|
||||
insert t1 (pk, val) values(1, 'val1');
|
||||
select * from t1;
|
||||
set timestamp=unix_timestamp('2000-10-20 1:0:0');
|
||||
|
Reference in New Issue
Block a user