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

Trying to insert into a non-existent table produces coding_exception, should be dml exception

XMLWordPrintable

      In the moodle database classes;

      • insert_record
      • calls get_columns
      • which returns array()

      insert_record then uses that empty array to contruct a insert_record_raw, which correctly complains there are no columns. There is a coding issue. It's with insert_record, which should throw DML exception when no colums are returned.

            mr-russ Russell Smith (Inactive)
            mr-russ Russell Smith (Inactive)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Sam Hemelryk Sam Hemelryk
            Andrew Lyons Andrew Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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