You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Federico Spinazzi <f....@masterhouse.it> on 2004/01/22 10:04:56 UTC

Re: [torque] DB2/400 inserts fail with Torque code

Vikas Phonsa wrote:

>Hi,
>
>
>I can't insert data into my DB2/400 using the torque generated classes. The
>reason is the ResultSetMetaData obtained from the ResultSet returned by the
>Select statement before the Inserts in Torque code, gives all my columns to
>be readOnly. This is not pointed out in the exception stacks that I get but
>I did manually debugging to find that out.
>
> 
>
>Manually setting readonly=false in the workingdogs code fixes the problem.
>
> 
>
>Has anybody in here faced similar issues with DB2/400 or any other database?
>  
>
Yes,
DB2 v8 with jdbc type 4 driver (com.ibm.db2.jcc.DB2Driver). With other 
drivers (e.g. the type 2 COM.ibm.db2.jdbc.app.DB2Driver)
you may get different behaviour.
Andras kindly provided me with a modifier village jar (where for hell 
are the sources?)
Regards,
Federico



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org