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
cb4877a5
Commit
cb4877a5
authored
Oct 15, 2018
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-14322 main.type_datetime failed in buildbot, results mismatch
Changing the pause from 5 to 10 seconds.
parent
4d07e6c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mysql-test/t/type_datetime.test
mysql-test/t/type_datetime.test
+5
-5
No files found.
mysql-test/t/type_datetime.test
View file @
cb4877a5
...
...
@@ -175,12 +175,12 @@ set @@sql_mode= @org_mode;
## ( Bug#29290 type_datetime.test failure in 5.1 )
## Therefore we sleep a bit if we are too close to midnight.
## The complete test itself needs around 1 second.
## Therefore a time_distance to midnight of
5
seconds should be sufficient.
if
(
`SELECT CURTIME() > SEC_TO_TIME(24 * 3600 -
5
)`
)
## Therefore a time_distance to midnight of
10
seconds should be sufficient.
if
(
`SELECT CURTIME() > SEC_TO_TIME(24 * 3600 -
10
)`
)
{
# We are here when CURTIME() is between '23:59:5
6
' and '23:59:59'.
# So a sleep time of
5 seconds brings us between '00:00:01' and '00:00:04
'.
--
real_sleep
5
# We are here when CURTIME() is between '23:59:5
1
' and '23:59:59'.
# So a sleep time of
10 seconds brings us between '00:00:01' and '00:00:09
'.
--
real_sleep
10
}
create
table
t1
(
f1
date
,
f2
datetime
,
f3
timestamp
);
insert
into
t1
(
f1
)
values
(
curdate
());
...
...
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