MySQL Forums :: Stored Procedures :: ROW_COUNT() results in NULL from stored procedure


Advanced Search

Re: ROW_COUNT() results in NULL from stored procedure
Posted by: Peter Brawley ()
Date: May 19, 2016 10:17AM

> 0 is always returned for the rows affected

First you said Null was returned. Which is not a documented possibility. Now you say it returns 0, which it does because the Drop statement erases such information. Move the row_count() call to before the Drop command.

Options: ReplyQuote


Subject Views Written By Posted
ROW_COUNT() results in NULL from stored procedure 2901 Frank Yingst 05/18/2016 06:32PM
Re: ROW_COUNT() results in NULL from stored procedure 363 Peter Brawley 05/18/2016 07:59PM
Re: ROW_COUNT() results in NULL from stored procedure 400 Frank Yingst 05/18/2016 10:06PM
Re: ROW_COUNT() results in NULL from stored procedure 380 Frank Yingst 05/18/2016 08:21PM
Re: ROW_COUNT() results in NULL from stored procedure 372 Peter Brawley 05/19/2016 10:17AM
Re: ROW_COUNT() results in NULL from stored procedure 328 Rick James 06/01/2016 11:49AM


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.