MySQL Forums
Forum List  »  Stored Procedures

Re: Calling stored procedure in java with connector/j
Posted by: Mark Matthews
Date: April 05, 2005 10:53AM

Samir Seba wrote:
> Hello,
>
> Can some one explain how to fix the following :
>
> java.sql.SQLException: Connection is read-only.
> Queries leading to data modification are not
> allowed
>
> Thank you.

Samir,

You're calling executeUpdate() on a connection that has had 'setReadOnly(true)' called on it.

-Mark

Mark Matthews
Consulting Member Technical Staff - MySQL Enterprise Tools
Oracle
http://www.mysql.com/products/enterprise/monitor.html

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Calling stored procedure in java with connector/j
2879
April 05, 2005 10:53AM


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.