Skip to content

Commit

Permalink
Fixed bug #40822 (pdo_mysql does not return rowCount() on select).
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Alshanetsky committed Apr 8, 2007
1 parent 8591b20 commit 65afdf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion NEWS
@@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion ext/pdo_mysql/mysql_statement.c
Expand Up @@ -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);
Expand Down

0 comments on commit 65afdf0

Please sign in to comment.