]> granicus.if.org Git - php/commitdiff
Row count cannot be calculated in MySQL without buffering the query.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 19 May 2004 20:44:28 +0000 (20:44 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 19 May 2004 20:44:28 +0000 (20:44 +0000)
ext/pdo_mysql/mysql_statement.c

index f8e1b3d097ea211aa88eeaa94e36c424b196355d..842e9b27a362265addd37915a904a750b43a387b 100755 (executable)
@@ -76,7 +76,6 @@ static int mysql_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
                stmt->column_count = (int) mysql_num_fields(S->result);
                S->cols = ecalloc(stmt->column_count, sizeof(pdo_mysql_column));
        }
-       stmt->row_count = (long)mysql_num_rows(S->result);
        return 1;
 }