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

MySQLType.GEOMETRY not handled in MySQLValueObject.getObject()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.1.5
    • Fix Version/s: 1.1.8
    • Component/s: None
    • Labels:
      None
    • Environment:
      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

            Assignee:
            massimo.siani Massimo Siani (Inactive)
            Reporter:
            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.