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
dc41c428
Commit
dc41c428
authored
Mar 06, 2007
by
kaa@polly.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge polly.local:/tmp/maint/bug20293/my50-bug20293
into polly.local:/tmp/maint/bug20293/my51-bug20293
parents
4b36a96e
6a3c0007
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
mysql-test/r/func_time.result
mysql-test/r/func_time.result
+4
-0
mysql-test/t/func_time.test
mysql-test/t/func_time.test
+8
-0
No files found.
mysql-test/r/func_time.result
View file @
dc41c428
...
...
@@ -1183,6 +1183,10 @@ set time_zone= @@global.time_zone;
select str_to_date('10:00 PM', '%h:%i %p') + INTERVAL 10 MINUTE;
str_to_date('10:00 PM', '%h:%i %p') + INTERVAL 10 MINUTE
NULL
SELECT TIME_FORMAT(SEC_TO_TIME(a),"%H:%i:%s") FROM (SELECT 3020399 AS a UNION SELECT 3020398 ) x GROUP BY 1;
TIME_FORMAT(SEC_TO_TIME(a),"%H:%i:%s")
838:59:58
838:59:59
End of 5.0 tests
select date_sub("0050-01-01 00:00:01",INTERVAL 2 SECOND);
date_sub("0050-01-01 00:00:01",INTERVAL 2 SECOND)
...
...
mysql-test/t/func_time.test
View file @
dc41c428
...
...
@@ -692,6 +692,14 @@ set time_zone= @@global.time_zone;
#
select
str_to_date
(
'10:00 PM'
,
'%h:%i %p'
)
+
INTERVAL
10
MINUTE
;
#
# Bug #20293: group by cuts off value from time_format
#
# Check if using GROUP BY with TIME_FORMAT() produces correct results
SELECT
TIME_FORMAT
(
SEC_TO_TIME
(
a
),
"%H:%i:%s"
)
FROM
(
SELECT
3020399
AS
a
UNION
SELECT
3020398
)
x
GROUP
BY
1
;
--
echo
End
of
5.0
tests
#
...
...
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