Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64153

Allow administrator to override sqlsrv connection options

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Waiting for peer review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1.16, 3.4.7, 3.5.4, 3.6.1, 3.7
    • Fix Version/s: None
    • Component/s: Database SQL/XMLDB
    • Labels:

      Description

      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['dboptions'] 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.

        Attachments

          Activity

            People

            Assignee:
            lukecarrier Luke Carrier
            Reporter:
            lukecarrier Luke Carrier
            Peer reviewer:
            Mark Johnson
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: