[CONJ-412] tinyInt1isBit is not applied in method columnTypeClause Created: 2017-01-18  Updated: 2017-04-08  Resolved: 2017-02-08

Status: Closed
Project: MariaDB Connector/J
Component/s: metadata
Affects Version/s: None
Fix Version/s: 1.5.8

Type: Bug Priority: Major
Reporter: Mike Celis Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks CONJ-72 tinyInt1isBit is not applied by MySQL... Closed
Relates
relates to CONJ-413 Metadata Year INT or Date according t... Closed
relates to CONJ-455 tinyInt1isBit doesn't work properly i... Closed

 Description   

As stated by the last comment of Bryan Turner, in the linked Jira, the flag tinyInt1isBit isn't properly working for things like hibernate validation. The methode he states (columnTypeClause(String)) does seem to be the problem.

An example of the error hibernate validation throws:
org.hibernate.HibernateException: Wrong column type in <databasename> for column <columnname>. Found: tinyint, expected: bit(1)



 Comments   
Comment by Mike Celis [ 2017-01-18 ]

We have solved this issue at our company and made a pull request.

Comment by Diego Dupin [ 2017-02-08 ]

correction in done in 1.5.8-SNAPSHOT, with commits :

available using :

<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.8-SNAPSHOT</version>
    </dependency>
</dependencies>

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