]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #34758 (PDO_DBLIB did not implement rowCount()).
authorIlia Alshanetsky <iliaa@php.net>
Wed, 12 Oct 2005 15:03:03 +0000 (15:03 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 12 Oct 2005 15:03:03 +0000 (15:03 +0000)
NEWS
ext/pdo_dblib/dblib_stmt.c

diff --git a/NEWS b/NEWS
index 2ff53ff137e9b959a524bc2b59a00736bdafcb6e..71c128ac4ae1a3e14d84a99e1f56bdecb111a6d9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -62,6 +62,7 @@ PHP                                                                        NEWS
 - Fixed bug #34785 (subclassing of mysqli_stmt does not work). (Georg)
 - Fixed bug #34777 (Crash in dblib when fetching non-existent error info). (Ilia)
 - Fixed bug #34771 (strtotime() fails with 1-12am/pm). (Derick)
+- Fixed bug #34758 (PDO_DBLIB did not implement rowCount()). (Ilia)
 - Fixed bug #34757 (iconv_substr() gives "Unknown error" when offset > string 
   length). (Tony)
 - Fixed bug #34742 (ftp wrapper failures caused from segmented command 
index a6e8b492d67a0eddc3065741c7cf83e7cc05c780..f965b5dd592ef0f12a7c8ffd6bdb4ad18cff76df 100644 (file)
@@ -96,6 +96,8 @@ static int pdo_dblib_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
 
        ret = dbnextrow(H->link);
 
+       stmt->row_count = DBCOUNT(H->link);
+
     if (ret == NO_MORE_ROWS) {
        return 1;
     }