diff --git a/lib/dml/tests/pgsql_native_recordset_test.php b/lib/dml/tests/pgsql_native_recordset_test.php index 07ebe6f3c80..690d1283031 100644 --- a/lib/dml/tests/pgsql_native_recordset_test.php +++ b/lib/dml/tests/pgsql_native_recordset_test.php @@ -65,7 +65,8 @@ class pgsql_native_recordset_testcase extends basic_testcase { // To make testing easier, create a database with the same dboptions as the real one, // but a low number for the cursor size. $this->specialdb = \moodle_database::get_driver_instance('pgsql', 'native', true); - $dboptions = ['fetchbuffersize' => $fetchbuffersize]; + $dboptions = $CFG->dboptions; + $dboptions['fetchbuffersize'] = $fetchbuffersize; $this->specialdb->connect($CFG->dbhost, $CFG->dbuser, $CFG->dbpass, $CFG->dbname, $DB->get_prefix(), $dboptions);