-
Bug
-
Resolution: Fixed
-
Major
-
2.0
-
None
-
Microsoft SQL, Oracle
-
MOODLE_20_STABLE
-
MOODLE_20_STABLE
Hi Petr, yet another issue with SELECT DISTINCT combined with TEXT fields under Oracle/MSSQL was reported by fweiss in MDL-22910
I have tracked it down to the code in enrol/meta/locallib.php in user_unenrolled() function:
$sql = "SELECT DISTINCT e.*
|
FROM {enrol} e
|
The table
{enrol}contains customtext1 and customtext2 TEXT fields that can not be used in this query.