diff options
author | Pierrick Charron <pierrick@php.net> | 2010-04-27 05:56:56 +0000 |
---|---|---|
committer | Pierrick Charron <pierrick@php.net> | 2010-04-27 05:56:56 +0000 |
commit | 1892d92d68ec62122816a83b019c0d96fd79005f (patch) | |
tree | d2d824d74b1a65c52a66c826028e947ba8a4be10 /ext/pdo | |
parent | 6f5f6d2bcad3ea41dcdc4a020d4f58beb4870a76 (diff) | |
download | php-git-1892d92d68ec62122816a83b019c0d96fd79005f.tar.gz |
Fixed bug #51670 getColumnMeta causes segfault when re-executing query after calling nextRowset
Diffstat (limited to 'ext/pdo')
-rwxr-xr-x | ext/pdo/pdo_stmt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 49199e7f73..1213722bca 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -2080,6 +2080,8 @@ static int pdo_stmt_do_next_rowset(pdo_stmt_t *stmt TSRMLS_DC) } if (!stmt->methods->next_rowset(stmt TSRMLS_CC)) { + /* Set the executed flag to 0 to reallocate columns on next execute */ + stmt->executed = 0; return 0; } |