You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "James Duong (JIRA)" <ji...@apache.org> on 2018/05/03 17:10:00 UTC

[jira] [Created] (CALCITE-2299) TIMESTAMPADD(SQL_TSI_FRAC_SECOND) should be nanoseconds not microseconds

James Duong created CALCITE-2299:
------------------------------------

             Summary: TIMESTAMPADD(SQL_TSI_FRAC_SECOND) should be nanoseconds not microseconds
                 Key: CALCITE-2299
                 URL: https://issues.apache.org/jira/browse/CALCITE-2299
             Project: Calcite
          Issue Type: Bug
          Components: core
    Affects Versions: 1.16.0
            Reporter: James Duong
            Assignee: Julian Hyde


When calling TIMESTAMPADD with the first parameter SQL_TSI_FRAC_SECOND and the JDBC escape sequence, this gets interpreted as microseconds when it should be interpreted as nanoseconds.

 

From the ODBC spec on MSDN:

[https://docs.microsoft.com/en-us/sql/odbc/reference/appendixes/time-date-and-interval-functions?view=sql-server-2017]

'where fractional seconds are expressed in billionths of a second.'



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)