summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/mssql
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-07-05 14:11:20 +0200
committerAndrey Andreev <narf@bofh.bg>2012-07-05 14:11:20 +0200
commitc7db6bb9b64c8322af4d727bcb71122cd7f09dbf (patch)
treece659c8b3051ce076b20eb7d4eb9026b9d3d582e /system/database/drivers/mssql
parent34d67990c2987d662919f06bdf18d5cc522c2560 (diff)
Clean-up the separate drivers' DB result classes from no longer needed methods
Diffstat (limited to 'system/database/drivers/mssql')
-rw-r--r--system/database/drivers/mssql/mssql_result.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/database/drivers/mssql/mssql_result.php b/system/database/drivers/mssql/mssql_result.php
index 5929306af..62996aac1 100644
--- a/system/database/drivers/mssql/mssql_result.php
+++ b/system/database/drivers/mssql/mssql_result.php
@@ -33,6 +33,7 @@
* @category Database
* @author EllisLab Dev Team
* @link http://codeigniter.com/user_guide/database/
+ * @since 1.3
*/
class CI_DB_mssql_result extends CI_DB_result {
@@ -43,7 +44,9 @@ class CI_DB_mssql_result extends CI_DB_result {
*/
public function num_rows()
{
- return @mssql_num_rows($this->result_id);
+ return is_int($this->num_rows)
+ ? $this->num_rows
+ : $this->num_rows = @mssql_num_rows($this->result_id);
}
// --------------------------------------------------------------------