Skip to content

Commit

Permalink
MDL-64981 dml tests: pgsql_native_recordset_testcase port number
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Mar 1, 2019
1 parent b39b8eb commit 4ed6bb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dml/tests/pgsql_native_recordset_test.php
Expand Up @@ -65,7 +65,8 @@ protected function init_db($fetchbuffersize) {
// 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);

Expand Down

0 comments on commit 4ed6bb0

Please sign in to comment.