diff options
author | Magne Mahre <magne.mahre@sun.com> | 2009-11-04 09:53:38 +0100 |
---|---|---|
committer | Magne Mahre <magne.mahre@sun.com> | 2009-11-04 09:53:38 +0100 |
commit | 9c5a86377ad8b5a0fad6eca809bc432c93ed14ba (patch) | |
tree | 54a1766fc1ae03a4db0023de6e08c692d849c623 /mysql-test/r/func_sapdb.result | |
parent | 5388fbaed027a5fd04adc48dff24084052994295 (diff) | |
parent | a91607769ab8d54cbc7bc99d3b0e8d56ed85ed80 (diff) | |
download | mariadb-git-9c5a86377ad8b5a0fad6eca809bc432c93ed14ba.tar.gz |
Bug#42661: sec_to_time() and signedness
Bug#42662: maketime() and signedness
Item_time_typecast::val_int() dropped sign from
MYSQL_TIME gotten using from get_time().
Propagates sign now.
Backported to 5.5.0 (6.0-codebase revid: 1810.3897.1)
Diffstat (limited to 'mysql-test/r/func_sapdb.result')
-rw-r--r-- | mysql-test/r/func_sapdb.result | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mysql-test/r/func_sapdb.result b/mysql-test/r/func_sapdb.result index 87b88692a34..831c2899f66 100644 --- a/mysql-test/r/func_sapdb.result +++ b/mysql-test/r/func_sapdb.result @@ -282,3 +282,33 @@ TIMEDIFF(TIME('17:59:00'),TIME('17:00:00')), TIMEDIFF(TIME('17:00:00'),TIME('17:59:00')); 1Eq 1NEq1 1NEq2 2Eq 2NEq1 2NEq2 3Eq 3NEq1 3NEq2 Time0 Time00 Literal0000 TIMEDIFF(TIME('17:59:00'),TIME('17:00:00')) TIMEDIFF(TIME('17:00:00'),TIME('17:59:00')) 1 0 0 1 0 0 1 0 0 00:00:00 00:00:00 00:00:00 00:59:00 -00:59:00 +SELECT sec_to_time(3020399)=time('838:59:59'); +sec_to_time(3020399)=time('838:59:59') +1 +SELECT sec_to_time(-3020399)=time('-838:59:59'); +sec_to_time(-3020399)=time('-838:59:59') +1 +SELECT sec_to_time(-3020399)='-838:59:59'; +sec_to_time(-3020399)='-838:59:59' +1 +SELECT time(sec_to_time(-3020399))=time('-838:59:59'); +time(sec_to_time(-3020399))=time('-838:59:59') +1 +SELECT time(sec_to_time(-3020399))=time('-838:59:58'); +time(sec_to_time(-3020399))=time('-838:59:58') +0 +SELECT maketime(-1,0,1)='-01:00:01'; +maketime(-1,0,1)='-01:00:01' +1 +SELECT TIME(maketime(-1,0,1))=TIME('-01:00:01'); +TIME(maketime(-1,0,1))=TIME('-01:00:01') +1 +SELECT maketime(-1,0,1)=TIME('-01:00:01'); +maketime(-1,0,1)=TIME('-01:00:01') +1 +SELECT maketime(1,0,1)=TIME('01:00:01'); +maketime(1,0,1)=TIME('01:00:01') +1 +SELECT maketime(1,0,1)=TIME('01:00:02'); +maketime(1,0,1)=TIME('01:00:02') +0 |