MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | OPTIONAL |
| 2 | SYNOPSIS |
| 3 | int pg_pending () |
| 4 | int pg_pending (object obj) |
| 5 | |
| 6 | DESCRIPTION |
| 7 | Return the number of pending queries for the connection on the given |
| 8 | object <obj> (default is the current object). The object has no |
| 9 | database connection, return -1. |
| 10 | |
| 11 | The function is available only if the driver is compiled with |
| 12 | PostgreSQL support. In that case, __PGSQL__ is defined. |
| 13 | |
| 14 | The efun triggers a privilege violation ("pgsql", "pg_pending"). |
| 15 | |
| 16 | HISTORY |
| 17 | Added in 3.3.445. |
| 18 | LDMud 3.3.640 added the privilege violation. |
| 19 | |
| 20 | SEE ALSO |
| 21 | pgsql(C), pg_connect(E), pg_conv_string(E), pg_query(E), pg_close(E), |
| 22 | privilege_violation(M) |