[OJB-developers] StatementManager bindInsert, bindUpdate
Brought to you by:
thma
From: Jakob B. <jbr...@ho...> - 2002-02-14 19:55:07
|
hi, why are the parameters bound differently in bindInsert and bindUpdate ? bindInsert: if (val != null) { stmt.setObject(i + 1, val, JdbcAccess.getSqlTypeAll(cld, i)); //stmt.setObject(i + 1, val); } else bindUpdate: Object val = values[i]; if (val != null) stmt.setObject(index, val); else the new setObject with Type used in bindInsert produces an exception for Types.BIT in mySql because this type is not supported in setObject(obj,type). the setObject without the type works perfectly. what was the reason to change setObject in 07.343 ? and why is it only in bindInsert ? thanks jakob |