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
218c75eb
Commit
218c75eb
authored
Nov 28, 2018
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making the test for MDEV-17854 independent from the host time zone
parent
d6bcf3a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
mysql-test/main/func_time.result
mysql-test/main/func_time.result
+3
-1
mysql-test/main/func_time.test
mysql-test/main/func_time.test
+2
-0
No files found.
mysql-test/main/func_time.result
View file @
218c75eb
...
@@ -6298,9 +6298,11 @@ TIME('- 01:00:00') TIME('- 1 01:00:00')
...
@@ -6298,9 +6298,11 @@ TIME('- 01:00:00') TIME('- 1 01:00:00')
#
#
# MDEV-17854 Assertion `decimals <= 6' failed in my_time_fraction_remainder on SELECT with NULLIF and FROM_UNIXTIME on incorrect time
# MDEV-17854 Assertion `decimals <= 6' failed in my_time_fraction_remainder on SELECT with NULLIF and FROM_UNIXTIME on incorrect time
#
#
SET time_zone='+00:00';
SELECT NULLIF(FROM_UNIXTIME('foo'), '2012-12-12 21:10:14');
SELECT NULLIF(FROM_UNIXTIME('foo'), '2012-12-12 21:10:14');
NULLIF(FROM_UNIXTIME('foo'), '2012-12-12 21:10:14')
NULLIF(FROM_UNIXTIME('foo'), '2012-12-12 21:10:14')
1970-01-01 0
4
:00:00
1970-01-01 0
0
:00:00
Warnings:
Warnings:
Warning 1292 Truncated incorrect DECIMAL value: 'foo'
Warning 1292 Truncated incorrect DECIMAL value: 'foo'
Warning 1292 Truncated incorrect DECIMAL value: 'foo'
Warning 1292 Truncated incorrect DECIMAL value: 'foo'
SET time_zone=DEFAULT;
mysql-test/main/func_time.test
View file @
218c75eb
...
@@ -3129,4 +3129,6 @@ SELECT TIME('- 01:00:00'), TIME('- 1 01:00:00');
...
@@ -3129,4 +3129,6 @@ SELECT TIME('- 01:00:00'), TIME('- 1 01:00:00');
--
echo
# MDEV-17854 Assertion `decimals <= 6' failed in my_time_fraction_remainder on SELECT with NULLIF and FROM_UNIXTIME on incorrect time
--
echo
# MDEV-17854 Assertion `decimals <= 6' failed in my_time_fraction_remainder on SELECT with NULLIF and FROM_UNIXTIME on incorrect time
--
echo
#
--
echo
#
SET
time_zone
=
'+00:00'
;
SELECT
NULLIF
(
FROM_UNIXTIME
(
'foo'
),
'2012-12-12 21:10:14'
);
SELECT
NULLIF
(
FROM_UNIXTIME
(
'foo'
),
'2012-12-12 21:10:14'
);
SET
time_zone
=
DEFAULT
;
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