MySQL Forums
Forum List  »  Newbie

Re: mysql-store-result() man page, test for error
Posted by: Doru Georgescu
Date: May 07, 2012 04:09AM

Yes, it seems like a decent return value as long as you don't read the other manual pages, like for example http://dev.mysql.com/doc/refman/5.0/en/null-mysql-store-result.html and the mysql_field_count() manual page. mysql_field_count() is checked only after mysql_query() returns zero (ok) to check for the possibility that mysql_store_result() returned zero as a result of an error, and not because the query was not supposed to return anything, like for example an update or delete query. Probably an ok mysql_query() guarantees that mysql_field_count() is well defined, but the manual does not care to explain.

Options: ReplyQuote


Subject
Written By
Posted
Re: mysql-store-result() man page, test for error
May 07, 2012 04:09AM


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.