Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-29516 DB layer improvements 2.3 META
  3. MDL-31899

Rewrite mysql get_columns to use information_schema table

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.3
    • 2.2
    • Database SQL/XMLDB

      The current implementation of mysqli_native_moodle_database->get_columns gets its information by doing a SHOW_COLUMNS and parsing the output. There are some limitations with this approach, not the least of which is that it doesn't return the maximum length for text fields, which would help resolve MDL-15678. I've also noticed in my own testing that the values returned by the current function don't match what comes out of the information_schema table (which may be related to MDL-27634).

            skodak Petr Skoda
            cfulton Charles Fulton
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Sam Hemelryk Sam Hemelryk
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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