Open ghost opened 5 years ago
Hi Dave,
rows
is a reserved keyword in MariaDB, this has been fixed in #41 but not released yet.
Can you manually update your plugin with the master branch here and confirm it solves the issue?
Perfect. Many thanks for resolving this for us.
Dave
Hi There, I get an error from the Matrix question type. Using version 2018050701 of the plugin.
Either entering the quiz (Matrix question is question 1) or editing the Matrix question give the error:
Error reading from database
More information about this error Debug info: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'rows INNER JOIN mdl_question_matrix ' at line 4 SELECT weights.* FROM mdl_question_matrix_weights AS weights WHERE rowid IN (SELECT rows.id FROM mdl_question_matrix_rows AS rows INNER JOIN mdl_question_matrix AS matrix ON rows.matrixid = matrix.id WHERE matrix.questionid = 17) OR
colid IN (SELECT cols.id FROM mdl_question_matrix_cols AS cols INNER JOIN mdl_question_matrix AS matrix ON cols.matrixid = matrix.id WHERE matrix.questionid = 17)
[array ( )] Error code: dmlreadexception Stack trace:
Cheers
Dave Emsley