Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-2246

Incorrect results with TIMESTAMPDIFF

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.7.3, 8.2
    • 7.4.4
    • Server
    • None

    Description

      2 issues with TIMESTAMPDIFF:
      1.

      select TIMESTAMPDIFF(SQL_TSI_DAY,parseDate('2012-01-01', 'yyyy-MM-dd'),parseDate('2304-04-12', 'yyyy-MM-dd'));

      result = 106751

      If you increase the end date by 1 day:

      select TIMESTAMPDIFF(SQL_TSI_DAY,parseDate('2012-01-01', 'yyyy-MM-dd'),parseDate('2304-04-13', 'yyyy-MM-dd'))

      result = -106751. I would expected the answer to be 106752

      2. Both MS Excel and Oracle give the number of days between 1-Jan-2012 and 12-Apr-2304 as 106752, not the 106751 that EDS is reporting.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-jolee Johnathon Lee
              van.halbert Van Halbert (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: