]> git.mjollnir.org Git - moodle.git/commitdiff
merged fox for MDL-7113, removing DISTINCT on TEXT field
authortoyomoyo <toyomoyo>
Fri, 20 Oct 2006 02:44:22 +0000 (02:44 +0000)
committertoyomoyo <toyomoyo>
Fri, 20 Oct 2006 02:44:22 +0000 (02:44 +0000)
lib/accesslib.php

index 132cda8af2afb03672521a0c42ddaec415be098c..6d823e658b31bc39133c2d8b357a33132ad149ec 100755 (executable)
@@ -2911,7 +2911,7 @@ function get_roles_on_exact_context($context) {
 
     global $CFG;
 
-    return get_records_sql("SELECT DISTINCT r.*
+    return get_records_sql("SELECT r.*
                             FROM {$CFG->prefix}role_assignments ra,
                                  {$CFG->prefix}role r
                             WHERE ra.roleid = r.id
@@ -2980,7 +2980,7 @@ function get_roles_with_override_on_context($context) {
 
     global $CFG;
 
-    return get_records_sql("SELECT DISTINCT r.*
+    return get_records_sql("SELECT r.*
                             FROM {$CFG->prefix}role_capabilities rc,
                                  {$CFG->prefix}role r
                             WHERE rc.roleid = r.id
@@ -3003,7 +3003,7 @@ function get_roles_with_assignment_on_context($context) {
 
     global $CFG;
 
-    return get_records_sql("SELECT DISTINCT r.*
+    return get_records_sql("SELECT r.*
                             FROM {$CFG->prefix}role_assignments ra,
                                  {$CFG->prefix}role r
                             WHERE ra.roleid = r.id