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 2010/11/06 02:42:43 UTC

[jira] Updated: (DERBY-4889) Different byte to boolean conversion on embedded and client

     [ https://issues.apache.org/jira/browse/DERBY-4889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-4889:
--------------------------------------

    Bug behavior facts: [Embedded/Client difference]

> Different byte to boolean conversion on embedded and client
> -----------------------------------------------------------
>
>                 Key: DERBY-4889
>                 URL: https://issues.apache.org/jira/browse/DERBY-4889
>             Project: Derby
>          Issue Type: Bug
>          Components: JDBC
>    Affects Versions: 10.7.1.0
>            Reporter: Knut Anders Hatlen
>
> The following code prints "true" with the embedded driver and "false" with the client driver:
>         PreparedStatement ps = c.prepareStatement("values cast(? as boolean)");
>         ps.setByte(1, (byte) 32);
>         ResultSet rs = ps.executeQuery();
>         rs.next();
>         System.out.println(rs.getBoolean(1));
> If setByte() is replaced with setInt(), they both print "true".

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