Added cursor closer handler.

Fixed memory leak.
This commit is contained in:
Ilia Alshanetsky 2005-07-09 04:54:04 +00:00
parent df60983b75
commit 858d827790
2 changed files with 9 additions and 1 deletions

View file

@ -498,6 +498,11 @@ static int pgsql_stmt_get_column_meta(pdo_stmt_t *stmt, long colno, zval *return
return 1;
}
static int pdo_pgsql_stmt_cursor_closer(pdo_stmt_t *stmt TSRMLS_DC)
{
return 1;
}
struct pdo_stmt_methods pgsql_stmt_methods = {
pgsql_stmt_dtor,
pgsql_stmt_execute,
@ -508,7 +513,8 @@ struct pdo_stmt_methods pgsql_stmt_methods = {
NULL, /* set_attr */
NULL, /* get_attr */
pgsql_stmt_get_column_meta,
NULL /* next_rowset */
NULL, /* next_rowset */
pdo_pgsql_stmt_cursor_closer
};
/*