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 "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2011/02/20 22:32:38 UTC
[jira] Assigned: (DERBY-5063) Embedded driver allows updateBytes()
on BOOLEAN column
[ https://issues.apache.org/jira/browse/DERBY-5063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen reassigned DERBY-5063:
-----------------------------------------
Assignee: Knut Anders Hatlen
> Embedded driver allows updateBytes() on BOOLEAN column
> ------------------------------------------------------
>
> Key: DERBY-5063
> URL: https://issues.apache.org/jira/browse/DERBY-5063
> Project: Derby
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 10.7.1.1
> Reporter: Knut Anders Hatlen
> Assignee: Knut Anders Hatlen
>
> The following code inserts the value TRUE into the table T on the embedded driver:
> Statement s = c.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE);
> s.execute("create table t(b boolean)");
> ResultSet rs = s.executeQuery("select b from t");
> rs.moveToInsertRow();
> rs.updateBytes(1, "this is a test".getBytes());
> rs.insertRow();
> The client driver fails:
> java.sql.SQLException: An attempt was made to put a data value of type 'byte[]' into a data value of type 'BOOLEAN'.
> I believe the client driver is correct, and embedded should be changed to match it.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira