mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 06:51:08 +02:00
Fixed nextid
git-svn-id: file:///svn/phpbb/trunk@920 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -203,6 +203,11 @@ class sql_db
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if(eregi("^(INSERT|UPDATE) ", $query))
|
||||||
|
{
|
||||||
|
$query = preg_replace("/\\\'/s", "''", $query);
|
||||||
|
}
|
||||||
|
|
||||||
$this->query_result = odbc_exec($this->db_connect_id, $query);
|
$this->query_result = odbc_exec($this->db_connect_id, $query);
|
||||||
|
|
||||||
if($this->query_result)
|
if($this->query_result)
|
||||||
@@ -425,7 +430,7 @@ class sql_db
|
|||||||
}
|
}
|
||||||
if($query_id)
|
if($query_id)
|
||||||
{
|
{
|
||||||
return $this->next_id[$query_id]+1;
|
return $this->next_id[$query_id];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user