MySQL Forums
Forum List  »  Stored Procedures

Re: how to use parameters in a procedure ?
Posted by: Per-Erik Martin
Date: November 14, 2005 08:50AM

You get the error if the selects returns no data (and thus it can't set the variable).

So your select doesn't return any data, probably because you use @ta_config - it should be just ta_config.

And, you must not declare local variables with the same names as the OUT parameters, this will make it impossible to set the OUT parameters.
(You will set the local variable instead - but as the code is written, you don't even try to set them.)

pem, Senior Software Dev., MySQL AB

Options: ReplyQuote


Subject
Views
Written By
Posted
2312
November 14, 2005 05:54AM
Re: how to use parameters in a procedure ?
1583
November 14, 2005 08:50AM
1519
November 14, 2005 09:26AM


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.