MDL-64981 dml tests: pgsql_native_recordset_testcase port number

This commit is contained in:
Tim Hunt 2019-03-01 11:12:40 +00:00
parent 89d1238962
commit a0536c410a

View File

@ -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);