MDL-31829 question engine SQL typo breaks some regrades.
commitb37cff4f0db7e6a013ef6ee908e1a8bd618c1119
authorTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 1 Mar 2012 12:13:46 +0000 (1 12:13 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 1 Mar 2012 12:38:58 +0000 (1 12:38 +0000)
tree3b3d577f64bdd213922df231b1610d4ff478fe6c
parentf24a1a74e5ec7f8f7a7f4c7d808d68e3cd7cc5f1
MDL-31829 question engine SQL typo breaks some regrades.

Also, some MySQL-only code had not been updated.

This problem only affected a small minority of question attempts, like
this:
1. Suppose you have a shortanswer question with correct answer 'Toad'
and some hints.
2. Suppose a student attempts this using the interactive behaviour and
on the first try responds 'Frog', and on the second try responds 'Toad'.
3. Then suppose the teacher edits the question to make 'Frog' correct.
4. Then, when the quiz is regraded, the question_attempt_step for the
second try will need to be deleted. That is where the buggy code was.
question/engine/datalib.php