David Mudrak ed79b89b85 MDL-26010 Reformatting SQL of the previous Andrew's fix
I have reformatted the SQL according to the style used in Moodle code to
improve readability of the query. Added sql_compare_text() to the right
side of the comparison, even though the current callers provide integers
here (just in case).
2011-02-18 17:33:37 +01:00
..