MDL-46647 grades: Fix fetch_all_helper() towards cross-db
commit1d09472f1f4f8014b88150f6a89112e88f11ecaf
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 6 Oct 2014 15:40:12 +0000 (6 17:40 +0200)
committerFrederic Massart <fred@moodle.com>
Tue, 7 Oct 2014 07:26:40 +0000 (7 15:26 +0800)
treecad8a8a777c5eeb2aa8e9ff844038406873d93ee
parent29507f2816866946ebde3d54b760b4ef46d47339
MDL-46647 grades: Fix fetch_all_helper() towards cross-db

That helper, used to fetch information from DB by all the grade_object
chidren classes was not behaving properly handling TEXT/CLOB columns.

Instead of creating a property within every class listing the
existing columns, it seems to be a better solution to instrospect
the database metadata (cached) to ensure the correct SQL is generated
in every case.
lib/grade/grade_object.php