From 4ed6bb0c22dfaaf5790951eae911ade8202e43dc Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Fri, 1 Mar 2019 11:12:40 +0000 Subject: [PATCH] MDL-64981 dml tests: pgsql_native_recordset_testcase port number --- lib/dml/tests/pgsql_native_recordset_test.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);