Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
83fa0335
Commit
83fa0335
authored
May 04, 2023
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after merge: update the test for 10.10
because explicit_defaults_for_timestamp is now true
parent
4a6fbe27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
mysql-test/main/insert_update.result
mysql-test/main/insert_update.result
+2
-1
mysql-test/main/insert_update.test
mysql-test/main/insert_update.test
+2
-1
No files found.
mysql-test/main/insert_update.result
View file @
83fa0335
...
...
@@ -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
...
...
mysql-test/main/insert_update.test
View file @
83fa0335
...
...
@@ -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'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment