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

details of SQL errors should be reported to user

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 1.9.7
    • Database SQL/XMLDB
    • None
    • Any
    • MOODLE_19_STABLE
    • Easy

      If there is an SQL problem, the moodle should report the error it got from SQL server.
      Attached is a simple patch which does that.

      It has already found two errors which were not due to suggested "maybe the disk is full" error:

      1) The SQL error was:Lock wait timeout exceeded; try restarting transaction
      fixed by "innodb_lock_wait_timeout = 600" in mysql configuration

      2) The SQL error was:MySQL server has gone away
      this was due to out-of-memory condition which killed mysql server

            skodak Petr Skoda
            mnalis Matija Nalis (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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