Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 14544 invoked from network); 27 Jul 2009 17:01:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jul 2009 17:01:32 -0000 Received: (qmail 80465 invoked by uid 500); 27 Jul 2009 17:02:37 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 80413 invoked by uid 500); 27 Jul 2009 17:02:37 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 80403 invoked by uid 99); 27 Jul 2009 17:02:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jul 2009 17:02:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jul 2009 17:02:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6C88D234C051 for ; Mon, 27 Jul 2009 10:02:15 -0700 (PDT) Message-ID: <1605484585.1248714135443.JavaMail.jira@brutus> Date: Mon, 27 Jul 2009 10:02:15 -0700 (PDT) From: "Milosz Tylenda (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Issue Comment Edited: (OPENJPA-1197) NativeQueries fail with MySQL In-Reply-To: <1217476531.1248709155465.JavaMail.jira@brutus> 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/OPENJPA-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12735658#action_12735658 ] Milosz Tylenda edited comment on OPENJPA-1197 at 7/27/09 10:02 AM: ------------------------------------------------------------------- This is probably the same issue as in OPENJPA-774 - we use prepareCall instead of prepareStatement. was (Author: milosz): This is probably the same issue as in OPENJPA-744 - we use prepareCall instead of prepareStatement. > NativeQueries fail with MySQL > ------------------------------ > > Key: OPENJPA-1197 > URL: https://issues.apache.org/jira/browse/OPENJPA-1197 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 1.0.3, 1.2.1 > Reporter: Michael Dick > Assignee: Michael Dick > Priority: Minor > > The TestCase for DataCache included / excluded types relies on a NativeQuery to drop database tables at the end of the test. This fails with some versions of the MySQL JDBC driver. > The exception from the testcase looks like this : > org.apache.openjpa.persistence.PersistenceException: Unable to retrieve metadata for procedure. > at org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:3964) > at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:97) > at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:83) > at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:59) > at org.apache.openjpa.jdbc.kernel.SQLStoreQuery$SQLExecutor.executeUpdate(SQLStoreQuery.java:242) > > Caused by: java.sql.SQLException: Unable to retrieve metadata for procedure. > at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910) > at com.mysql.jdbc.CallableStatement.extractProcedureName(CallableStatement.java:857) > at com.mysql.jdbc.CallableStatement.determineParameterTypes(CallableStatement.java:692) > at com.mysql.jdbc.CallableStatement.<init>(CallableStatement.java:513) > at com.mysql.jdbc.Connection.parseCallableStatement(Connection.java:4422) > at com.mysql.jdbc.Connection.prepareCall(Connection.java:4496) > at com.mysql.jdbc.Connection.prepareCall(Connection.java:4470) > at org.apache.commons.dbcp.DelegatingConnection.prepareCall(DelegatingConnection.java:212) > Upgrading to a more recent version of the MySQL driver resolves these issues and allows the testcase to pass. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.