MDL-31829 question engine SQL typo breaks some regrades.
commit2db787e2425e500bceb11896010092729d0f4bf8
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:51 +0000 (1 12:38 +0000)
tree0c279d7fda4bdc202aea58da3321bacbd19d6f7a
parente356fb68fd43f15d72b4e7f323206e3643eca34e
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