db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dag.Wan...@Sun.COM (Dag H. Wanvik)
Subject Re: [jira] Commented: (DERBY-1516) Inconsistent behavior for getBytes and getSubString for embedded versus network
Date Mon, 31 Jul 2006 15:18:12 GMT
Kathey Marsden <kmarsdenderby@sbcglobal.net> writes:

> One interesting test with 0 length is the case for getSubString(1,0)
> for a zero length lob.
> Should it throw an exception or return a zero length string?

The API working doesn't give much help to resolve this, the wording
for the exception in JDK 1.6 is 

 Throws:
    SQLException - if there is an error accessing the CLOB value

which I guess is equivalent to YMMV... A case for Lance?

Even if this case is allowed, should it make a difference if position
is > (length+1), e.g. getSubString(2,0) for an empty CLOB?

Mime
View raw message