Skip to content

mysql_error

imshooter edited this page Dec 1, 2026 · 2 revisions

The message of the error mysql_errno gives.

native bool:mysql_error(
    destination[],
    max_len = sizeof (destination),
    MySQL:handle = MYSQL_DEFAULT_HANDLE
);

With open.mp names, from the same include:

native bool:MySQL_GetError(
    destination[],
    max_len = sizeof (destination),
    MySQL:handle = MYSQL_DEFAULT_HANDLE
);

Parameters

Parameter Description
destination[] Array for the message.
max_len = sizeof (destination) Size of the array.
MySQL:handle = MYSQL_DEFAULT_HANDLE The handle.

Returns

  • true when it was written.
  • false when the handle does not exist.

Home

Guides

Reference

Functions

Connections
Queries
Cache
JSON cells
ORM
Queries built in pieces
Prepared statements
Batches
Transactions
Passwords
Callbacks

Clone this wiki locally