X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqstm.c;h=4eec3b8795fb965f69fe3de915c6c5503f4a2fca;hp=fbab27e81037f9fe4d0f344b1669493da6086fb3;hb=c753ebfed3a4b21409cfa46212fd2c55227c809f;hpb=8d0dbf7286d9132be18de64625837afa55409f84;ds=sidebyside diff --git a/src/php_pqstm.c b/src/php_pqstm.c index fbab27e..4eec3b8 100644 --- a/src/php_pqstm.c +++ b/src/php_pqstm.c @@ -52,7 +52,7 @@ static void php_pqstm_deallocate(php_pqstm_object_t *obj, zend_bool async, zend_ PGresult *res; if ((res = php_pq_exec(obj->intern->conn->intern->conn, smart_str_v(&cmd)))) { - php_pq_clear_res(res); + php_pqres_clear(res); } else if (!silent) { throw_exce(EX_RUNTIME, "Failed to deallocate statement (%s)", PHP_PQerrorMessage(obj->intern->conn->intern->conn)); } @@ -340,7 +340,7 @@ static PHP_METHOD(pqstm, desc) { add_next_index_long(return_value, PQparamtype(res, p)); } } - php_pq_clear_res(res); + php_pqres_clear(res); php_pqconn_notify_listeners(obj->intern->conn); } }