MDL-52339 question: Fix question attempt removal for MySQL
authorAndrew Nicols <andrew@nicols.co.uk>
Tue, 2 Feb 2016 07:37:17 +0000 (15:37 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Fri, 5 Feb 2016 01:10:09 +0000 (09:10 +0800)
commit650c0086f9347dab9ecb8adcc9281c68fb1d616e
treecd820a0ab374ccbf5d922f7fceb17027e21ddbe8
parent9d5d9c64ff18bd286eed49ef42dc73849f8db65f
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]