-
Improvement
-
Resolution: Fixed
-
Minor
-
3.1.16, 3.4.7, 3.5.4, 3.6.1, 3.7
-
MOODLE_31_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
-
MOODLE_402_STABLE
-
MDL-64153-master -
-
2
-
Team Hedgehog Sprint 1.3
Summary
The sqlsrv extension's sqlsrv_connect() function has a $connectionInfo parameter that allows the user to set a bunch of connection options.
At present Moodle sets a limited number of these keys and doesn't allow the user to override/extend these to meet their environments. This change adds a new $CFG->dboptions['sqlsrvinfo'] option that allows the user to alter and override any connection options.
Example use case
If the user has multiple ODBC drivers installed and configured in /etc/odbcinst.ini it may be necessary to set the Driver key to ensure that the correct version of the driver is used.