March 14th, 2007
Data too long for column [bit] in MySQL
Immer wieder stoße ich unter Jboss/MySQL auf den selben Fehler:
Data truncation: Data too long for column 'MODIFIABLE' at row 1
Wobei das Feld MODIFIABLE vom Typ bit ist und hier der Wert ‘1‘ eingefügt werden soll.
Die Lösung ist simpel: Es handelt sich um einen Bug im MySQL JDBC-Treiber Version 5.0.3. Also: Upgrade auf z.B. 5.0.4 und gut is.


No Responses to “Data too long for column [bit] in MySQL”
No comments yet
Leave a Reply