Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-14679 META: DB layer 2.0
  3. MDL-14878

preconfigure_dbconnection() stuff must be implemented in some way

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Database SQL/XMLDB
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Some libraries, like ADOdb require to perform some DEFINEs before loading the adodb stuff, for example:

      http://phplens.com/adodb/reference.constants.adodb_assoc_case.html

      This was performed by preconfigure_dbconnection() function under Moodle 1.9.

      And that code has been moved to configure_dbconnection() that is executed after the connection is performed so, that stuff defines haven't effect.

      This can be solved by simply harcoding them at the beginning of each driver, before adodb is required (in moodle_adodb_database).

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            skodak Petr Skoda added a comment -

            grrrrr, silly adodb

            Show
            skodak Petr Skoda added a comment - grrrrr, silly adodb
            Hide
            stronk7 Eloy Lafuente (stronk7) added a comment -

            Committed some days ago in MDL-14864. Resolving as fixed.

            Show
            stronk7 Eloy Lafuente (stronk7) added a comment - Committed some days ago in MDL-14864 . Resolving as fixed.

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10