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-3991) Clob.truncate(0) throws exception
Date Mon, 15 Dec 2008 12:49:44 GMT
Clob.truncate(0) throws exception

                 Key: DERBY-3991
                 URL: https://issues.apache.org/jira/browse/DERBY-3991
             Project: Derby
          Issue Type: Bug
          Components: JDBC
    Affects Versions:,,
            Reporter: Kristian Waagan
            Priority: Minor

Truncating a Clob to zero length is allowed according to the JDBC specification, which says
the following about the len argument (in the @throws tag):
"SQLException - if there is an error accessing the CLOB value or if len is less than 0 "

Derby throws an exception if zero is passed to truncate.

A quick inspection of the code suggests that truncating a Clob to the empty string is easy
to support.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message