mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-20 10:18:54 +00:00
Fixed nextid
git-svn-id: file:///svn/phpbb/trunk@920 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
415bdfb68b
commit
e5753a1371
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue