MDL-37742 simplify dirty one-space oracle hack

This commit is contained in:
Petr Škoda
2013-03-24 13:43:18 +01:00
parent 373a8e052c
commit 77a5c09354
15 changed files with 165 additions and 121 deletions
+2 -1
View File
@@ -853,7 +853,8 @@ function get_courses_search($searchterms, $sort='fullname ASC', $page=0, $record
if ($DB->get_dbfamily() == 'oracle') {
$concat = $DB->sql_concat('c.summary', "' '", 'c.fullname', "' '", 'c.idnumber', "' '", 'c.shortname');
} else {
$concat = $DB->sql_concat("COALESCE(c.summary, '". $DB->sql_empty() ."')", "' '", 'c.fullname', "' '", 'c.idnumber', "' '", 'c.shortname');
$concat = $DB->sql_concat("COALESCE(c.summary, :empty)", "' '", 'c.fullname', "' '", 'c.idnumber', "' '", 'c.shortname');
$params['empty'] = '';
}
foreach ($searchterms as $searchterm) {