I am getting this Error on Insert statement to AS400 database, using Java with JDBC.
+2
A:
I figured it out, I had a numeric field with length 4 and decimal digits 2, In my insert I was trying to insert 100 in this numeric field which gave this error.
I altered the table and made it numeric with length 9 and decimal digits 2
and the insert worked.
even though the error says "Conversion error", actually its the wrong field length.
Richipal
2009-09-10 17:43:17
Makes sense. It was trying to convert a 3,0 value to a 4,2 value when it failed.
Tracy Probst
2009-09-11 14:43:48