]> granicus.if.org Git - php/commitdiff
ext/pdo_mysql/tests/pdo_mysql_attr_oracle_nulls.phpt fails in trunk as well while...
authorXinchen Hui <laruence@php.net>
Thu, 8 May 2014 10:34:56 +0000 (18:34 +0800)
committerXinchen Hui <laruence@php.net>
Thu, 8 May 2014 10:34:56 +0000 (18:34 +0800)
ext/pdo_mysql/mysql_statement.c

index ac01102bba0361336d08e4a87e882424a7a6bcc5..df3a3955c89642c6ccbcc2ca2c267a17a810ac8c 100644 (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