Bug #26426 | Server doesn't send sql state on error during connection open | ||
---|---|---|---|
Submitted: | 15 Feb 2007 21:17 | Modified: | 5 Mar 2007 20:50 |
Reporter: | Andrey Hristov | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 5.1.16, could be others | OS: | Any (All) |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
[15 Feb 2007 21:17]
Andrey Hristov
[19 Feb 2007 10:42]
Sveta Smirnova
Thank you for the report. Verified as described.
[27 Feb 2007 21:41]
Konstantin Osipov
Stefan, please consider documenting this: we do not send sqlstate because if handshake fails, we don't know whether the client supports the protocol version that has SQLSTATEs. If we decide to change this, we will partially break old clients. Thanks,
[5 Mar 2007 20:50]
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. Information added to the mysql_sqlstate() manual section: If you call mysql_sqlstate() after mysql_real_connect() fails, mysql_sqlstate() might not return a useful value. For example, this happens if a host is blocked by the server and the connection is closed without any SQLSTATE value being sent to the client.