diff options
author | Andreas Fischer <bantu@phpbb.com> | 2009-09-10 08:58:24 +0000 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2009-09-10 08:58:24 +0000 |
commit | a5ec35e185126f5366a5749ad4f57325202b10f5 (patch) | |
tree | cf730035c5c58c66d6ec5f77fb327e1639ff7d75 /phpBB/install | |
parent | ab971c59be9eefe86bd53bad5858c6427ccc57eb (diff) | |
download | forums-a5ec35e185126f5366a5749ad4f57325202b10f5.tar forums-a5ec35e185126f5366a5749ad4f57325202b10f5.tar.gz forums-a5ec35e185126f5366a5749ad4f57325202b10f5.tar.bz2 forums-a5ec35e185126f5366a5749ad4f57325202b10f5.tar.xz forums-a5ec35e185126f5366a5749ad4f57325202b10f5.zip |
Fix database updater for PostgreSQL: Data needs to be GROUPed BY left_id, before we can ORDER BY left_id. Introduced in r10072.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10130 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install')
-rw-r--r-- | phpBB/install/database_update.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php index ab22c803ee..41983400fc 100644 --- a/phpBB/install/database_update.php +++ b/phpBB/install/database_update.php @@ -677,6 +677,7 @@ function _add_modules($modules_to_install) WHERE module_class = '" . $db->sql_escape($module_data['class']) . "' AND parent_id = {$parent_id} AND left_id BETWEEN {$first_left_id} AND {$module_row['left_id']} + GROUP BY left_id ORDER BY left_id"; $result = $db->sql_query($sql); $steps = (int) $db->sql_fetchfield('num_modules'); |