[teiid-issues] [JBoss JIRA] (TEIID-5587) Oracle 11 drivers don't accept NVARCHAR type

RH Bugzilla Integration (Jira) issues at jboss.org
Wed Jan 9 09:22:00 EST 2019


    [ https://issues.jboss.org/browse/TEIID-5587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13679936#comment-13679936 ] 

RH Bugzilla Integration commented on TEIID-5587:
------------------------------------------------

jolee at redhat.com changed the Status of [bug 1664723|https://bugzilla.redhat.com/show_bug.cgi?id=1664723] from NEW to CLOSED

> Oracle 11 drivers don't accept NVARCHAR type
> --------------------------------------------
>
>                 Key: TEIID-5587
>                 URL: https://issues.jboss.org/browse/TEIID-5587
>             Project: Teiid
>          Issue Type: Bug
>          Components: JDBC Connector
>            Reporter: Steven Hawkins
>            Assignee: Steven Hawkins
>            Priority: Major
>             Fix For: 12.0, 11.2.2
>
>
> Older oracle drivers, such as 11.2.0.1.0 do not accept the sql type NVARCHAR as an argument to set object, which results in an exception like:
> {code}
> Caused by: java.sql.SQLException: Invalid column type
> 	at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:12187)
> 	at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:11577)
> 	at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:12286)
> 	at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:548)
> 	at org.teiid.translator.jdbc.JDBCExecutionFactory.bindValue(JDBCExecutionFactory.java:1145)
> {code}
> We can also safely narrow our usage of the n types with oracle as anything in the latin 1 supplement is still allowed in varchar values.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the teiid-issues mailing list