Skip to content

MySQL_GetPendingCount

imshooter edited this page Oct 24, 2026 · 1 revision

How many queries of a handle wait or run.

native MySQL_GetPendingCount(MySQL:handle);

Parameters

Parameter Description
MySQL:handle Handle to check.

Returns

  • The number of queries.
  • -1 when the handle does not exist.

Remarks

It counts the queries, statements and batches waiting in the queues of the handle and those running on its connections. max_pending refuses a query when it reaches that number. See Errors.

Related

Clone this wiki locally