[CONJ-379] Metadata TINYTEXT type return wrong (Types.LONGVARCHAR instead of Types.VARCHAR) Created: 2016-10-26  Updated: 2016-10-27  Resolved: 2016-10-27

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: 1.5.4
Fix Version/s: 1.5.5

Type: Bug Priority: Minor
Reporter: Yekaterina Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None
Environment:

Linux Kernel-2.6.32-glibc-2.12 x86_64 64bit


Attachments: File repro1.class     Java Source File repro1.java     Text File repro1.log     HTML File setup    

 Description   

Getting java data type value -1 (LONGVARCHAR) instead of 12 (VARCHAR) for a DESCRIBE of a TINYTEXT column.
Please note that MySQL returns type 12 for TINYTEXT fields.



 Comments   
Comment by Diego Dupin [ 2016-10-27 ]

confirmed,
Same problem for "tinyblob" : "tinyblob" is associated to Type.LONGVARBINARY, but Type.VARBINARY would be more appropriate.

Comment by Diego Dupin [ 2016-10-27 ]

commit : https://github.com/MariaDB/mariadb-connector-j/commit/4a52270c1280c1d99ab0f4fb297d0b50ac17848e
will be release in 1.5.5 (beginning of november)

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