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

Create one new CFG variable (dbfamily)

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8
    • 1.7
    • Database SQL/XMLDB
    • None
    • any
    • Any
    • MOODLE_17_STABLE
    • MOODLE_18_STABLE

      As the number of possible drivers grown, it would be interesting to introduce one new calculated CFG attribute.

      Call it $CFG->dbfamily and it will contain neutral names for the adodb driver being used. It will be calculated in setup.php, potentially (need to be analysed) in configure_dbconnection() and potential values will be:

      mysql, postgres, mssql, oracle

      Then , use that variable in a lot of places where we are using CFG->dbtype, it will reduce the complexity of code and will make easy the adoption of new drivers belonging to the same family.

      Also, enviroment stuff could use this new variable.

            stronk7 Eloy Lafuente (stronk7)
            stronk7 Eloy Lafuente (stronk7)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.