From 191e52086fe01e84fa3e9948f0ba70f4d08d83a8 Mon Sep 17 00:00:00 2001 From: James Atkinson Date: Thu, 30 Aug 2001 22:20:23 +0000 Subject: Re-added GPL disclaimers git-svn-id: file:///svn/phpbb/trunk@943 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/db/oracle.php | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'phpBB/db/oracle.php') diff --git a/phpBB/db/oracle.php b/phpBB/db/oracle.php index 8879567513..5c1c85fb84 100644 --- a/phpBB/db/oracle.php +++ b/phpBB/db/oracle.php @@ -1,6 +1,6 @@ password = $sqlpassword; $this->server = $sqlserver; $this->dbname = $database; - + if($this->persistency) { $this->db_connect_id = @OCIPLogon($this->user, $this->password, $this->server); - } + } else { $this->db_connect_id = @OCINLogon($this->user, $this->password, $this->server); @@ -99,7 +108,7 @@ class sql_db $num_rows = $limits[2]; } } - + if(eregi("^(INSERT|UPDATE) ", $query)) { $query = preg_replace("/\\\'/s", "''", $query); @@ -246,10 +255,10 @@ class sql_db { $rows = @OCIFetchStatement($query_id, $results); @OCIExecute($query_id); - for($i = 0; $i <= $rows; $i++) + for($i = 0; $i <= $rows; $i++) { @OCIFetchInto($query_id, $tmp_result, OCI_ASSOC+OCI_RETURN_NULLS); - + for($j = 0; $j < count($tmp_result); $j++) { list($key, $val) = each($tmp_result); @@ -351,7 +360,7 @@ class sql_db return false; } } - + function sql_nextid() { if($this->db_connect_id) -- cgit v1.2.1