SQL - Include default types for other binary types

Bug #666232 reported by Luis Fernando Planella Gonzalez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Querydsl
Fix Released
Medium
Timo Westkämper

Bug Description

MySQL driver reports mediumblobs as LONGVARBINARY.
It would be nice to include default blob types for those as well.
There are also other types: BINARY and VARBINARY which could be handled the same way.

Changed in querydsl:
importance: Undecided → Medium
Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

I've update the following mappings in JDBCTypeMapping :

        // BLOB
        registerDefault(Types.BINARY, Blob.class);
        registerDefault(Types.BLOB, Blob.class);
        registerDefault(Types.LONGVARBINARY, Blob.class);
        registerDefault(Types.VARBINARY, Blob.class);

BlobType variants might not be necessary.

Could you verify that the modification fixes your problems?

Changed in querydsl:
assignee: nobody → Timo Westkämper (timo-westkamper)
status: New → In Progress
Revision history for this message
Luis Fernando Planella Gonzalez (luisfpg) wrote :

Yes, it did work.
Thanks.

Changed in querydsl:
status: In Progress → Fix Committed
Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

Released in 2.0.3

Changed in querydsl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.