aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/db
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-05-25 06:52:03 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-05-25 06:52:03 +0000
commit2a3abfe286c314eee8924cd1cda909bf09085ce8 (patch)
tree0b6fd583988206643e6df48db41aab12957142a1 /phpBB/db
parent48312a65668ed6909e318336f776ae6738f1bd45 (diff)
downloadforums-2a3abfe286c314eee8924cd1cda909bf09085ce8.tar
forums-2a3abfe286c314eee8924cd1cda909bf09085ce8.tar.gz
forums-2a3abfe286c314eee8924cd1cda909bf09085ce8.tar.bz2
forums-2a3abfe286c314eee8924cd1cda909bf09085ce8.tar.xz
forums-2a3abfe286c314eee8924cd1cda909bf09085ce8.zip
Next ID didn't need the + 1
git-svn-id: file:///svn/phpbb/trunk@324 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/db')
-rw-r--r--phpBB/db/postgres7.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/db/postgres7.php b/phpBB/db/postgres7.php
index 1dbe22fd40..08f065f0e7 100644
--- a/phpBB/db/postgres7.php
+++ b/phpBB/db/postgres7.php
@@ -71,7 +71,7 @@ class sql_db
{
$make_connect = $this->connect_string;
}
-
+
$this->persistency = $persistency;
if($this->persistency)
{
@@ -340,13 +340,13 @@ class sql_db
{
if( eregi("^(INSERT{1}|^INSERT INTO{1})[[:space:]][\"]?([a-zA-Z0-9\_\-]+)[\"]?", $this->last_query_text[$query_id], $tablename))
{
- $query = "SELECT last_value
+ $query = "SELECT last_value
FROM ".$tablename[2]."_id_seq";
$temp_q_id = @pg_exec($this->db_connect_id, $query);
$temp_result = @pg_fetch_array($temp_q_id, 0, PGSQL_ASSOC);
if($temp_result)
{
- return $temp_result['last_value']+1;
+ return $temp_result['last_value'];
}
else
{