mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 09:04:29 +02:00
Merge polly.local:/tmp/maint/bug20293/my51-bug20293
into polly.local:/home/kaa/src/maint/mysql-5.1-maint mysql-test/r/func_time.result: Manual merge. mysql-test/t/func_time.test: Manual merge.
This commit is contained in:
commit
e5a9a17b40
2 changed files with 11 additions and 0 deletions
|
|
@ -724,6 +724,13 @@ SELECT t1, t2, SEC_TO_TIME( TIME_TO_SEC( t2 ) - TIME_TO_SEC( t1 ) ), QUARTER(d)
|
|||
SELECT t1, t2, SEC_TO_TIME( TIME_TO_SEC( t2 ) - TIME_TO_SEC( t1 ) ), QUARTER(d)
|
||||
FROM t1 ORDER BY a DESC;
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# 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
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue