Permalink
Browse files

MDL-31060: removed unnecessary fields from query which also caused pr…

…oblems in MSSQL
  • Loading branch information...
1 parent f70f6e9 commit e5a9af0a70b18d8f00ecedaa8696708fe5e8e74d @marinaglancy marinaglancy committed Jan 10, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 grade/grading/pick.php
@@ -144,8 +144,7 @@
}
// construct the SQL to find all matching templates
-$sql = "SELECT DISTINCT gd.id, gd.areaid, gd.name, gd.description, gd.descriptionformat, gd.timecreated,
- gd.usercreated, gd.timemodified, gd.usermodified
+$sql = "SELECT DISTINCT gd.id, gd.areaid, gd.name, gd.usercreated
FROM {grading_definitions} gd
JOIN {grading_areas} ga ON (gd.areaid = ga.id)
JOIN {context} cx ON (ga.contextid = cx.id)";

0 comments on commit e5a9af0

Please sign in to comment.