Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-9886

Database updater does not run on PostgreSQL because of an error in _add_module()

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.8-RC1
    • Component/s: None
    • Labels:
      None

      Description

      ERROR: column "phpbb_modules.left_id" must appear in the GROUP BY clause or be used in an aggregate function LINE 6: ORDER BY left_id ^ []
       
      SQL
       
      SELECT COUNT(module_id) as num_modules FROM phpbb_modules WHERE module_class = 'acp' AND parent_id = 10 AND left_id BETWEEN 89 AND 97 ORDER BY left_id
       
      BACKTRACE
       
      FILE: includes/db/postgres.php
      LINE: 188
      CALL: dbal->sql_error()
       
      FILE: install/database_update.php
      LINE: 690
      CALL: dbal_postgres->sql_query()
       
      FILE: install/database_update.php
      LINE: 1721
      CALL: _add_modules()
       
      FILE: install/database_update.php
      LINE: 398
      CALL: change_database_data()
      

        Issue Links

          Activity

          Hide
          naderman Nils Adermann added a comment -

          The ORDER BY has no effect on that query so can probably just be removed entirely. Afterall it only returns a single value.

          Show
          naderman Nils Adermann added a comment - The ORDER BY has no effect on that query so can probably just be removed entirely. Afterall it only returns a single value.
          Hide
          nickvergessen Joas Schilling added a comment - - edited

          Tested on MySQLi 5.1.41 and PostgreSQL 8.4.4, 32-bit.

          Show
          nickvergessen Joas Schilling added a comment - - edited Tested on MySQLi 5.1.41 and PostgreSQL 8.4.4, 32-bit.

            People

            • Assignee:
              nickvergessen Joas Schilling
              Reporter:
              bantu Andreas Fischer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development