Merged from MOODLE_17_STABLE
$summarysearch = '';
foreach ($searchterms as $searchterm) {
+
+ /// Under Oracle and MSSQL, trim the + and - operators and perform
+ /// simpler LIKE search
+ if ($CFG->dbtype == 'oci8po' || $CFG->dbtype == 'mssql' || $CFG->dbtype == 'mssql_n' || $CFG->dbtype == 'odbc_mssql') {
+ $searchterm = trim($searchterm, '+-');
+ }
+
if ($fullnamesearch) {
$fullnamesearch .= ' AND ';
}