db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Created: (DERBY-4965) Boolean to char conversion results in integer
Date Tue, 11 Jan 2011 10:29:45 GMT
Boolean to char conversion results in integer

                 Key: DERBY-4965
                 URL: https://issues.apache.org/jira/browse/DERBY-4965
             Project: Derby
          Issue Type: Bug
          Components: JDBC
    Affects Versions:
            Reporter: Knut Anders Hatlen

Seen when running the Java EE CTS on Derby The following code results in "1" being
printed, whereas the expected result is "true":

        PreparedStatement ps = c.prepareStatement("values cast(? as char(10))");
        ps.setObject(1, Boolean.TRUE, Types.CHAR);
        ResultSet rs = ps.executeQuery();

Same seen when using VARCHAR or LONGVARCHAR instead of CHAR, and when using setBoolean() instead
of setObject().

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message