PGresult *res = php_pq_exec(obj->intern->conn->intern->conn, "ROLLBACK");
if (res) {
- php_pq_clear_res(res);
+ php_pqres_clear(res);
}
}
php_pq_object_delref(obj->intern->conn);
if (res) {
php_pqres_success(res);
- php_pq_clear_res(res);
+ php_pqres_clear(res);
}
}
if (res) {
php_pqres_success(res);
- php_pq_clear_res(res);
+ php_pqres_clear(res);
}
}
if (res) {
php_pqres_success(res);
- php_pq_clear_res(res);
+ php_pqres_clear(res);
}
}
throw_exce(EX_RUNTIME, "Failed to create %s (%s)", smart_str_v(&cmd), PHP_PQerrorMessage(obj->intern->conn->intern->conn));
} else {
php_pqres_success(res);
- php_pq_clear_res(res);
+ php_pqres_clear(res);
}
smart_str_free(&cmd);
obj->intern->open = 0;
}
}
- php_pq_clear_res(res);
+ php_pqres_clear(res);
}
smart_str_free(&cmd);
obj->intern->open = 0;
}
}
- php_pq_clear_res(res);
+ php_pqres_clear(res);
}
smart_str_free(&cmd);
RETVAL_STRING(PQgetvalue(res, 0, 0));
}
- php_pq_clear_res(res);
+ php_pqres_clear(res);
}
php_pqconn_notify_listeners(obj->intern->conn);
throw_exce(EX_RUNTIME, "Failed to import transaction snapshot (%s)", PHP_PQerrorMessage(obj->intern->conn->intern->conn));
} else {
php_pqres_success(res);
- php_pq_clear_res(res);
+ php_pqres_clear(res);
}
smart_str_free(&cmd);
}
static zend_function_entry php_pqtxn_methods[] = {
- PHP_ME(pqtxn, __construct, ai_pqtxn_construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR)
+ PHP_ME(pqtxn, __construct, ai_pqtxn_construct, ZEND_ACC_PUBLIC)
PHP_ME(pqtxn, commit, ai_pqtxn_commit, ZEND_ACC_PUBLIC)
PHP_ME(pqtxn, rollback, ai_pqtxn_rollback, ZEND_ACC_PUBLIC)
PHP_ME(pqtxn, commitAsync, ai_pqtxn_commit_async, ZEND_ACC_PUBLIC)
php_pqtxn_object_handlers.read_property = php_pq_object_read_prop;
php_pqtxn_object_handlers.write_property = php_pq_object_write_prop;
php_pqtxn_object_handlers.clone_obj = NULL;
- php_pqtxn_object_handlers.get_property_ptr_ptr = NULL;
+ php_pqtxn_object_handlers.get_property_ptr_ptr = php_pq_object_get_prop_ptr_null;
php_pqtxn_object_handlers.get_gc = php_pq_object_get_gc;
php_pqtxn_object_handlers.get_properties = php_pq_object_properties;
php_pqtxn_object_handlers.get_debug_info = php_pq_object_debug_info;