Return-Path: Delivered-To: apmail-incubator-beehive-dev-archive@www.apache.org Received: (qmail 69396 invoked from network); 2 Aug 2005 18:49:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Aug 2005 18:49:53 -0000 Received: (qmail 44672 invoked by uid 500); 2 Aug 2005 18:49:51 -0000 Delivered-To: apmail-incubator-beehive-dev-archive@incubator.apache.org Received: (qmail 44639 invoked by uid 500); 2 Aug 2005 18:49:50 -0000 Mailing-List: contact beehive-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Developers" Delivered-To: mailing list beehive-dev@incubator.apache.org Received: (qmail 44598 invoked by uid 99); 2 Aug 2005 18:49:50 -0000 X-ASF-Spam-Status: No, hits=0.0 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, 02 Aug 2005 11:49:38 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 08022DF for ; Tue, 2 Aug 2005 20:49:35 +0200 (CEST) Message-ID: <804452446.1123008575010.JavaMail.jira@ajax.apache.org> Date: Tue, 2 Aug 2005 20:49:35 +0200 (CEST) From: "Chad Schoettger (JIRA)" To: beehive-dev@incubator.apache.org Subject: [jira] Created: (BEEHIVE-868) Calling stored proc with uppercase 'CALL', and providing SQLParameter arguments, results in a compiler error 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 Calling stored proc with uppercase 'CALL', and providing SQLParameter arguments, results in a compiler error ------------------------------------------------------------------------------------------------------------ Key: BEEHIVE-868 URL: http://issues.apache.org/jira/browse/BEEHIVE-868 Project: Beehive Type: Bug Components: System Controls Versions: TBD Reporter: Chad Schoettger Priority: Minor When trying to call SP's via the JdbcControl, and sending SQLParameters as arguments, a compile time error will be thrown if the 'CALL' part of the statement is in uppercase. The statement works fine if lowercase 'call' is used instead. It could be that this is a side-effect of the special processing of the statement that is done because of the presence of the SQLParameter argument. Error: org.apache.beehive.controls.api.ControlException: Error parsing SQL statment.Encountered " " at line 1, column 6. [apt] Was expecting one of: [apt] "}" ... [apt] "|" ... [apt] [Encountered " " at line 1, column 6. [apt] Was expecting one of: [apt] "}" ... [apt] "|" ... [apt] ] [apt] public void callSP_name_city(SQLParameter[] sqlParameters) throws SQLException; Workaround: Only use lowercase 'call' when accessing SP's with SQLParameters. Repro: Call a SP, providing a SQLParameter as an argument, and use an uppercase 'CALL' as part of the statement. -- 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