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 117D87144 for ; Wed, 17 Aug 2011 19:33:52 +0000 (UTC) Received: (qmail 51058 invoked by uid 500); 17 Aug 2011 19:33:51 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 50882 invoked by uid 500); 17 Aug 2011 19:33:51 -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 50731 invoked by uid 99); 17 Aug 2011 19:33:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2011 19:33:50 +0000 X-ASF-Spam-Status: No, hits=-2001.1 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; Wed, 17 Aug 2011 19:33:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5C193C0E86 for ; Wed, 17 Aug 2011 19:33:27 +0000 (UTC) Date: Wed, 17 Aug 2011 19:33:27 +0000 (UTC) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Message-ID: <1331087021.46194.1313609607373.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-4521) Stream passed out to user does not heed close, allowing reads after next ResultSet#getXXX MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13086531#comment-13086531 ] Kathey Marsden commented on DERBY-4521: --------------------------------------- Labeled derby_backport_reject_10_8. Since it is a behavior change prohibiting an operation, probably not suitable for a maintenance release. > Stream passed out to user does not heed close, allowing reads after next ResultSet#getXXX > ----------------------------------------------------------------------------------------- > > Key: DERBY-4521 > URL: https://issues.apache.org/jira/browse/DERBY-4521 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.0.2.0, 10.0.2.1, 10.1.1.0, 10.1.2.1, 10.1.3.1, 10.2.1.6, 10.2.2.0, 10.3.1.4, 10.3.2.1, 10.3.3.0, 10.4.1.3, 10.4.2.0, 10.5.1.1, 10.5.2.0, 10.5.3.0, 10.6.1.0, 10.6.2.1, 10.7.1.1 > Reporter: Dag H. Wanvik > Priority: Minor > Labels: derby_backport_reject_10_8, derby_triage10_8 > Fix For: 10.9.0.0 > > Attachments: repro.diff > > > This was discovered investigating DERBY-4477 using the repro for DERBY-3646, which erroneously > tries to keep two streams passed out via REsultSet#getBinaryStream open at the same time. This is prohibited by JDBC [1], > but Derby allows it for non-materialized streams because the close call on the passed out stream (performed by EmbedResultSet#closeCurrentStream at the time of the next getXXX) is not heed by the underlying Derby stream. > [1] http://java.sun.com/j2se/1.5.0/docs/api/java/sql/ResultSet.html#getBinaryStream(int) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira