Git commits in Moodle 2.6.6 by Neill Magill

commit c3cc812448af45da337e1779d1b6a1e20bdbd07f
Author: Neill Magill <neill.magill@nottingham.ac.uk>
Date:   Fri, 03 Oct 2014 17:24:32 +0800
Tag:    v2.6.6

MDL-46182 Inefficient query during Moodle upgrade on course_section table.