[
https://issues.apache.org/jira/browse/DERBY-2444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
V.Narayanan updated DERBY-2444:
-------------------------------
Attachment: ClobBlobNotImplemented_v4.stat
ClobBlobNotImplemented_v4.diff
I have addressed the comments pointed out in this issue
The following can be highlighted with respect to this patch
* pos has been replaced with (dataOffset_ + pos - 1) in the
getBinaryStream(long, long)
method implementation in am/Blob.
* added a checkPosAndLength method in the Lob class that verifies that pos and
length
of getCharacterStream(long, long) and getBinaryStream(long, long) satisfy
the following
a) pos <= 0
b) pos > (length of LOB)
c) length < 0
d) pos > (length of LOB)
* Added tests to jdbc4/BlobTest and jdbc4/ClobTest that check for these
conditions
I have run derbyall and junit all and have the following failures that I can
find in the tinderbox also.
In my junit run
--------------------
1)
testMiscExpressions(org.apache.derbyTesting.functionTests.tests.lang.GroupByExpressionTest)java.sql.SQLSyntaxErrorException:
The SELECT list of a grouped query contains at least one invalid expression.
If a SELECT list has a GROUP BY, the list may only contain valid grouping
expressions and valid aggregate expressions.
There was 1 failure:
1) SecurityPolicyReloadingTest( )junit.framework.AssertionFailedError: Policy
file changed. Should not be able to read the property.
In my derbyall run
-------------------------
derbyall/derbyall.fail:lang/grantRevokeDDL.sql
I request for this patch to be considered for reviews and comments and if
everything is ok a commit too.
> Implement not implemented methods Blob.getBinaryStream(long pos, long length)
> and Clob. getCharacterStream(long pos, long length) in the Network Client
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-2444
> URL: https://issues.apache.org/jira/browse/DERBY-2444
> Project: Derby
> Issue Type: Improvement
> Components: Network Client
> Reporter: V.Narayanan
> Assigned To: V.Narayanan
> Attachments: ClobBlobNotImplemented_v1.diff,
> ClobBlobNotImplemented_v1.stat, ClobBlobNotImplemented_v2.diff,
> ClobBlobNotImplemented_v2.stat, ClobBlobNotImplemented_v3.diff,
> ClobBlobNotImplemented_v3.stat, ClobBlobNotImplemented_v4.diff,
> ClobBlobNotImplemented_v4.stat
>
>
> The following methods were introduced in the java.sql.Clob and java.sql.Blob
> interface as part of JDBC 4.0 and need to be implemented.
> Clob
> ------
> getCharacterStream(long pos, long length)
> Blob
> ------
> getBinaryStream(long pos, long length)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.