MySQL Forums
Forum List  »  Stored Procedures

Re: Development of touching tables in functions
Posted by: Andrew Gilfrin
Date: April 07, 2005 04:57AM

This is something that has been a problem for functions from day one in MySQL Stored Functions. Also from day one AB have known this is a problem and have planned to fix the problem as soon as possible.

I imagine the problem is the way the system works internally and the possiblity that the system could go into an infinite loop when being called in an SQL statement. In Oracle for example you sometimes have to include a purity level in functions to tell the compiler that they won't amend data so they can be safely used in SQL.

I think this will be treated with enough urgency by AB that it will be included sooner rather than later.

It's also a problem in Triggers where this sort of thing is vital (IMO) for the uptake of triggers.

Andrew Gilfrin
------------------
http://gilfster.blogspot.com
My MySQL related Blog

http://www.mysqldevelopment.com
MySQL Stored Procedure,Trigger, View.... (Just about most things these days) Information

Options: ReplyQuote




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.