diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-07-09 05:04:43 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-07-09 05:04:43 +0000 |
commit | 4c18dfc8529cca627788b06aa67bf86f9326ea25 (patch) | |
tree | 63652ccfa16cdf747a597efb86f07dcc245c1b82 /ext/pdo_mysql/mysql_statement.c | |
parent | f21084cb0beebe68e782ab6ef752df015a700413 (diff) | |
download | php-git-4c18dfc8529cca627788b06aa67bf86f9326ea25.tar.gz |
Make cursor closer work with emulation as well.
Diffstat (limited to 'ext/pdo_mysql/mysql_statement.c')
-rwxr-xr-x | ext/pdo_mysql/mysql_statement.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pdo_mysql/mysql_statement.c b/ext/pdo_mysql/mysql_statement.c index 930afae441..d7f4161380 100755 --- a/ext/pdo_mysql/mysql_statement.c +++ b/ext/pdo_mysql/mysql_statement.c @@ -486,6 +486,8 @@ static int pdo_mysql_stmt_cursor_closer(pdo_stmt_t *stmt TSRMLS_DC) #if HAVE_MYSQL_STMT_PREPARE return mysql_stmt_free_result(S->stmt); #endif + mysql_free_result(S->result); + S->result = NULL; return 1; } |