Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2018f4e
)
MDL-65558 auth_db: use , as port separator
author
Andrew Nicols
<andrew@nicols.co.uk>
Fri, 10 May 2019 04:23:49 +0000
(12:23 +0800)
committer
Andrew Nicols
<andrew@nicols.co.uk>
Fri, 10 May 2019 04:23:49 +0000
(12:23 +0800)
auth/db/tests/db_test.php
patch
|
blob
|
blame
|
history
diff --git
a/auth/db/tests/db_test.php
b/auth/db/tests/db_test.php
index
fd6a62c
..
b17a7c0
100644
(file)
--- a/
auth/db/tests/db_test.php
+++ b/
auth/db/tests/db_test.php
@@
-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: