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

Oracle fails when trying to create a course ORA-00918: column ambiguously defined

    XMLWordPrintable

    Details

      Description

      1. Create a new oracle install
      2. Click add course
      3. Boom:
        Debug info: ORA-00918: column ambiguously defined
        SELECT cc.*, ctx.id AS ctxid, ctx.path AS ctxpath, ctx.depth AS ctxdepth, ctx.contextlevel AS ctxlevel, ctx.instanceid AS ctxinstance
        FROM m_course_categories cc
        JOIN m_context ctx ON cc.id = ctx.instanceid WHERE ctx.contextlevel = 40 AND (cc.id = :o_param1 OR cc.parent = :o_param2 OR cc.depth = 1) ORDER BY depth ASC, sortorder ASC, id ASC
        [array (
        'o_param1' => '1',
        'o_param2' => '1',
        )]
        Stack trace:
        line 413 of /lib/dml/moodle_database.php: dml_read_exception thrown
        line 278 of /lib/dml/oci_native_moodle_database.php: call to moodle_database->query_end()
        line 1070 of /lib/dml/oci_native_moodle_database.php: call to oci_native_moodle_database->query_end()
        line 1738 of /lib/navigationlib.php: call to oci_native_moodle_database->get_recordset_sql()
        line 1195 of /lib/navigationlib.php: call to global_navigation->load_all_categories()
        line 3016 of /lib/navigationlib.php: call to global_navigation->initialise()
        line 778 of /lib/pagelib.php: call to navbar->has_items()
        line 4 of /theme/base/layout/general.php: call to moodle_page->has_navbar()
        line 765 of /lib/outputrenderers.php: call to include()
        line 712 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
        line 167 of /course/edit.php: call to core_renderer->header()

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  25/Jun/12