]> git.mjollnir.org Git - moodle.git/commitdiff
Adding support for the new mssql_n driver
authorstronk7 <stronk7>
Thu, 19 Oct 2006 22:13:53 +0000 (22:13 +0000)
committerstronk7 <stronk7>
Thu, 19 Oct 2006 22:13:53 +0000 (22:13 +0000)
Merged from MOODLE_17_STABLE

mod/forum/lib.php

index 70a409f9611af38f873966eaeaf3a956fe6ad636..c45efd6741605969b6da4da01a8e4964b12f88e2 100644 (file)
@@ -1577,7 +1577,8 @@ function forum_get_discussions($forum="0", $forumsort="d.timemodified DESC",
     }
 
     //TODO: there must be a nice way to do this that keeps both postgres and mysql 3.2x happy but I can't find it right now.
-    if ($CFG->dbtype == 'postgres7' || $CFG->dbtype == 'mssql' || $CFG->dbtype == 'odbc_mssql' || $CFG->dbtype == 'oci8po') {
+    if ($CFG->dbtype == 'postgres7' || $CFG->dbtype == 'mssql' || 
+        $CFG->dbtype == 'mssql_n' || $CFG->dbtype == 'odbc_mssql' || $CFG->dbtype == 'oci8po') {
         return get_records_sql("SELECT $postdata, d.name, d.timemodified, d.usermodified, d.groupid,
                                    u.firstname, u.lastname, u.email, u.picture $umfields
                               FROM {$CFG->prefix}forum_discussions d