From: Ilia Alshanetsky Date: Sat, 9 Jul 2005 04:37:27 +0000 (+0000) Subject: cursor_closer for SQLite. X-Git-Tag: php-5.1.0b3~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d3a9f93111a53040585189d11e7f978e99379d32;p=php cursor_closer for SQLite. --- diff --git a/ext/pdo_sqlite/sqlite_statement.c b/ext/pdo_sqlite/sqlite_statement.c index 357c31cdb9..49cba16ecb 100644 --- a/ext/pdo_sqlite/sqlite_statement.c +++ b/ext/pdo_sqlite/sqlite_statement.c @@ -278,6 +278,11 @@ static int pdo_sqlite_stmt_col_meta(pdo_stmt_t *stmt, long colno, zval *return_v return SUCCESS; } +static int pdo_sqlite_stmt_cursor_closer(pdo_stmt_t *stmt TSRMLS_DC) +{ + return 1; +} + struct pdo_stmt_methods sqlite_stmt_methods = { pdo_sqlite_stmt_dtor, pdo_sqlite_stmt_execute, @@ -287,7 +292,9 @@ struct pdo_stmt_methods sqlite_stmt_methods = { pdo_sqlite_stmt_param_hook, NULL, /* set_attr */ NULL, /* get_attr */ - pdo_sqlite_stmt_col_meta + pdo_sqlite_stmt_col_meta, + NULL, /* next_rowset */ + pdo_sqlite_stmt_cursor_closer }; /*