[JBoss JIRA] (TEIID-3555) Like expression in select statement fails against Sybase
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-3555?page=com.atlassian.jira.plugin... ]
Steven Hawkins closed TEIID-3555.
---------------------------------
> Like expression in select statement fails against Sybase
> --------------------------------------------------------
>
> Key: TEIID-3555
> URL: https://issues.jboss.org/browse/TEIID-3555
> Project: Teiid
> Issue Type: Bug
> Components: JDBC Connector
> Affects Versions: 8.9.1
> Reporter: Bram Gadeyne
> Assignee: Steven Hawkins
> Fix For: 8.12
>
>
> Sometimes I use a like statement within the select statement to evaluate whether or not some text contains a certain sub-string. e.g:
>
> select outcome like '%died%' as died
> from patients
>
> Some databases support this and return a boolean value but others (like sybase) don't. This results in an exception "Incorrect syntax near keyword 'like'"
>
> Would is be possible to rewrite this for Sybase (and maybe others) to something like:
> select case when icuoutcomename like '%overleden%' then cast(1 as bit) else cast(0 as bit) end as mort
> from patients
>
> I used cast(1 as bit) and cast(0 as bit) here because it seems like Sybase does not support true and false.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 2 months
[JBoss JIRA] (TEIID-3543) Complex type values not resolved in translator execution
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-3543?page=com.atlassian.jira.plugin... ]
Steven Hawkins closed TEIID-3543.
---------------------------------
> Complex type values not resolved in translator execution
> --------------------------------------------------------
>
> Key: TEIID-3543
> URL: https://issues.jboss.org/browse/TEIID-3543
> Project: Teiid
> Issue Type: Bug
> Components: OData
> Affects Versions: 8.7
> Reporter: Steven Hawkins
> Assignee: Steven Hawkins
> Fix For: 8.11
>
>
> Embedded complex types do not have metadata associated and will fail to resolve resulting in an exception:
> {code}
> java.lang.RuntimeException: unknown property type: RMTSAMPLEFLIGHT.FlightDetails
> at org.odata4j.format.xml.AtomFeedFormatParser.parseProperties(AtomFeedFormatParser.java:210) ~[odata4j-core-0.8.0-SNAPSHOT-redhat.jar:na]
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 2 months