Make cursor closer work with emulation as well.

This commit is contained in:
Ilia Alshanetsky 2005-07-09 05:04:43 +00:00
parent f21084cb0b
commit 4c18dfc852

View File

@ -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;
}