[CONJ-353] IBM jdk compatibility issue Created: 2016-09-22  Updated: 2016-09-22  Resolved: 2016-09-22

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: 1.5.2
Fix Version/s: 1.5.3

Type: Bug Priority: Critical
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Problem/Incident
causes CONJ-347 SQL syntax error generated by setTran... Closed
causes CONJ-351 getTables call fails w/ syntax error Closed

 Description   

Direct statement (Statement without parameter) doesn't work using IBM jdk.
Since driver use intensively parameters conversion to UTF8 and sanitizing parameters.
A real improvement was to use String internal Char array value when securityManager allows it (this permit to avoid creation to up to bytes array and copying data into those arrays)

Problem is that IBM jdk Strings can be shared, and use offset/count.
resulting exception will be :
Caused by: java.sql.SQLNonTransientException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1



 Comments   
Comment by Diego Dupin [ 2016-09-22 ]

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>

Generated at Thu Feb 08 03:15:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.