Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 69046 invoked from network); 13 Jun 2007 06:45:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jun 2007 06:45:47 -0000 Received: (qmail 98255 invoked by uid 500); 13 Jun 2007 06:45:51 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 98040 invoked by uid 500); 13 Jun 2007 06:45: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 98031 invoked by uid 99); 13 Jun 2007 06:45:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2007 23:45: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, 12 Jun 2007 23:45:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2276D7141E3 for ; Tue, 12 Jun 2007 23:45:26 -0700 (PDT) Message-ID: <15173624.1181717126138.JavaMail.jira@brutus> Date: Tue, 12 Jun 2007 23:45:26 -0700 (PDT) From: "Anurag Shekhar (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-2763) In the Network Client InputStreams and Readers returned from LOB's should be sensitive to underlying LOB data changes. In-Reply-To: <785582.1181051545961.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2763?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504138 ]=20 Anurag Shekhar commented on DERBY-2763: --------------------------------------- > 4) Here is an issue for the documentation noted in my=20 >earlier comment today: =C3=98ystein's use case is supported=20 >only if a rewritten chunk is exactly the same length as=20 >the chunk it is replacing.=20 Blob.setBytes or OutputStream.write always overwrites the=20 bytes of same length.Even in case of Clob, setString or=20 Writer.write will replace chars of same length. > In the Network Client InputStreams and Readers returned from LOB's should= be sensitive to underlying LOB data changes. > -------------------------------------------------------------------------= --------------------------------------------- > > Key: DERBY-2763 > URL: https://issues.apache.org/jira/browse/DERBY-2763 > Project: Derby > Issue Type: Bug > Components: Network Client > Affects Versions: 10.3.0.0 > Reporter: V.Narayanan > Assignee: V.Narayanan > Fix For: 10.3.0.0 > > Attachments: Approach_2.diff, Approach_2.stat, Approach_2.txt, Ap= proach_3.diff, Approach_3.stat, Approach_4.diff, Approach_4.stat, LOBLength= Persists.java, UpdateSensitiveStreamsForClient_v1.diff, UpdateSensitiveStre= amsForClient_v1.stat > > > Currently the Embedded and Network Client would differ=20 > in behaviour when the following series of steps is=20 > followed. > a) Create an empty Blob > b) get an InputStream using Blob.getBinaryStream() > c) write data into this Blob > c.1) Get an OutputStream > c.2) Use OutputStream.write(byte [] b) to write > into this Blob. > 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 Blob is read once and stored in the=20 > constructor of the locator Stream returned (in the=20 > attribute maxPos). > This instead should be read each time we use the streams. > A similar issue exists for Clobs also. > I will raise a seperate JIRA issue for this. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.