Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-8205

timediff returns null when comparing decimal time to time string value

    Details

    • Sprint:
      10.0.20

      Description

      timediff function does not correctly convert decimal values to datetime when comparing a decimal time to a string time, returning null. Problem does not manifest in the datediff function.

      select 
      	timediff('2014-01-01 00:00:00' , '2014-01-01 01:00:00' ),
          timediff(20140101000000.000 , 20140101010000.000  ),
      	timediff(20140101000000.000 , '2014-01-01 01:00:00' ),
      	datediff('2014-01-01 00:00:00' , '2014-01-02 01:00:00' ),
          datediff(20140101000000.000 , 20140102010000.000  ),
      	datediff(20140101000000.000 , '2014-01-02 01:00:00' );
          

        Attachments

          Activity

            People

            • Assignee:
              bar Alexander Barkov
              Reporter:
              MarkP Mark Punak
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: