mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00: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:
parent
696e833555
commit
4cc4867c97
1 changed files with 2 additions and 1 deletions
|
@ -1426,8 +1426,9 @@ function cache_moderators()
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'mssql':
|
case 'mssql':
|
||||||
|
case 'sqlite':
|
||||||
$sql = 'INSERT INTO ' . MODERATOR_TABLE . ' (forum_id, user_id, username, group_id, groupname)
|
$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);
|
$db->sql_query($sql);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue