mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Another sqlite UNION ALL insert update ... yes, I know sqlite install seems to be rather borked at present ... I thought, "hhmm, that worked too well too quickly" so I broke it to ensure consistency is maintained with the rest of the codebase
git-svn-id: file:///svn/phpbb/trunk@4212 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1426,8 +1426,9 @@ function cache_moderators()
|
||||
break;
|
||||
|
||||
case 'mssql':
|
||||
case 'sqlite':
|
||||
$sql = 'INSERT INTO ' . MODERATOR_TABLE . ' (forum_id, user_id, username, group_id, groupname)
|
||||
VALUES ' . implode(' UNION ALL ', preg_replace('#^(.*)$#', 'SELECT \1', $m_sql));
|
||||
' . implode(' UNION ALL ', preg_replace('#^(.*)$#', 'SELECT \1', $m_sql));
|
||||
$db->sql_query($sql);
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user