1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 01:48:26 +02:00

ext/pdo_mysql/tests/pdo_mysql_attr_oracle_nulls.phpt fails in trunk as well while building with libmysql

This commit is contained in:
Xinchen Hui
2014-05-08 18:30:21 +08:00
parent 7de633c549
commit 29b3529292
2 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -1516,9 +1516,9 @@ static PHP_METHOD(PDOStatement, fetchAll)
while (do_fetch(stmt, 1, &data, how | flags, PDO_FETCH_ORI_NEXT, 0, return_all TSRMLS_CC));
} else {
array_init(return_value);
do {
while (do_fetch(stmt, 1, &data, how | flags, PDO_FETCH_ORI_NEXT, 0, 0 TSRMLS_CC)) {
add_next_index_zval(return_value, &data);
} while (do_fetch(stmt, 1, &data, how | flags, PDO_FETCH_ORI_NEXT, 0, 0 TSRMLS_CC));
}
}
}
+1 -2
View File
@@ -404,8 +404,7 @@ static int pdo_mysql_stmt_next_rowset(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
/* ensure that we free any previous unfetched results */
#ifndef PDO_USE_MYSQLND
if (S->stmt) {
//???? This line is very suspicious
//stmt->column_count = (int)mysql_num_fields(S->result);
stmt->column_count = (int)mysql_num_fields(S->result);
mysql_stmt_free_result(S->stmt);
}
#endif