Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 84166 invoked from network); 18 Oct 2005 23:42:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Oct 2005 23:42:10 -0000 Received: (qmail 76164 invoked by uid 500); 18 Oct 2005 23:42:09 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 76144 invoked by uid 500); 18 Oct 2005 23:42:09 -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 76135 invoked by uid 99); 18 Oct 2005 23:42:09 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2005 16:42:07 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id E0E0C50F for ; Wed, 19 Oct 2005 01:41:45 +0200 (CEST) Message-ID: <1192868133.1129678905919.JavaMail.jira@ajax.apache.org> Date: Wed, 19 Oct 2005 01:41:45 +0200 (CEST) From: "A B (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-522) ERROR X0Y79 raised when adding comments using "--" before sql queries with Network Client In-Reply-To: <310503907.1124490092945.JavaMail.jira@ajax.apache.org> 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-522?page=all ] A B updated DERBY-522: ---------------------- Attachment: d10_1Master.patch Attaching a master update for the _10.1_ codeline that fixes a diff for lang/forUpdate.sql. The new logic in ij only strips comments if the client is 10.1 or earlier, and since the original patch was against 10.2, the master file that was submitted reflects the fact that the comments were NOT stripped. For the 10.1 branch, the comments are still stripped, hence the diff. The attached "d10_1Master.patch" file fixes that diff for 10.1. Could a committer please commit? > ERROR X0Y79 raised when adding comments using "--" before sql queries with Network Client > ----------------------------------------------------------------------------------------- > > Key: DERBY-522 > URL: http://issues.apache.org/jira/browse/DERBY-522 > Project: Derby > Type: Bug > Components: Network Client > Versions: 10.1.2.0, 10.1.1.0, 10.2.0.0 > Reporter: Kathey Marsden > Assignee: A B > Fix For: 10.2.0.0, 10.1.2.0 > Attachments: CommentBeforeSelect.java, d10_1Master.patch, d522_v3.patch, d522_v3.stat > > Comments before a select statement Throws exception with Network Client > For Example a statement like the one below in the attached program with throw an exception. > stmt.execute("-- This is a comment \n Select c11 from TAB1"); > org.apache.derby.client.am.SqlException: Statement.executeUpdate() cannot be called with a statement that returns a ResultSet. > at org.apache.derby.client.am.Statement.completeSqlca(Statement.java:1354) > at org.apache.derby.client.am.Statement.completeExecuteImmediate(Statement.java:964) > at org.apache.derby.client.net.NetStatementReply.parseEXCSQLIMMreply(NetStatementReply.java:199) > at org.apache.derby.client.net.NetStatementReply.readExecuteImmediate(NetStatementReply.java:50) > at org.apache.derby.client.net.StatementReply.readExecuteImmediate(StatementReply.java:44) > at org.apache.derby.client.net.NetStatement.readExecuteImmediate_(NetStatement.java:123) > at org.apache.derby.client.am.Statement.readExecuteImmediate(Statement.java:960) > at org.apache.derby.client.am.Statement.flowExecute(Statement.java:1587) > at org.apache.derby.client.am.Statement.executeX(Statement.java:631) > at org.apache.derby.client.am.Statement.execute(Statement.java:622) > at CommentBeforeSelect.createAndPopulateTable(CommentBeforeSelect.java:70) > at CommentBeforeSelect.main(CommentBeforeSelect.java:35) > $ > To reproduce run the attached program > java CommentBeforeSelect -- 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