db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anurag Shekhar (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2346) Provide set methods for clob for embedded driver
Date Wed, 11 Apr 2007 19:47:32 GMT

    [ https://issues.apache.org/jira/browse/DERBY-2346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12488163
] 

Anurag Shekhar commented on DERBY-2346:
---------------------------------------

This snippet, converting a string of length 1 to byte array and then 
converting back to string returns falls. I haven't really investigated 
why it happens but probably thats the reason why there is a routine for 
encoding string in utf-8 in other places in code base too.


     char [] c  = {(char) 56249};
     String str = String.copyValueOf (c);
     byte b [] = str.getBytes ("UTF-8");
     String s = new String (b, "UTF-8");    
     System.out.println (str.equals(s));




> Provide set methods for clob for embedded driver
> ------------------------------------------------
>
>                 Key: DERBY-2346
>                 URL: https://issues.apache.org/jira/browse/DERBY-2346
>             Project: Derby
>          Issue Type: Sub-task
>          Components: JDBC
>    Affects Versions: 10.3.0.0
>            Reporter: Anurag Shekhar
>         Assigned To: Anurag Shekhar
>         Attachments: derby-2346-only_for_review.diff, derby-2346.v1.diff
>
>


-- 
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