MDL-52339 question: Fix question attempt removal for MySQL
commit642660aa359fdf9ead315e5175003df66669b9fc
authorAndrew Nicols <andrew@nicols.co.uk>
Tue, 2 Feb 2016 07:37:17 +0000 (2 15:37 +0800)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 8 Feb 2016 23:45:58 +0000 (9 00:45 +0100)
tree048a41b8a91f4932817a6c9db8ebb67859b5ab1f
parent75f61371a01050db08f12f9584eb9802c272e3a0
MDL-52339 question: Fix question attempt removal for MySQL

Derived table support was altered in MySQL 5.7 changing the way in which
DELETE FROM works in some cases.

This change modifies the way in which deletion occurs by selecting all IDs
and batching them into groups of 1000.
question/engine/datalib.php
question/tests/previewlib_test.php [new file with mode: 0644]