git-svn-id: file:///svn/phpbb/trunk@7769 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2007-06-16 14:18:27 +00:00
parent 27d83c7e2f
commit 827ecf9f30
2 changed files with 5 additions and 2 deletions

View file

@ -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] 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] 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] 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> </ul>

View file

@ -93,8 +93,6 @@ function phpbb_insert_forums()
break; break;
} }
$cats_added = array(); $cats_added = array();
while ($row = $src_db->sql_fetchrow($result)) while ($row = $src_db->sql_fetchrow($result))
{ {
@ -281,6 +279,10 @@ function phpbb_insert_forums()
switch ($db->sql_layer) 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':
case 'mssql_odbc': case 'mssql_odbc':
$db->sql_query('SET IDENTITY_INSERT ' . FORUMS_TABLE . ' OFF'); $db->sql_query('SET IDENTITY_INSERT ' . FORUMS_TABLE . ' OFF');