Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 3097 invoked from network); 5 Jun 2007 14:17:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jun 2007 14:17:48 -0000 Received: (qmail 27844 invoked by uid 500); 5 Jun 2007 14:17:50 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 27788 invoked by uid 500); 5 Jun 2007 14:17:50 -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 27778 invoked by uid 99); 5 Jun 2007 14:17:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2007 07:17:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2007 07:17:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DDD31714186 for ; Tue, 5 Jun 2007 07:17:25 -0700 (PDT) Message-ID: <1577372.1181053045905.JavaMail.jira@brutus> Date: Tue, 5 Jun 2007 07:17:25 -0700 (PDT) From: "V.Narayanan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-2764) Streams returned using Clob.getAsciiStream() and Clob.getCharacterStream() should reflect the changes made to the underlying Clob. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Streams returned using Clob.getAsciiStream() and Clob.getCharacterStream() should reflect the changes made to the underlying Clob. ---------------------------------------------------------------------------------------------------------------------------------- Key: DERBY-2764 URL: https://issues.apache.org/jira/browse/DERBY-2764 Project: Derby Issue Type: Bug Components: Network Client Affects Versions: 10.3.0.0 Reporter: V.Narayanan Fix For: 10.3.0.0 Currently the Embedded and Network Client would differ in behaviour when the following series of steps is followed. a) Create an empty Clob (Using Connnection.createClob()) b) get an InputStream using Clob.getAsciiStream() c) write data into this Clob c.1) Get an OutputStream c.2) Use OutputStream.write(byte [] b) to write into this Clob. d) Now read from the InputStream obtained in step b) and print the number of bytes read as output. The output of step d) differs in the client and in the Embedded side. In the Client ------------- The number of bytes read would always be -1. In the Embedded --------------- The number of bytes would be the number of bytes we reflected. The above behaviour in the NetworkClient is because the length of the Clob is read once and stored in the constructor of the locator Stream returned (in the attribute maxPos). This instead should be read each time we use the streams. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.