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

Change some getNameForObject() uses to their DB instrospection alternatives...

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.8, 1.9
    • Component/s: Database SQL/XMLDB
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      getNameForObject() in XMLDB generators stuff, should be used ONLY to calculate the name of objects being created. NEVER to guess the name of existing objects.

      Review all the generators, changing such wrong uses, replacing them by DB introspection. It will make the naming schema 100% consistent.

      For 1.8 we have done that to sequences and triggers under Oracle (MDL-6880). Something similar should be applied to check constraints. Analyse.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Tester:
              Nobody
              Participants:
              Component watchers:
              Andrew Nicols, Dongsheng Cai, Huong Nguyen, 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