mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Added cursor closer handler.
Fixed memory leak.
This commit is contained in:
parent
df60983b75
commit
858d827790
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue