mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
don't free the cols until we know we have another rowset
This commit is contained in:
parent
858d827790
commit
f21084cb0b
1 changed files with 1 additions and 2 deletions
|
@ -489,8 +489,6 @@ static int odbc_stmt_next_rowset(pdo_stmt_t *stmt TSRMLS_DC)
|
||||||
SQLSMALLINT colcount;
|
SQLSMALLINT colcount;
|
||||||
pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data;
|
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
|
/* NOTE: can't guarantee that output or input/output parameters
|
||||||
* are set until this fella returns SQL_NO_DATA, according to
|
* are set until this fella returns SQL_NO_DATA, according to
|
||||||
* MSDN ODBC docs */
|
* MSDN ODBC docs */
|
||||||
|
@ -500,6 +498,7 @@ static int odbc_stmt_next_rowset(pdo_stmt_t *stmt TSRMLS_DC)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free_cols(stmt, S TSRMLS_CC);
|
||||||
/* how many columns do we have ? */
|
/* how many columns do we have ? */
|
||||||
SQLNumResultCols(S->stmt, &colcount);
|
SQLNumResultCols(S->stmt, &colcount);
|
||||||
stmt->column_count = (int)colcount;
|
stmt->column_count = (int)colcount;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue