aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/db/postgres7.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-03-20 15:19:20 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-03-20 15:19:20 +0000
commit1fbbc382ccb6f0ffc081c7c1c8704bda6d643fb9 (patch)
tree55f56783ce5e1ad88d831091a67b2dadac52a17f /phpBB/db/postgres7.php
parentbcf7d2b674297f96917095bc2b2b80b0a0571eac (diff)
downloadforums-1fbbc382ccb6f0ffc081c7c1c8704bda6d643fb9.tar
forums-1fbbc382ccb6f0ffc081c7c1c8704bda6d643fb9.tar.gz
forums-1fbbc382ccb6f0ffc081c7c1c8704bda6d643fb9.tar.bz2
forums-1fbbc382ccb6f0ffc081c7c1c8704bda6d643fb9.tar.xz
forums-1fbbc382ccb6f0ffc081c7c1c8704bda6d643fb9.zip
Removed set_db and added affectedrows
git-svn-id: file:///svn/phpbb/trunk@109 89ea8834-ac86-4346-8a33-228a782c2dd0
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)