diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-08-23 15:06:01 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-08-23 15:06:01 +0000 |
commit | e5753a137130fa18bde2f02b841225ef082ece89 (patch) | |
tree | af1f2efdd13e2bb98c519d7f145acec3e956f8b6 | |
parent | 415bdfb68b346c65a2f2f2af9fd24703df3b4f73 (diff) | |
download | forums-e5753a137130fa18bde2f02b841225ef082ece89.tar forums-e5753a137130fa18bde2f02b841225ef082ece89.tar.gz forums-e5753a137130fa18bde2f02b841225ef082ece89.tar.bz2 forums-e5753a137130fa18bde2f02b841225ef082ece89.tar.xz forums-e5753a137130fa18bde2f02b841225ef082ece89.zip |
Fixed nextid
git-svn-id: file:///svn/phpbb/trunk@920 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/db/odbc.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/db/odbc.php b/phpBB/db/odbc.php index 6ac3d376d7..f47b67be90 100644 --- a/phpBB/db/odbc.php +++ b/phpBB/db/odbc.php @@ -203,6 +203,11 @@ class sql_db } else { + if(eregi("^(INSERT|UPDATE) ", $query)) + { + $query = preg_replace("/\\\'/s", "''", $query); + } + $this->query_result = odbc_exec($this->db_connect_id, $query); if($this->query_result) @@ -425,7 +430,7 @@ class sql_db } if($query_id) { - return $this->next_id[$query_id]+1; + return $this->next_id[$query_id]; } else { |