mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
git-svn-id: file:///svn/phpbb/trunk@7769 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
27d83c7e2f
commit
827ecf9f30
2 changed files with 5 additions and 2 deletions
|
@ -281,6 +281,7 @@ p a {
|
|||
<li>[Fix] Overcome Oracle's inability to handle IN() clauses with over one thousand elements (Bug #12449)</li>
|
||||
<li>[Fix] Simulate Firebird's affected rows mechanism for older versions of PHP</li>
|
||||
<li>[Fix] Custom BBCodes properly handle lowercasing of parameterized tags (Bug #12377)</li>
|
||||
<li>[Fix] Update the forum_id sequence for PostgreSQL during conversion (Bug #11927)</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
|
|
@ -92,8 +92,6 @@ function phpbb_insert_forums()
|
|||
$db->sql_query('SET IDENTITY_INSERT ' . FORUMS_TABLE . ' ON');
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$cats_added = array();
|
||||
while ($row = $src_db->sql_fetchrow($result))
|
||||
|
@ -281,6 +279,10 @@ function phpbb_insert_forums()
|
|||
|
||||
switch ($db->sql_layer)
|
||||
{
|
||||
case 'postgres':
|
||||
$db->sql_query("SELECT SETVAL('" . FORUMS_TABLE . "_seq',(select case when max(forum_id)>0 then max(forum_id)+1 else 1 end from " . FORUMS_TABLE . '));');
|
||||
break;
|
||||
|
||||
case 'mssql':
|
||||
case 'mssql_odbc':
|
||||
$db->sql_query('SET IDENTITY_INSERT ' . FORUMS_TABLE . ' OFF');
|
||||
|
|
Loading…
Add table
Reference in a new issue