Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Deferred
-
Affects Version/s: 1.8
-
Fix Version/s: 1.9
-
Component/s: Database SQL/XMLDB
-
Labels:None
-
Environment:MSSQL 2005
-
Database:Microsoft SQL
-
Affected Branches:MOODLE_18_STABLE
-
Fixed Branches:MOODLE_19_STABLE
Description
See http://msdn2.microsoft.com/en-us/library/ms178158.aspx
The main reason is that ntext fields can't be compared properly so queries with UNIONs fail (for example, the big query in get_my_courses in lib/datalib.php, you get an error message like "The ntext data type cannot be selected as DISTINCT because it is not comparable."). nvarchar(max) is new in MSSQL 2005, so it won't be compatible with earlier versions.
Attachments
Issue Links
| This issue will be resolved by: | ||||
| MDL-11270 | Analyse the impact and roadmap to move, under MSSQL, from ntext to nvarchar(max) |
|
|
|
Note: I've made a workaround to make get_my_courses working by executing 3 separate SQL queries. If anyone is having problems with this issue and wants the workaround, let me now.