Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.5.2
    • 1.5.3
    • Other
    • None

    Description

      We installed the newest Connector/J 1.5.2 instead of 1.4.6. We discovered a bug in the new driver.
      getTables() call fails w/ syntax error. Failure occurs when using MariaDB JDBC driver V1.5.2 , but works when using MariaDB JDBC driver V1.4.6.

      call getTables()

          • SQLException caught ***

      SQLState: 42000
      Message: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
      Query is : SELECT TABLE_SCHEMA TABLE_CAT, NULL TABLE_SCHEM, TABLE_NAME, IF(TABLE_TYPE='BASE TABLE', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME, NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES WHERE (ISNULL(database()) OR (TABLE_SCHEMA = database())) AND (TABLE_NAME = 'junk') ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME
      Vendor: 1064

      When the above SQL statement is run in MariaDB natively, it returns a row with no problem.

      Attachments

        1. env_java
          0.4 kB
        2. repro.class
          3 kB
        3. repro.java
          5 kB
        4. repro.log.jdbcdriv146.java8
          0.3 kB
        5. repro.log.jdbcdriv152.java7
          0.9 kB
        6. repro.log.jdbcdriv152.java8
          0.9 kB

        Issue Links

          Activity

            Gofman Yekaterina created issue -
            diego dupin Diego Dupin added a comment -

            Hi, this is strange because seems to be simular to CONJ-347, but i didn't succedd to reproduced the problem.
            Using the "repro" files you send and 1.5.2, using oracle JDK on windows and unix.

            So, in order to reproduced the problem, can you indicate the server : database version, environnement = unix/windows/z-os...
            and the java runtime (oracle, openJDK, IBM) ?

            i'll make some tests with IBM runtime

            diego dupin Diego Dupin added a comment - Hi, this is strange because seems to be simular to CONJ-347 , but i didn't succedd to reproduced the problem. Using the "repro" files you send and 1.5.2, using oracle JDK on windows and unix. So, in order to reproduced the problem, can you indicate the server : database version, environnement = unix/windows/z-os... and the java runtime (oracle, openJDK, IBM) ? i'll make some tests with IBM runtime
            diego dupin Diego Dupin added a comment -

            issue reproduced, it concern only IBM runtime.

            diego dupin Diego Dupin added a comment - issue reproduced, it concern only IBM runtime.
            diego dupin Diego Dupin made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            diego dupin Diego Dupin made changes -
            Fix Version/s 1.5.3 [ 22300 ]
            diego dupin Diego Dupin made changes -
            diego dupin Diego Dupin added a comment - - edited

            fixed in 1.5.3 (will be released the oct. 3).

            correction is available in snapshot release :

            <repositories>
                <repository>
                    <id>sonatype-nexus-snapshots</id>
                    <name>Sonatype Nexus Snapshots</name>
                    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
                </repository>
            </repositories>
             
            <dependencies>
                <dependency>
                    <groupId>org.mariadb.jdbc</groupId>
                    <artifactId>mariadb-java-client</artifactId>
                    <version>1.5.3-SNAPSHOT</version>
                </dependency>
            </dependencies>
            

            diego dupin Diego Dupin added a comment - - edited fixed in 1.5.3 (will be released the oct. 3). correction is available in snapshot release : <repositories> <repository> <id>sonatype-nexus-snapshots</id> <name>Sonatype Nexus Snapshots</name> <url>https: //oss.sonatype.org/content/repositories/snapshots</url> </repository> </repositories>   <dependencies> <dependency> <groupId>org.mariadb.jdbc</groupId> <artifactId>mariadb-java-client</artifactId> <version> 1.5 . 3 -SNAPSHOT</version> </dependency> </dependencies>
            diego dupin Diego Dupin made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            Gofman Yekaterina added a comment -

            Hi Diego,
            Thanks for your prompt fix. Could you help me to find the snapshot release of Connector/J 1.5.3?
            I navigated to the url https://oss.sonatype.org/content/repositories/snapshots but do not know how to find it there.
            Kate

            Gofman Yekaterina added a comment - Hi Diego, Thanks for your prompt fix. Could you help me to find the snapshot release of Connector/J 1.5.3? I navigated to the url https://oss.sonatype.org/content/repositories/snapshots but do not know how to find it there. Kate
            diego dupin Diego Dupin added a comment -

            it's a maven repository, so you just have to folow the maven groupId path.
            So jar can be available directly here :
            https://oss.sonatype.org/content/repositories/snapshots/org/mariadb/jdbc/mariadb-java-client/1.5.3-SNAPSHOT/mariadb-java-client-1.5.3-20160926.213538-2.jar

            diego dupin Diego Dupin added a comment - it's a maven repository, so you just have to folow the maven groupId path. So jar can be available directly here : https://oss.sonatype.org/content/repositories/snapshots/org/mariadb/jdbc/mariadb-java-client/1.5.3-SNAPSHOT/mariadb-java-client-1.5.3-20160926.213538-2.jar
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 77136 ] MariaDB v4 [ 134906 ]

            People

              diego dupin Diego Dupin
              Gofman Yekaterina
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.