From: stronk7 Date: Thu, 19 Oct 2006 22:13:53 +0000 (+0000) Subject: Adding support for the new mssql_n driver X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=211836549f6213a7321f4d2002abb9bbfd166947;p=moodle.git Adding support for the new mssql_n driver Merged from MOODLE_17_STABLE --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 70a409f961..c45efd6741 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -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