Menu

#105 tinyint being ignored

v2.1
closed-fixed
None
5
2008-10-07
2005-11-01
Ian J Joyce
No

MySQL: 4.1.12-max
DBUnit: 2.1

Any columns I have defined like:

column_name tinyint(1) UNSIGNED NOT NULL default 0,

are being ignored when running a CLEAN_INSERT.

Discussion

  • matthias g

    matthias g - 2008-10-07

    I have been able to reproduce the problem using The MySqlConnector/J versions 5.1.6 and 3.0.17. The driver reports the SQL type "Types.BIT" for a "TINYINT(1) UNSIGNED" column. This is why the DatabaseTableMetaData has the wrong DataType set for the column which is the dbunit DataType.BIT.

    I added the exceptional type "TINYINT UNSIGNED" as type name to the MySqlDataTypeFactory (SVN rev. 829/trunk). Should work in the next release (probably 2.4)

    Thanks and regards,
    mat

     
  • matthias g

    matthias g - 2008-10-07
    • assigned_to: rlogiacco --> gommma
    • status: open --> closed-fixed
     

Log in to post a comment.