aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/db/postgres7.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/db/postgres7.php')
-rw-r--r--phpBB/db/postgres7.php50
1 files changed, 16 insertions, 34 deletions
diff --git a/phpBB/db/postgres7.php b/phpBB/db/postgres7.php
index 2e1bff674d..3b0eac607f 100644
--- a/phpBB/db/postgres7.php
+++ b/phpBB/db/postgres7.php
@@ -92,40 +92,6 @@ class sql_db
//
// Other base methods
//
- function sql_setdb($database)
- {
- if($this->db_connect_id)
- {
- if($this->query_result)
- {
- @pg_freeresult($this->query_result);
- unset($this->query_result);
- unset($this->row);
- }
- $result = @pg_close($this->db_connect_id);
- if($result)
- {
- $this->dbname = $database;
- $make_connect = $this->connect_string . "dbname=$database";
- if($this->persistency)
- {
- $this->db_connect_id = @pg_pconnect($make_connect);
- }
- else
- {
- $this->db_connect_id = @pg_connect($make_connect);
- }
- }
- }
- if($this->db_connect_id)
- {
- return $this->db_connect_id;
- }
- else
- {
- return false;
- }
- }
function sql_close()
{
if($this->db_connect_id)
@@ -192,6 +158,22 @@ class sql_db
return false;
}
}
+ function sql_affectedrows($query_id = 0)
+ {
+ if(!$query_id)
+ {
+ $query_id = $this->query_result;
+ }
+ if($query_id)
+ {
+ $result = @pg_cmdtuples($query_id);
+ return $result;
+ }
+ else
+ {
+ return false;
+ }
+ }
function sql_numfields($query_id = 0)
{
if(!$query_id)