summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-10-12 15:03:03 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-10-12 15:03:03 +0000
commit49678f0908f8b7cdfca72f3e1bfd6b7af769186f (patch)
treeefc27ad05f1a81768adb7d5342cdec528d5932ce
parent25a82d8a5cebfe169c3eb9e6e7a8ead976bd208c (diff)
downloadphp-git-49678f0908f8b7cdfca72f3e1bfd6b7af769186f.tar.gz
MFH: Fixed bug #34758 (PDO_DBLIB did not implement rowCount()).
-rw-r--r--NEWS1
-rw-r--r--ext/pdo_dblib/dblib_stmt.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 2ff53ff137..71c128ac4a 100644
--- 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
diff --git a/ext/pdo_dblib/dblib_stmt.c b/ext/pdo_dblib/dblib_stmt.c
index a6e8b492d6..f965b5dd59 100644
--- a/ext/pdo_dblib/dblib_stmt.c
+++ b/ext/pdo_dblib/dblib_stmt.c
@@ -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;
}