diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2007-04-08 15:26:21 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2007-04-08 15:26:21 +0000 |
commit | 65afdf097c31f0a8ad40b47868550da7a53f80a3 (patch) | |
tree | 7d90ebde9b07f2069213c2c0d5281b57d69906d4 | |
parent | 8591b20d4ee289d99cb8caba41e6a1beff7a237d (diff) | |
download | php-git-65afdf097c31f0a8ad40b47868550da7a53f80a3.tar.gz |
Fixed bug #40822 (pdo_mysql does not return rowCount() on select).
-rw-r--r-- | NEWS | 3 | ||||
-rwxr-xr-x | ext/pdo_mysql/mysql_statement.c | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -1,6 +1,6 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| -?? ??? 2007, PHP 5.2.2 +05 Apr 2007, PHP 5.2.2RC1 - Improved bundled GD . Sync to 2.0.35 . colors allocated henceforth from the resulting image overwrite the palette @@ -66,6 +66,7 @@ PHP NEWS - Fixed bug #40836 (Segfault in ext/dom). (Rob) - Fixed bug #40833 (Crash when using unset() on an ArrayAccess object retrieved via __get()). (Dmitry) +- Fixed bug #40822 (pdo_mysql does not return rowCount() on select). (Ilia) - Fixed bug #40815 (using strings like "class::func" and static methods in set_exception_handler() might result in crash). (Tony) - Fixed bug #40809 (Poor performance of ".="). (Dmitry) diff --git a/ext/pdo_mysql/mysql_statement.c b/ext/pdo_mysql/mysql_statement.c index 830eb950a6..aae7019dc5 100755 --- a/ext/pdo_mysql/mysql_statement.c +++ b/ext/pdo_mysql/mysql_statement.c @@ -231,7 +231,7 @@ static int pdo_mysql_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC) return 0; } - stmt->row_count = 0; + stmt->row_count = mysql_num_rows(S->result); if (!stmt->executed) { stmt->column_count = (int) mysql_num_fields(S->result); |