Bug #69068 | Inaccurate documentation for 22.8.6.15 mysql_error & 22.8.10.9 mysql_stmt_error | ||
---|---|---|---|
Submitted: | 25 Apr 2013 12:34 | Modified: | 29 Apr 2013 13:35 |
Reporter: | Douglas Boffey | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S5 (Performance) |
Version: | 5.6.10 | OS: | Any |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
[25 Apr 2013 12:34]
Douglas Boffey
[25 Apr 2013 13:28]
Paul DuBois
Both functions return char*. Why does the equivalence hold in one case but not the other?
[27 Apr 2013 14:01]
Douglas Boffey
The problem is that the conditions, “*mysql_error(&mysql)” and “mysql_error(&mysql)[0]” are two different ways of saying the same thing in C, whereas the accompanying text suggests (22.8.6.15), or implies (22.8.10.9) that the equivalence is due to how the functions work.
[29 Apr 2013 13:35]
Paul DuBois
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products. I'll remove "this means" and "equivalence" to simply state that either test can be used. "Either of these two tests can be used to check for an error"