Skip to content

Commit

Permalink
after merge: update the test for 10.10
Browse files Browse the repository at this point in the history
because explicit_defaults_for_timestamp is now true
  • Loading branch information
vuvova committed May 4, 2023
1 parent 4a6fbe2 commit 83fa033
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mysql-test/main/insert_update.result
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion mysql-test/main/insert_update.test
Expand Up @@ -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');
Expand Down

0 comments on commit 83fa033

Please sign in to comment.