MySQL Forums
Forum List  »  Newbie

Re: mysql_query returns 1 but mysql_errno is 0
Posted by: Calin Dorohoi
Date: September 13, 2014 04:48PM

Sorry, looks like that big number is actually -1 cast to 64-bit unsigned. I used the Windows Calc to do the conversion (it is buggy too).
So it seems that I have a reliable way to catch these exceptional cases (query() returns nozero, errno() 0 and affected_rows() (uint64)-1).

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.