I opened >Site Administration > Development > Functional DB tests and ran the test on my database.
The result was 3 Exceptions and 6 Fails. See the list below.
The report indicates the file name and line number of the script that triggered the failiers, but it doesn't indicate the database table name, record ID, or field name. The exceptions point to "for column 'onetext' at row 1 INSERT INTO mdl_unit_table", but I can't find a table called mdl_unit_table.
I can't see how to use this report to fix the problems in my database. I would like to clean up these problems.
Could someone shed some light on how to use the Functional DB Test?
Thanks,
Clarence
EXCEPTIONS:
Exception: lib/dml/simpletest/testdml.php / 〉 dml_test / 〉 test_insert_record
Unexpected exception of type [dml_write_exception] with message [Error writing to database] in [/home/musappc/public_html/Cm2Pm/lib/dml/moodle_database.php line 381]
Debug info:
Incorrect string value: '\xEC\xA0\x9C 1\xEC...' for column 'onetext' at row 1 INSERT INTO mdl_unit_table (course,oneint,onenum,onechar,onetext,onebinary) VALUES(?,?,?,?,?,?)
Exception: lib/dml/simpletest/testdml.php / 〉 dml_test / 〉 test_update_record
Unexpected exception of type [dml_write_exception] with message [Error writing to database] in [/home/musappc/public_html/Cm2Pm/lib/dml/moodle_database.php line 381]
Debug info:
Incorrect string value: '\xEC\xA0\x9C 1\xEC...' for column 'onetext' at row 1 UPDATE mdl_unit_table SET course = ?,Xoneint= ?,Xonenum= ?,Xonechar= ?,Xonetext= ?,Xonebinary= ? WHERE id=?
Exception: lib/dml/simpletest/testdml.php / 〉 dml_test / 〉 test_set_field_select
Unexpected exception of type [dml_write_exception] with message [Error writing to database] in [/home/musappc/public_html/Cm2Pm/lib/dml/moodle_database.php line 381]
Debug info:
Incorrect string value: '\xEC\xA0\x9C 1\xEC...' for column 'onetext' at row 1 UPDATE mdl_unit_table SET Xonetext= ? WHERE id = ?
FAILS:
Equal expectation fails because [Integer: 0] differs from [String: 1] by 1 at [/home/musappc/public_html/Cm2Pm/lib/dml/simpletest/testdml.php line 2454]
Equal expectation fails because [Integer: 0] differs from [String: 2] by 2 at [/home/musappc/public_html/Cm2Pm/lib/dml/simpletest/testdml.php line 2501]
Equal expectation fails because [Integer: 0] differs from [String: 2] by 2 at [/home/musappc/public_html/Cm2Pm/lib/dml/simpletest/testdml.php line 2530]
Equal expectation fails because [Integer: 0] differs from [String: 2] by 2 at [/home/musappc/public_html/Cm2Pm/lib/dml/simpletest/testdml.php line 2600]
Equal expectation fails because [Integer: 0] differs from [String: 1] by 1 at [/home/musappc/public_html/Cm2Pm/lib/dml/simpletest/testdml.php line 2687]
Equal expectation fails because [Integer: 1] differs from [String: 2] by 1 at [/home/musappc/public_html/Cm2Pm/lib/dml/simpletest/testdml.php line 2690]