ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rahul Saluja <rahul.sal...@vnl.in>
Subject RE: Inserting null value in ibatis
Date Thu, 26 Mar 2009 06:47:26 GMT
Hi Sowmya,

As far as my understanding goes

You may need to use CustomtypeHandler in order to insert a value (which corresponds to NULL)
 which in your program will tell you what stands for NULL so that whenever you receive that
value back from DB  you can assign that variable as NUL by yourself in the code .

Regards
Rahul
________________________________
From: Sekar, Sowmya [mailto:ssekar@ucsd.edu]
Sent: Wednesday, March 25, 2009 10:27 PM
To: user-java@ibatis.apache.org
Subject: Inserting null value in ibatis

Hi,
I am trying to insert null value  for a column and it throws the following exception

Cause: java.sql.SQLException: JZ006: Caught IOException: java.io.IOException: JZ0SL: Unsupported
SQL type 0.
Caused by: java.sql.SQLException: JZ006: Caught IOException: java.io.IOException: JZ0SL: Unsupported
SQL type 0. *!

Does ibatis allow insertion of null values?

Thanks,

Sowmya Sekar

The information contained in this e-mail is private & confidential and may also be legally
privileged. If you are not the intended recipient, please notify us, preferably by e-mail,
and do not read, copy or disclose the contents of this message to anyone.

Mime
View raw message