From: martinlanghoff Date: Tue, 26 Sep 2006 05:07:28 +0000 (+0000) Subject: sql_ilike() -- added notes on Oracle support or lack thereof X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=95008f81c62031558d94eaf71141cc49cf2489b1;p=moodle.git sql_ilike() -- added notes on Oracle support or lack thereof --- diff --git a/lib/dmllib.php b/lib/dmllib.php index bf0ad74cca..9039227810 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -1207,6 +1207,10 @@ function sql_paging_limit($page, $recordsperpage) { /** * Returns the proper SQL to do LIKE in a case-insensitive way * + * Note the LIKE are case sensitive for Oracle. Oracle 10g is required to use + * the caseinsensitive search using regexp_like() or NLS_COMP=LINGUISTIC :-( + * See http://docs.moodle.org/en/XMLDB_Problems#Case-insensitive_searches + * * @uses $CFG * @return string */ @@ -1214,10 +1218,10 @@ function sql_ilike() { global $CFG; switch ($CFG->dbtype) { - case 'mysql': - return 'LIKE'; - default: + case 'postgres7': return 'ILIKE'; + default: + return 'LIKE'; } }