Moodle

string null can not be inserted to database

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 1.5.3
  • Fix Version/s: None
  • Component/s: General
  • Labels:
    None
  • Environment:
    Linux
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_15_STABLE

Description

It seems that the quiz question editor doesn't like null as an answer to a multiple choice question. When the Editing a Multiple Choice question page is submitted I get Could not insert quiz question!.

Issue Links

Activity

Hide
Martin Dougiamas added a comment -

From Gustav Delius (gwd2 at york.ac.uk) Tuesday, 31 January 2006, 05:52 AM:

This is an interesting one and not specific to the quiz. One gets this problem whenever one tries to use insert_record to insert a record into the database that contains a field which has the string value 'null'. This is a fault in the adodb database abstraction layer that does not distinguish between the string null and null.

I am assigning this bug to Martin.

Show
Martin Dougiamas added a comment - From Gustav Delius (gwd2 at york.ac.uk) Tuesday, 31 January 2006, 05:52 AM: This is an interesting one and not specific to the quiz. One gets this problem whenever one tries to use insert_record to insert a record into the database that contains a field which has the string value 'null'. This is a fault in the adodb database abstraction layer that does not distinguish between the string null and null. I am assigning this bug to Martin.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: