Skip to content

MySQL_GetConnectionErrno

imshooter edited this page Oct 24, 2026 · 1 revision

The error of the last time the handle failed to connect.

native MySQL_GetConnectionErrno(MySQL:handle);

Parameters

Parameter Description
MySQL:handle Handle to check.

Returns

  • The error number of MySQL.
  • 0 when it did not fail since it last connected.
  • -1 when the handle does not exist.

Remarks

The error is the one of the last attempt to connect, and stays 0 once a connection is made. The error of a query is read with MySQL_GetErrno.

Related

Clone this wiki locally