You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Mamta A. Satoor (JIRA)" <ji...@apache.org> on 2013/07/18 19:32:50 UTC
[jira] [Commented] (DERBY-2039) cant get CHAR from Character
[ https://issues.apache.org/jira/browse/DERBY-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13712534#comment-13712534 ]
Mamta A. Satoor commented on DERBY-2039:
----------------------------------------
As per Bernt's comment, I will go ahead and close this issue. It can't be reopened if it needs to be reconsidered but there has been no activity on it in over 6 years.
> cant get CHAR from Character
> ----------------------------
>
> Key: DERBY-2039
> URL: https://issues.apache.org/jira/browse/DERBY-2039
> Project: Derby
> Issue Type: Improvement
> Components: JDBC
> Affects Versions: 10.2.1.6
> Reporter: Martin Backhaus
> Priority: Minor
>
> Derby is unable to convert form Character to CHAR. Im using Hibernate 3.2. The code works fine with MySQL and HSQLDB.
> Caused by: java.sql.SQLException: An attempt was made to get a data value of type 'CHAR' from a data value of type 'java.lang.Character'.
> at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
> at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
> at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown Source)
> at org.apache.derby.impl.jdbc.ConnectionChild.newSQLException(Unknown Source)
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement.dataTypeConversion(Unknown Source)
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement.setObject(Unknown Source)
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement.setObject(Unknown Source)
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement.setObject(Unknown Source)
> at de.kontorist.db.KontoristEnum.nullSafeSet(KontoristEnum.java:334)
> at org.hibernate.type.CustomType.nullSafeSet(CustomType.java:146)
> at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:1932)
> at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2178)
> ... 22 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira