db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Waagan (JIRA)" <j...@apache.org>
Subject [jira] Created: (DERBY-4515) Document and clarify the use of DataValueDescriptor.setValue(InputStream,int)
Date Fri, 15 Jan 2010 12:49:57 GMT
Document and clarify the use of DataValueDescriptor.setValue(InputStream,int)
-----------------------------------------------------------------------------

                 Key: DERBY-4515
                 URL: https://issues.apache.org/jira/browse/DERBY-4515
             Project: Derby
          Issue Type: Improvement
          Components: JDBC
    Affects Versions: 10.6.0.0
            Reporter: Kristian Waagan
            Assignee: Kristian Waagan
            Priority: Minor
             Fix For: 10.6.0.0


The usage of the method DataValueDescriptor.setValue(InputStream stream, int length) is unclear.
The intended use seems to be to pass on the known length of an input stream set from the JDBC-layer
(i.e. setBinaryStream).
There seems to be two distinct cases:
 - the logical length of the stream is known
 - the logical length of the stream is not known

Using -1 when the length is not known seems to be an established pattern.

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