Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-37767

PostgreSQL and $CFG->dboptions['dbsocket'] = 1

XMLWordPrintable

      I've my main dev site with this setting:

      $CFG->dboptions['dbsocket'] = 1

      Under MySQL, it seems to work ok for normal use (web, cli, install, upgrade...) and phpunit passing 100%. Surely because I've the socket defined in php.ini (haven't tried without).

      But, under PostgreSQL, although it seems to work perfectly for normal use, it's failing badly when executing the phpunit tests. Apparently all the tests using adodb are failing / being skipped.

      I get this:

      ..S.........FSS..........S............ 1098 / 1632 ( 67%)
       
      There was 1 failure:
       
      1) enrol_database_testcase::test_sync_user_enrolments
      Failed asserting that 0 matches expected 2.
       
      Tests: 1630, Assertions: 29588, Failures: 1, Skipped: 5.
      

      Aka, 4 skipped and 1 failure 8not counting the "normal" ldap skip).

      It's dark-magic from where the postgres client gets the socket information, but it seems that there is one problem passing that option to adodb.

      Reproduced under master, haven't tried stables. Ciao

            skodak Petr Skoda
            stronk7 Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.