summaryrefslogtreecommitdiffstats
path: root/system/database/drivers
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-27 08:25:31 +0200
committeradmin <devnull@localhost>2006-10-27 08:25:31 +0200
commit3f643e678ef64ae29aa9720aef9b2a40496a5343 (patch)
treea3a143188208d544d47dbb5774213c69f0169118 /system/database/drivers
parentb84f7c03473f271ca53c80f9cb0f4b28755bb2cf (diff)
Diffstat (limited to 'system/database/drivers')
-rw-r--r--system/database/drivers/oci8/oci8_result.php16
1 files changed, 6 insertions, 10 deletions
diff --git a/system/database/drivers/oci8/oci8_result.php b/system/database/drivers/oci8/oci8_result.php
index 947a76109..efb2f7bed 100644
--- a/system/database/drivers/oci8/oci8_result.php
+++ b/system/database/drivers/oci8/oci8_result.php
@@ -38,18 +38,14 @@ class CI_DB_oci8_result extends CI_DB_result {
*/
function num_rows()
{
- // get the results, count them,
- // rerun query - otherwise we
- // won't have data after calling
- // num_rows()
- $this->result_array();
- $rowcount = count($this->result_array);
- @ociexecute($this->stmt_id);
- if ($this->curs_id)
+ if (function_exists('oci_num_rows'))
+ {
+ return @oci_num_rows($this->stmt_id);
+ }
+ else
{
- @ociexecute($this->curs_id);
+ return @ocirowcount($this->stmt_id)
}
- return $rowcount;
}
// --------------------------------------------------------------------