From 862247693f6fd026e00ccc388807c41ac561c1b5 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 19 May 2004 20:44:28 +0000 Subject: [PATCH] Row count cannot be calculated in MySQL without buffering the query. --- ext/pdo_mysql/mysql_statement.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ext/pdo_mysql/mysql_statement.c b/ext/pdo_mysql/mysql_statement.c index f8e1b3d097..842e9b27a3 100755 --- a/ext/pdo_mysql/mysql_statement.c +++ b/ext/pdo_mysql/mysql_statement.c @@ -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; } -- 2.50.1