MDL-22910 workaround for inability of Oracle and MS sql to find distinct text fields, improved perf in all dbs

This commit is contained in:
Petr Skoda
2010-06-30 20:42:11 +00:00
parent 9e39483a01
commit eae1948cee
4 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -296,10 +296,10 @@ class user_picture implements renderable {
* List of mandatory fields in user record here.
* @var string
*/
const FIELDS = 'id,picture,firstname,lastname,imagealt';
const FIELDS = 'id,picture,firstname,lastname,imagealt,email'; //note: the email will be useful for gravatar support int the future ;-)
/**
* @var object $user A user object with at least fields id, picture, imagealt, firstname and lastname set.
* @var object $user A user object with at least fields all columns specified in FIELDS constant set.
*/
public $user;
/**