[
https://issues.apache.org/jira/browse/DERBY-3907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kristian Waagan updated DERBY-3907:
-----------------------------------
Attachment: derby-3907-3a-readertoutf8stream_cleanup.stat
derby-3907-3a-readertoutf8stream_cleanup.diff
Patch 3a cleans up ReaderToUTF8Stream and changes the behavior in way one.
It will now try to truncate CHAR and VARCHAR as well as CLOB. Only spaces are
accepted as truncatable characters.
Truncation is disallowed for LONG VARCHAR.
In addition, I added some substance to the error message when truncation fails.
I decided to not print the stream content, as it is not easily accessible and
it may be very large.
I also added quite a bit of JavaDoc/comments, removed the instance variable
maximumLength and simplified the constructors.
Since the type name is used to determine if truncation is allowed or not, I
added a debug block verifying the name. As a consequence of this, I had to
modify UTF8UtilTest.
Regression tests ran with two failures (stressmulti and replication), and due
to some changes I'm re-running the tests.
Patch ready for review.
> Save useful length information for Clobs in store
> -------------------------------------------------
>
> Key: DERBY-3907
> URL: https://issues.apache.org/jira/browse/DERBY-3907
> Project: Derby
> Issue Type: Improvement
> Components: JDBC, Store
> Affects Versions: 10.5.0.0
> Reporter: Kristian Waagan
> Assignee: Kristian Waagan
> Attachments: derby-3907-1a-alternative_approach.diff,
> derby-3907-2b-header_write_preparation.diff,
> derby-3907-2b-header_write_preparation.stat,
> derby-3907-3a-readertoutf8stream_cleanup.diff,
> derby-3907-3a-readertoutf8stream_cleanup.stat
>
>
> The store should save useful length information for Clobs. This allows the
> length to be found without decoding the whole data stream.
> The following thread raised the issue on what information to store, and also
> contains some background information:
> http://www.nabble.com/Storing-length-information-for-CLOB-on-disk-tp19197535p19197535.html
> The information to store, and the exact format of it, is still to be
> discussed/determined.
> Currently two bytes are set aside for length information, which is inadequate.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.