]> granicus.if.org Git - php/commitdiff
remove error and hook up rowCount
authorWez Furlong <wez@php.net>
Tue, 18 Jan 2005 00:58:15 +0000 (00:58 +0000)
committerWez Furlong <wez@php.net>
Tue, 18 Jan 2005 00:58:15 +0000 (00:58 +0000)
ext/pdo/pdo_stmt.c

index ae8e4172aa37de7c4136205b9f71b530960d302f..67c11f47554d72e7a68b98edd4f5e83525bd204d 100755 (executable)
@@ -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);
 }
 /* }}} */