Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 06760997B for ; Fri, 18 Nov 2011 15:53:13 +0000 (UTC) Received: (qmail 29110 invoked by uid 500); 18 Nov 2011 15:53:12 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 29057 invoked by uid 500); 18 Nov 2011 15:53:12 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 29050 invoked by uid 99); 18 Nov 2011 15:53:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2011 15:53:12 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2011 15:53:11 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A0E2B8E8CC for ; Fri, 18 Nov 2011 15:52:51 +0000 (UTC) Date: Fri, 18 Nov 2011 15:52:51 +0000 (UTC) From: "Dag H. Wanvik (Updated) (JIRA)" To: derby-dev@db.apache.org Message-ID: <1216850510.43919.1321631571660.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1385789185.40385.1321567551601.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (DERBY-5505) BLOB and CLOB Reference Manual topics could use some fixes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-5505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik updated DERBY-5505: --------------------------------- Attachment: blobex.java clobex.java Hi Kim! Looks good! Uploading my slightly modified version of the examples. In the Clob example I change the test while reading to be "!= -1" instead of "> 0" (0 is not EOF actually, so ">= 0" would be correct, I chose to test on -1 since the Javadoc says -1 signal EOF). In the Blob case I change the reading out of the Blob to use a stream rather then getBytes (limit memory usage with large data). I also removed the commit statements and the comment about the autoloading. Feel free to use what you think is appropriate for your example! > BLOB and CLOB Reference Manual topics could use some fixes > ---------------------------------------------------------- > > Key: DERBY-5505 > URL: https://issues.apache.org/jira/browse/DERBY-5505 > Project: Derby > Issue Type: Improvement > Components: Documentation > Affects Versions: 10.8.2.2 > Reporter: Kim Haase > Assignee: Kim Haase > Priority: Minor > Attachments: blobex.java, blobex.java, clobex.java, clobex.java > > > The Reference Manual documentation on BLOBs and CLOBs has some gaps that I would like to fill as a result of my efforts to insert a BLOB into a table column. This should affect the following topics: > CAST function (rrefsqlj33562.dita) > CLOB data type (rrefclob.dita) > BLOB data type (rrefblob.dita) > A comment will provide further details. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira