Re: data truncation and prepared statements
Posted by: Roshan Iqbal
Date: March 22, 2005 02:09PM

I am also experiencing the same problem the original poster reported. If I use Statement java.sql.DataTruncation gets thrown but when I use PreparedStatement no exceptions are thrown. I am using MySQL 4.1.10 and connector-j version is 3.1.7

Is there a way to fix this problem? Essentially I would like java.sql.DataTruncation exception to be thrown irrespective of whether I use Statement or PreparedStatement.

Would appreciate your help.

Thanks
Roshan

Options: ReplyQuote


Subject
Written By
Posted
Re: data truncation and prepared statements
March 22, 2005 02:09PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.