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

core_course_external_testcase::test_create_courses failing on oracle

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.3.1
    • Unit tests, Web Services
    • MOODLE_23_STABLE

      1) core_course_external_testcase::test_create_courses

      dml_write_exception: Error writing to database (ORA-01438: value larger than specified precision allowed for this column
      INSERT INTO u_course (fullname,shortname,idnumber,summary,summaryformat,format,showgrades,newsitems,startdate,numsections,maxbytes,showreports,visible,hiddensections,groupmode,groupmodeforce,defaultgroupingid,enablecompletion,completionstartonenrol,completionnotify,lang,category,timecreated,timemodified,sortorder,visibleold) VALUES (:fullname,:shortname,:idnumber,:summary,:summaryformat,:format,:showgrades,:newsitems,:startdate,:numsections,:maxbytes,:showreports,:visible,:hiddensections,:groupmode,:groupmodeforce,:defaultgroupingid,:enablecompletion,:completionstartonenrol,:completionnotify,:lang,:category,:timecreated,:timemodified,:sortorder,:visibleold) RETURNING id INTO :oracle_id
      [array (
        'fullname' => 'Test course 2',
        'shortname' => 'Testcourse2',
        'idnumber' => 'testcourse2idnumber',
        'summary' => 'Description for course 2',
        'summaryformat' => 0,
        'format' => 'weeks',
        'showgrades' => 1,
        'newsitems' => 3,
        'startdate' => 32882306400,
        'numsections' => 4,
        'maxbytes' => 100000,
        'showreports' => 1,
        'visible' => 0,
        'hiddensections' => 0,
        'groupmode' => 0,
        'groupmodeforce' => 0,
        'defaultgroupingid' => 0,
        'enablecompletion' => 0,
        'completionstartonenrol' => 0,
        'completionnotify' => 1,
        'lang' => 'en',
        'category' => 2,
        'timecreated' => 1342063434,
        'timemodified' => 1342063434,
        'sortorder' => 0,
        'visibleold' => 0,
      )])
       
      /server/workspace/moodle/lib/dml/moodle_database.php:410
      /server/workspace/moodle/lib/dml/oci_native_moodle_database.php:274
      /server/workspace/moodle/lib/dml/oci_native_moodle_database.php:1208
      /server/workspace/moodle/lib/dml/oci_native_moodle_database.php:1251
      /server/workspace/moodle/course/lib.php:3883
      /server/workspace/moodle/course/externallib.php:567
      /server/workspace/moodle/course/tests/externallib_test.php:334
      /server/workspace/moodle/lib/phpunit/classes/advanced_testcase.php:76

      To re-run:
      phpunit core_course_external_testcase course/tests/externallib_test.php

            Unassigned Unassigned
            poltawski Dan Poltawski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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