MySQLDatabaseMetadata.getColumns returns 0 as datatype for TINYINT columns

Bug #1433738 reported by Stefan Anzinger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle
New
Undecided
Unassigned

Bug Description

Translation is missing, add Translation for TINYINT to org.drizzle.jdbc.CommonDatabaseMetaData.dataTypeClause:

    protected final String dataTypeClause =
            " CASE data_type" +
                    " WHEN 'int' THEN " + Types.INTEGER +
                    " WHEN 'mediumint' THEN "+Types.INTEGER +
                    " WHEN 'varchar' THEN " + Types.VARCHAR +
                    " WHEN 'datetime' THEN " + Types.TIMESTAMP +
                    " WHEN 'date' THEN " + Types.DATE +
                    " WHEN 'time' THEN " + Types.TIME +
                    " WHEN 'text' THEN " + Types.VARCHAR +
                    " WHEN 'bigint' THEN " + Types.BIGINT +
                    " WHEN 'varbinary' THEN " + Types.VARBINARY +
                    " WHEN 'timestamp' THEN " + Types.TIMESTAMP +
                    " WHEN 'double' THEN " + Types.DOUBLE +
                    " WHEN 'bit' THEN " + Types.BIT +
>>>>> " WHEN 'tinyint' THEN " + Types.TINYINT + <<<<<<
                    " END";

Revision history for this message
Stefan Anzinger (stefan-anzinger) wrote :

The same applies to SMALLINT

Revision history for this message
Fox (13524752199-g) wrote :

The same to the CHAR in MySQL

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.