From 8b35436cb19032e5fad293e5f3996b625abffe4e Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 18 Jan 2005 00:58:15 +0000 Subject: [PATCH] remove error and hook up rowCount --- ext/pdo/pdo_stmt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index ae8e4172aa..67c11f4755 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -675,8 +675,7 @@ static PHP_METHOD(PDOStatement, rowCount) { pdo_stmt_t *stmt = (pdo_stmt_t*)zend_object_store_get_object(getThis() TSRMLS_CC); - php_error_docref(NULL TSRMLS_CC, E_WARNING, "This statement is not a scrollable cursor and does not know the row count"); - RETURN_FALSE; + RETURN_LONG(stmt->row_count); } /* }}} */ -- 2.40.0