Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-933

Database version detection in MySQLDictionary is not reliable

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2.0, 1.3.0, 2.0.0-M2
    • 1.3.0, 2.0.0-M2
    • jdbc, sql
    • None
    • MySQL 5.1.30, Linux

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            milosz Milosz Tylenda
            milosz Milosz Tylenda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment