X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqcopy.c;fp=src%2Fphp_pqcopy.c;h=c073798efde10630bdc7b6606a3457d15e02b413;hp=d4a042a97613cfa1ed426789db68dfe14b4a88fc;hb=b2a9a9cf919161a26c419906a2b73500bd533f96;hpb=a06db6d217fc8ba0fd9b8273a9e595477d59afcc diff --git a/src/php_pqcopy.c b/src/php_pqcopy.c index d4a042a..c073798 100644 --- a/src/php_pqcopy.c +++ b/src/php_pqcopy.c @@ -164,7 +164,7 @@ static PHP_METHOD(pqcopy, __construct) { php_pq_object_addref(conn_obj TSRMLS_CC); } - php_pq_clear_res(res); + php_pqres_clear(res); } smart_str_free(&cmd); @@ -232,7 +232,7 @@ static PHP_METHOD(pqcopy, end) { throw_exce(EX_RUNTIME TSRMLS_CC, "Failed to fetch COPY result (%s)", PHP_PQerrorMessage(obj->intern->conn->intern->conn)); } else { php_pqres_success(res TSRMLS_CC); - php_pq_clear_res(res); + php_pqres_clear(res); } } @@ -277,7 +277,7 @@ static PHP_METHOD(pqcopy, get) { throw_exce(EX_RUNTIME TSRMLS_CC, "Failed to fetch COPY result (%s)", PHP_PQerrorMessage(obj->intern->conn->intern->conn)); } else { php_pqres_success(res TSRMLS_CC); - php_pq_clear_res(res); + php_pqres_clear(res); RETVAL_FALSE; } break;