Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 45061 invoked from network); 20 Jul 2006 22:21:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jul 2006 22:21:28 -0000 Received: (qmail 60054 invoked by uid 500); 20 Jul 2006 22:21:27 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 60028 invoked by uid 500); 20 Jul 2006 22:21:27 -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 60019 invoked by uid 99); 20 Jul 2006 22:21:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jul 2006 15:21:27 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jul 2006 15:21:26 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B1B5F41000B for ; Thu, 20 Jul 2006 22:19:14 +0000 (GMT) Message-ID: <32671669.1153433954725.JavaMail.jira@brutus> Date: Thu, 20 Jul 2006 15:19:14 -0700 (PDT) From: "Mike Matrigali (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-1227) Network Server should not use the underlying embedded prepared statement when accessing a BrokeredPreparedStatement In-Reply-To: <6769969.1145403257481.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1227?page=all ] Mike Matrigali updated DERBY-1227: ---------------------------------- I will look at committing the backport to 10.1 > Network Server should not use the underlying embedded prepared statement when accessing a BrokeredPreparedStatement > ------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-1227 > URL: http://issues.apache.org/jira/browse/DERBY-1227 > Project: Derby > Issue Type: Bug > Components: Network Server > Affects Versions: 10.1.2.1 > Reporter: Kathey Marsden > Assigned To: Sunitha Kambhampati > Fix For: 10.2.0.0 > > Attachments: 10.1_p1_derby1227.diff.txt > > > Network Server should not use the underlying embedded > Prepared statement when accessing a BrokeredPreparedStatement. > In DERBY-1025 Dan pointed out this code which while not related to DERBY-1025 does appear to be a problem. Here is his comment regarding this code in DRDAStatement: > /** > * Get prepared statement > * > * @return prepared statement > */ > protected PreparedStatement getPreparedStatement() throws SQLException > { > if (ps instanceof BrokeredPreparedStatement) > return (PreparedStatement)( > ((BrokeredPreparedStatement) ps).getStatement()); > else > return ps; > } > This code, for some unknown reason due to lack of comments, is getting the underlying embedded statement > from a BrokeredPreparedStatement. This should not be allowed, the BrokeredStatement wrappers are there to > hide the embedded statement object as it can change under the covers of the wrapper. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira