Merge branch 'MDL-64981_36' of https://github.com/timhunt/moodle into MOODLE_36_STABLE

This commit is contained in:
Andrew Nicols
2019-03-05 13:22:35 +08:00
@@ -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);