Re: foreign key error, but only in jdbc.
Posted by: Mark Matthews
Date: May 20, 2012 04:24PM

Carl,

Running the stored procedure from workbench, even in quick succession is nowhere near the same behavior as calling it from multiple threads. Do you bracket the stored procedure with a transaction, or is it in autocommit mode? Stored procedures do not *imply* a transaction, they can either particpate in one, or start one themselves, although procedures that start their own transactions are usually not a good idea with more than simplistic programs, as MySQL does not support nested transactions.

-Mark

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

Options: ReplyQuote


Subject
Written By
Posted
Re: foreign key error, but only in jdbc.
May 20, 2012 04:24PM


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.