]> git.mjollnir.org Git - moodle.git/commit
Close Bug #5670 - get_courses_page() - remove costly and redundant DISTINCT
authormartinlanghoff <martinlanghoff>
Tue, 18 Jul 2006 04:39:01 +0000 (04:39 +0000)
committermartinlanghoff <martinlanghoff>
Tue, 18 Jul 2006 04:39:01 +0000 (04:39 +0000)
commit2338ad323963ef3bbe3c6213df87c6db210a399f
tree9634091eac0336d38f902816de008611537590d5
parentcb6f407365ed82bbfa26afe6644071da7647da7f
Close Bug #5670 - get_courses_page() - remove costly and redundant DISTINCT

get_courses_page() uses get_records_sql() which means that it will actually
break if the first field requested isn't c.id. This in turn means that
the DISTINCT is not needed at all.

So let's go fast again!
lib/datalib.php