From dev-return-11100-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Sat Mar 21 11:09:15 2009 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 69924 invoked from network); 21 Mar 2009 11:09:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Mar 2009 11:09:15 -0000 Received: (qmail 51969 invoked by uid 500); 21 Mar 2009 11:09:14 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 51946 invoked by uid 500); 21 Mar 2009 11:09:13 -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 51935 invoked by uid 99); 21 Mar 2009 11:09:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Mar 2009 04:09:13 -0700 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; Sat, 21 Mar 2009 11:09:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9564F234C004 for ; Sat, 21 Mar 2009 04:08:50 -0700 (PDT) Message-ID: <445650275.1237633730610.JavaMail.jira@brutus> Date: Sat, 21 Mar 2009 04:08:50 -0700 (PDT) From: "Milosz Tylenda (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Assigned: (OPENJPA-933) Database version detection in MySQLDictionary is not reliable In-Reply-To: <1454028031.1235204761857.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-933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Milosz Tylenda reassigned OPENJPA-933: -------------------------------------- Assignee: Milosz Tylenda > Database version detection in MySQLDictionary is not reliable > ------------------------------------------------------------- > > Key: OPENJPA-933 > URL: https://issues.apache.org/jira/browse/OPENJPA-933 > Project: OpenJPA > Issue Type: Bug > Components: jdbc, sql > Affects Versions: 1.2.0, 1.3.0, 2.0.0 > Environment: MySQL 5.1.30, Linux > Reporter: Milosz Tylenda > Assignee: Milosz Tylenda > Priority: Minor > > The database version detection code assumes the version string always looks like "4.1.3-nt" whereas currently a MySQL on Linux reports itself as "5.1.30". This causes an exception catch and a fallback to default values (in particular supportsXMLColumn stays false). Also, the code could take advantage of JDBC 3 methods that return version numbers. > I will provide a patch. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.