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

Not all answers' IDs saved for short answer questions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.9
    • Questions
    • None
    • MySQL 5.0.45
    • MySQL
    • MOODLE_18_STABLE, MOODLE_19_STABLE

      In our installation, the "answers" column in "mdl_question_shortanswer" table have proven to be too short to accommodate all answers entered by teachers.

      Several teachers at our Moodle site use the cloze questions quite extensively. Some of them have recently hit the limits of storing answers for short answer subquestions. Answers' IDs are now 6-digit numbers at our site, so the varchar(255) "answers" column in "mdl_question_shortanswer" table is not able to hold more than 36 answers (36[ids] * 6[digits] + 35[commas] = 251). And some of the questions have more than 36 answers. These are usually whole sentences including many different variants with partial grades, etc.

      I have changed the type of the "answers" column from "varchar(255)" to "text" and everything is working fine now. I would like to propose similar change to go into 1.9.

            timhunt Tim Hunt
            mixik Daniel Miksik
            Nobody Nobody
            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.