Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 6739 invoked from network); 2 Jun 2005 18:51:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jun 2005 18:51:15 -0000 Received: (qmail 22282 invoked by uid 500); 2 Jun 2005 18:51:11 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 22211 invoked by uid 500); 2 Jun 2005 18:51:10 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 22137 invoked by uid 99); 2 Jun 2005 18:51:10 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 02 Jun 2005 11:51:05 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id EB4691AF for ; Thu, 2 Jun 2005 20:50:52 +0200 (CEST) Message-ID: <1434208485.1117738252962.JavaMail.jira@ajax.apache.org> Date: Thu, 2 Jun 2005 20:50:52 +0200 (CEST) From: "Philip Wilder (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-333) Malformed if statement in org.apache.derby.impl.drda.Database.getDRDAStatement() Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Malformed if statement in org.apache.derby.impl.drda.Database.getDRDAStatement() -------------------------------------------------------------------------------- Key: DERBY-333 URL: http://issues.apache.org/jira/browse/DERBY-333 Project: Derby Type: Bug Components: Network Server Versions: 10.1.0.0 Environment: ------------------ Java Information ------------------ Java Version: 1.4.2_05 Java Vendor: Sun Microsystems Inc. Java home: C:\Program Files\Java\j2re1.4.2_05 Java classpath: c:\eclipse\db2jcc.jar;c:\eclipse\db2jcc_license_c.jar;C:\derby\derbyRecent\tools\java\jakarta-oro-2.0.8.jar;c:\derby\derbyRecent\classes;. OS name: Windows XP OS architecture: x86 OS version: 5.1 Java user name: 050503w Java user home: C:\Documents and Settings\050503w Java user dir: C:\derby\derbyRecent\classes java.specification.name: Java Platform API Specification java.specification.version: 1.4 --------- Derby Information -------- JRE - JDBC: J2SE 1.4.2 - JDBC 3.0 [C:\eclipse\db2jcc.jar] 2.4 - (17) [C:\eclipse\db2jcc_license_c.jar] 2.4 - (17) [C:\derby\derbyRecent\classes] 10.1.0.0 alpha - (???) [C:\derby\derbyRecent\classes] 10.1.0.0 alpha - (???) ------------------------------------------------------ Reporter: Philip Wilder Semicolon where it should not be (see the comment): protected DRDAStatement getDRDAStatement(String pkgnamcsn) throws SQLException { // Need to get the short version because resultSets have different // corelation ids. String key = getStmtKey(pkgnamcsn); DRDAStatement newStmt = null; // If our current statement doesn't match,retrieve the statement // and make it current if not null. // if (currentStatement == null || !key.equals(getStmtKey(currentStatement.getPkgnamcsn()))); { newStmt = (DRDAStatement) stmtTable.get(key); } if (newStmt != null) // don't blow away currentStatement if we can't find this one currentStatement = newStmt; else return null; // Set the correct result set. currentStatement.setCurrentDrdaResultSet(pkgnamcsn); return currentStatement; } Solution is to remove the semicolon, all that is needed is a committer. -- 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