db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anders Morken (JIRA)" <derby-...@db.apache.org>
Subject [jira] Created: (DERBY-1354) Writer.write(int c) to writer from Clob.setCharacterStream(long pos) appends integer value, not character
Date Fri, 26 May 2006 16:05:29 GMT
Writer.write(int c) to writer from Clob.setCharacterStream(long pos) appends integer value,
not character
---------------------------------------------------------------------------------------------------------

         Key: DERBY-1354
         URL: http://issues.apache.org/jira/browse/DERBY-1354
     Project: Derby
        Type: Bug

  Components: JDBC, Network Client  
    Versions: 10.2.0.0, 10.1.2.0, 10.1.2.1, 10.1.3.0, 10.1.2.2, 10.1.2.3, 10.1.2.4    
    Reporter: Anders Morken
 Assigned to: Anders Morken 
    Priority: Minor
     Fix For: 10.2.0.0, 10.1.3.0


DERBY-1245-collateraldamage-v1.patch fixes a little bug in o.a.d.client.am.ClobWriter.java's
write(int c) method.
In it's original implementation the int parameter was passed directly to the StringBuffer.append()
method, resulting 
in the int being converted to it's string representation and then appended. (i.e. passing
the char 'a' to write(int c) 
would append the string "97" to the StringBuffer and thus the Clob. 97 is the ASCII code for
the character 'a'.) 

Please note that the patch is attached to DERBY-1245, as that was the Jira issue I was working
on when I discovered
 this. This issue is a placeholder of sorts. =)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message