summaryrefslogtreecommitdiff
path: root/ext/pdo_dblib/dblib_stmt.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-10-12 15:03:03 (GMT)
committerIlia Alshanetsky <iliaa@php.net>2005-10-12 15:03:03 (GMT)
commit49678f0908f8b7cdfca72f3e1bfd6b7af769186f (patch)
treeefc27ad05f1a81768adb7d5342cdec528d5932ce /ext/pdo_dblib/dblib_stmt.c
parent25a82d8a5cebfe169c3eb9e6e7a8ead976bd208c (diff)
downloadphp-49678f0908f8b7cdfca72f3e1bfd6b7af769186f.tar.gz
MFH: Fixed bug #34758 (PDO_DBLIB did not implement rowCount()).
Diffstat (limited to 'ext/pdo_dblib/dblib_stmt.c')
-rw-r--r--ext/pdo_dblib/dblib_stmt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pdo_dblib/dblib_stmt.c b/ext/pdo_dblib/dblib_stmt.c
index a6e8b49..f965b5d 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;
}