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

Myrna van Lunteren commented on DERBY-4965:
-------------------------------------------

I did some searching through version control history of when this code was 
developed (6 years ago) *before* getting contributed to apache, but even there 
there is no differences.html checked in, even though the earliest version of 
this file mentions it. No way to figure out what was in it now...+1 to removal 
of the reference.
There were actually 2 references to that file in the CrossConverters class; we 
should probably remove the second reference too.

> 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: 10.7.1.1
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>             Fix For: 10.8.0.0
>
>         Attachments: derby-4965-1a.diff, derby-4965-1b.diff, 
> derby-4965-1c.diff
>
>
> Seen when running the Java EE CTS on Derby 10.7.1.1. 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();
>         rs.next();
>         System.out.println(rs.getString(1));
> 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.

Reply via email to