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] Issue Comment Edited: (DERBY-3705) In Net Client mode, negative values for stream length are accepted without an exception for PreparedStatement.setAsciiStream()
Date Tue, 10 Jun 2008 15:46:46 GMT

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

kristwaa edited comment on DERBY-3705 at 6/10/08 8:45 AM:
-----------------------------------------------------------------

Thank you Suran.
I'm running the tests again and intend to commit the patch as soon as they have completed.

I took the liberty to replace a few tabs in the patch, and changed some formatting in the
new method to stay below 80 characters per line. Attached modified patch as 'derby-3705-2b.diff'.

      was (Author: kristwaa):
    Thank you Suran.
I'm running the tests again and intend to commit the patch as soon as they have completed.

I took the liberty to replace a few tabs in the patch, and changed some formatting in the
new method to stay below 80 lines. Attached modified patch as 'derby-3705-2b.diff'.
  
> In Net Client mode, negative values for stream length are accepted without an exception
for PreparedStatement.setAsciiStream()
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-3705
>                 URL: https://issues.apache.org/jira/browse/DERBY-3705
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client
>    Affects Versions: 10.4.1.3, 10.5.0.0
>         Environment: Windows XP SP2, Derby trunk SVN checkout
>            Reporter: Suran Jayathilaka
>            Assignee: Suran Jayathilaka
>            Priority: Minor
>         Attachments: derby-3705-2.diff, derby-3705-2b.diff, derby-3705.diff
>
>
> This is related to Cloudscape bug 4250.
> Pass negative length as the stream length for various setXXXStream methods should throw
an exception. But in Net Client mode, passing a negative value as stream length to PreparedStatement.setAsciiStream()
doesn't throw an exception.
> e.g. //from store/StreamingColumn
> PreparedStatement ps = prepareStatement("insert into "
> 				+ "testLongVarCharInvalidStreamLength11 values(?, ?, ?)");
> 		ps.setInt(1, 100);
> 		try {
> 			println("===> testing using setAsciiStream with -2 as length");
> 			ps.setAsciiStream(2, fileIn, -2); // should throw exception here but doesn't.
>                  }
> This issue has been fixed for embedded mode, but not for client mode.

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