MySQL Forums
Forum List  »  Stored Procedures

Re: Stored procedure/function appears non-deterministic (and I'm going crazy)
Posted by: Jay Pipes
Date: November 16, 2005 10:31AM

Martin Aspeli wrote:
> It looks to me like IF() may not be thread-safe or
> something along those lines, which certainly
> sounds strange. Has anyone heard of any problems
> with this before?

I doubt that this is the reason for the issue. The IF() function is not thread-specific but rather operates on local values returned from the current resultset defined in the joins. So, what is more likely happening is an isolation level issue, where you are having implicit commits occurring. Could you post the exact *test case* you're using to reproduce the behaviour, now that we have the schema and function definition? Thanks, Martin!

Jay Pipes
Community Relations Manager, North America, MySQL Inc.

Got Cluster? http://www.mysql.com/cluster
Personal: http://jpipes.com

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Stored procedure/function appears non-deterministic (and I'm going crazy)
2222
November 16, 2005 10:31AM


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.