mirror of
https://github.com/moodle/moodle.git
synced 2025-04-11 11:23:52 +02:00
Merge branch 'MDL-65558-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
d44bc84439
@ -99,6 +99,13 @@ class auth_db_testcase extends advanced_testcase {
|
||||
case 'mssql':
|
||||
set_config('type', 'mssqlnative', 'auth_db');
|
||||
set_config('sybasequoting', '1', 'auth_db');
|
||||
|
||||
// The native sqlsrv driver uses a comma as separator between host and port.
|
||||
$dbhost = $CFG->dbhost;
|
||||
if (!empty($dboptions['dbport'])) {
|
||||
$dbhost .= ',' . $dboptions['dbport'];
|
||||
}
|
||||
set_config('host', $dbhost, 'auth_db');
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -98,6 +98,13 @@ class enrol_database_testcase extends advanced_testcase {
|
||||
case 'mssql':
|
||||
set_config('dbtype', 'mssqlnative', 'enrol_database');
|
||||
set_config('dbsybasequoting', '1', 'enrol_database');
|
||||
|
||||
// The native sqlsrv driver uses a comma as separator between host and port.
|
||||
$dbhost = $CFG->dbhost;
|
||||
if (!empty($dboptions['dbport'])) {
|
||||
$dbhost .= ',' . $dboptions['dbport'];
|
||||
}
|
||||
set_config('dbhost', $dbhost, 'enrol_database');
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user