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

Create one new CFG variable (dbfamily)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.8
    • Component/s: Database SQL/XMLDB
    • Labels:
      None
    • Environment:
      any
    • Database:
      Any
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Tester:
              Nobody
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                31/Mar/07