[teiid-issues] [JBoss JIRA] (TEIID-3366) postgresql extract used for date functions returns double, not integer

Steven Hawkins (JIRA) issues at jboss.org
Thu Mar 5 09:27:49 EST 2015


     [ https://issues.jboss.org/browse/TEIID-3366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Hawkins resolved TEIID-3366.
-----------------------------------
    Resolution: Done


Added a cast to integer for the relevant functions.

> postgresql extract used for date functions returns double, not integer
> ----------------------------------------------------------------------
>
>                 Key: TEIID-3366
>                 URL: https://issues.jboss.org/browse/TEIID-3366
>             Project: Teiid
>          Issue Type: Bug
>          Components: JDBC Connector
>    Affects Versions: 7.7
>            Reporter: Steven Hawkins
>            Assignee: Steven Hawkins
>             Fix For: 8.11
>
>
> Postgresql extract returns a double precision (which is documented as the expectation), but we expect integer values from the respective Teiid functions.  This typically won't lead to an issue in a simple projection scenario, but is problematic for combined expressions, such as using mod which will result in an exception.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the teiid-issues mailing list