Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-85

MySQLType.GEOMETRY not handled in MySQLValueObject.getObject()

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 1.1.5
    • 1.1.8
    • None
    • None
    • MySQL 5.5.35 on Debian Linux

    Description

      When accessing a column of MySQL type LINESTRING, the MariaDB JDBC driver crashes as follows:
      java.lang.RuntimeException: GEOMETRY
      at org.mariadb.jdbc.internal.mysql.MySQLValueObject.getObject(MySQLValueObject.java:153)
      at org.mariadb.jdbc.MySQLResultSet.getObject(MySQLResultSet.java:434)
      [...]

      In the debugger I see that the column was typed as MySQLType.GEOMETRY in MySQLType.fromServer(), but MySQLValueObject.getObject() does not handle this case and throws an exception instead.

      Attachments

        Activity

          People

            massimo.siani Massimo Siani (Inactive)
            adawid Adalbert Dawid
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.