[
https://issues.jboss.org/browse/TEIID-5194?page=com.atlassian.jira.plugin...
]
Ramesh Reddy resolved TEIID-5194.
---------------------------------
Resolution: Done
The JDBC Driver does not like when on resultset the columns are retrieved using specific
methods such as getInt, getDouble etc. Opted to use getObject always
Osisoft translator - MAX and MIN on boolean column cause an error
-----------------------------------------------------------------
Key: TEIID-5194
URL:
https://issues.jboss.org/browse/TEIID-5194
Project: Teiid
Issue Type: Bug
Components: JDBC Connector
Affects Versions: 8.12.x-6.4
Reporter: Andrej Šmigala
Assignee: Ramesh Reddy
Fix For: 8.12.x-6.4, 10.1
Running a query such as
{code:sql}
SELECT MAX(BooleanValue) FROM BQT1.SmallA
{code}
fails with the following exception:
{noformat}
java.lang.ClassCastException: java.lang.Byte cannot be cast to java.lang.Boolean
at com.osisoft.jdbc.ResultSetImpl.getBoolean(ResultSetImpl.java:407)
at
org.jboss.jca.adapters.jdbc.WrappedResultSet.getBoolean(WrappedResultSet.java:594)
... 22 more
{noformat}
Same issue occurs when using MIN.
Running an equivalent query directly against the Osisoft PI datasource returns the
correct result, with the return type being int8 (i.e. byte)
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)