Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Backport a fix for oci8_result::num_rows()

  • Loading branch information...
commit da4f9e1291c6b4d9beb682b635a811de897fbacf 1 parent 894b743
@narfbg narfbg authored
Showing with 4 additions and 6 deletions.
  1. +4 −6 system/database/drivers/oci8/oci8_result.php
View
10 system/database/drivers/oci8/oci8_result.php
@@ -26,9 +26,9 @@
*/
class CI_DB_oci8_result extends CI_DB_result {
- var $stmt_id;
- var $curs_id;
- var $limit_used;
+ public $stmt_id;
+ public $curs_id;
+ public $limit_used;
/**
* Number of rows in the result set.
@@ -36,8 +36,6 @@ class CI_DB_oci8_result extends CI_DB_result {
* Oracle doesn't have a graceful way to retun the number of rows
* so we have to use what amounts to a hack.
*
- *
- * @access public
* @return integer
*/
public function num_rows()
@@ -53,7 +51,7 @@ public function num_rows()
}
}
- return $rowcount;
+ return $this->num_rows;
}
// --------------------------------------------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.