aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/db
diff options
context:
space:
mode:
authoruid29890 <uid29890@users.sourceforge.net>2001-07-05 00:47:03 +0000
committeruid29890 <uid29890@users.sourceforge.net>2001-07-05 00:47:03 +0000
commiteb5b9bfb0718eb4d960ff2555d6084263750d874 (patch)
treefedbf115d01c2de262dde1569d74c9ee582524eb /phpBB/db
parent14c6a0a4af67323b4243d507a69e054d35d6ea2a (diff)
downloadforums-eb5b9bfb0718eb4d960ff2555d6084263750d874.tar
forums-eb5b9bfb0718eb4d960ff2555d6084263750d874.tar.gz
forums-eb5b9bfb0718eb4d960ff2555d6084263750d874.tar.bz2
forums-eb5b9bfb0718eb4d960ff2555d6084263750d874.tar.xz
forums-eb5b9bfb0718eb4d960ff2555d6084263750d874.zip
Started on moderator control panel code. Main layout is started, no functionality yet
git-svn-id: file:///svn/phpbb/trunk@561 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/db')
-rw-r--r--phpBB/db/oracle.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/phpBB/db/oracle.php b/phpBB/db/oracle.php
index c26001efc7..42664ca45d 100644
--- a/phpBB/db/oracle.php
+++ b/phpBB/db/oracle.php
@@ -320,6 +320,40 @@ class sql_db
return false;
}
}
+ function sql_nextid($query_id = 0)
+ {
+ if(!$query_id)
+ {
+ $query_id = $this->query_result;
+ }
+ if($query_id && $this->last_query_text[$query_id] != "")
+ {
+ if( eregi("^(INSERT{1}|^INSERT INTO{1})[[:space:]][\"]?([a-zA-Z0-9\_\-]+)[\"]?", $this->last_query_text[$query_id], $tablename))
+ {
+ $query = "SELECT ".$tablename[2]."_id_seq.currval FROM DUAL";
+ $stmt = OCIParse($this->db_connect_id, $query);
+ OCIExecute($stmt);
+ $temp_result = @OCIFetchInto($stmt, $temp_result, OCI_ASSOC);
+ if($temp_result)
+ {
+ return $temp_result['CURRVAL'];
+ }
+ else
+ {
+ return false;
+ }
+ }
+ else
+ {
+ return false;
+ }
+ }
+ else
+ {
+ return false;
+ }
+ }
+
function sql_nextid()
{
if($this->db_connect_id)