Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 1372 invoked from network); 29 Mar 2011 12:02:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Mar 2011 12:02:46 -0000 Received: (qmail 73239 invoked by uid 500); 29 Mar 2011 12:02:46 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 73201 invoked by uid 500); 29 Mar 2011 12:02:46 -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 73194 invoked by uid 99); 29 Mar 2011 12:02:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Mar 2011 12:02:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Tue, 29 Mar 2011 12:02:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AE3FE855A2 for ; Tue, 29 Mar 2011 12:02:05 +0000 (UTC) Date: Tue, 29 Mar 2011 12:02:05 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: <1121151027.18733.1301400125710.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <728208241.17248.1301337725728.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (DERBY-5159) ParameterMetaDataJdbc30Test fails with "'PMDD' is not recognized as a function or procedure" 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-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen updated DERBY-5159: -------------------------------------- Attachment: derby-5159-1b.diff Thanks, Dag! Here's an updated patch that moves the creation of the procedure to decorateSQL() in the CleanDatabaseTestSetup that decorates the test, so that we only need the procedure definition once. > ParameterMetaDataJdbc30Test fails with "'PMDD' is not recognized as a function or procedure" > -------------------------------------------------------------------------------------------- > > Key: DERBY-5159 > URL: https://issues.apache.org/jira/browse/DERBY-5159 > Project: Derby > Issue Type: Bug > Components: Test > Affects Versions: 10.8.0.0 > Reporter: Knut Anders Hatlen > Assignee: Knut Anders Hatlen > Attachments: derby-5159-1a.diff, derby-5159-1b.diff > > > Seen in nightly testing on Java 7: > http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.7/testing/testlog/sol32/1085472-suitesAll_diff.txt > 1) testParameterMetadataWithLITERALParameters(org.apache.derbyTesting.functionTests.tests.jdbcapi.ParameterMetaDataJdbc30Test)java.sql.SQLSyntaxErrorException: 'PMDD' is not recognized as a function or procedure. > at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source) > at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedPreparedStatement.(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedCallableStatement.(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedCallableStatement20.(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedCallableStatement30.(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedCallableStatement40.(Unknown Source) > at org.apache.derby.jdbc.Driver40.newEmbedCallableStatement(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedConnection.prepareCall(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedConnection.prepareCall(Unknown Source) > at org.apache.derbyTesting.junit.BaseJDBCTestCase.prepareCall(BaseJDBCTestCase.java:317) > at org.apache.derbyTesting.functionTests.tests.jdbcapi.ParameterMetaDataJdbc30Test.testParameterMetadataWithLITERALParameters(ParameterMetaDataJdbc30Test.java:743) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:112) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) > Caused by: java.sql.SQLException: 'PMDD' is not recognized as a function or procedure. > at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source) > ... 47 more > Caused by: ERROR 42Y03: 'PMDD' is not recognized as a function or procedure. > at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) > at org.apache.derby.impl.sql.compile.StaticMethodCallNode.bindExpression(Unknown Source) > at org.apache.derby.impl.sql.compile.JavaToSQLValueNode.bindExpression(Unknown Source) > at org.apache.derby.impl.sql.compile.CallStatementNode.bindStatement(Unknown Source) > at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source) > at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source) > at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source) > ... 41 more > Looks like a problem with the ordering of the test cases. testParameterMetadataWithDECIMALParameters() creates the procedure PMDD, and testParameterMetadataWithLITERALParameters() calls it and drops it. If the test cases run in the opposite order, testParameterMetadataWithLITERALParameters() cannot find the procedure and fails. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira