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] Issue Comment Edited: (DERBY-4889) Different byte to boolean conversion on embedded and client
Date Sat, 06 Nov 2010 02:08:42 GMT

    [ https://issues.apache.org/jira/browse/DERBY-4889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928910#action_12928910
] 

Knut Anders Hatlen edited comment on DERBY-4889 at 11/5/10 10:07 PM:
---------------------------------------------------------------------

Same issue exists for setShort().

      was (Author: knutanders):
    Same issue exists for getShort().
  
> 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.


Mime
View raw message