From 1d734deba9b4ce7fc879e07d0ab136469bfaf41d Mon Sep 17 00:00:00 2001 From: Guillermo Pages Date: Mon, 30 Aug 2021 23:33:23 +0200 Subject: [PATCH] feat: make odbc resultset usable with count() --- src/Db/OdbcResultset.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Db/OdbcResultset.php b/src/Db/OdbcResultset.php index cdd834b..5530321 100644 --- a/src/Db/OdbcResultset.php +++ b/src/Db/OdbcResultset.php @@ -1,7 +1,7 @@ num_rows; } + public function count() { + return $this->get_num_rows(); + } + public function is_error() { return ($this->error ? true : false);