diff options
author | Wez Furlong <wez@php.net> | 2005-07-09 05:01:14 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2005-07-09 05:01:14 +0000 |
commit | f21084cb0beebe68e782ab6ef752df015a700413 (patch) | |
tree | 9d38e193f19befaeaf6bb98eb0beed5b1210a128 | |
parent | 858d8277903a9cf6582a83a6ff4ebd16b51d4930 (diff) | |
download | php-git-f21084cb0beebe68e782ab6ef752df015a700413.tar.gz |
don't free the cols until we know we have another rowset
-rwxr-xr-x | ext/pdo_odbc/odbc_stmt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/pdo_odbc/odbc_stmt.c b/ext/pdo_odbc/odbc_stmt.c index 76a82c781a..0c6f77f459 100755 --- a/ext/pdo_odbc/odbc_stmt.c +++ b/ext/pdo_odbc/odbc_stmt.c @@ -489,8 +489,6 @@ static int odbc_stmt_next_rowset(pdo_stmt_t *stmt TSRMLS_DC) SQLSMALLINT colcount; pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; - free_cols(stmt, S TSRMLS_CC); - /* NOTE: can't guarantee that output or input/output parameters * are set until this fella returns SQL_NO_DATA, according to * MSDN ODBC docs */ @@ -500,6 +498,7 @@ static int odbc_stmt_next_rowset(pdo_stmt_t *stmt TSRMLS_DC) return 0; } + free_cols(stmt, S TSRMLS_CC); /* how many columns do we have ? */ SQLNumResultCols(S->stmt, &colcount); stmt->column_count = (int)colcount; |