mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Mark two functions as deprecated because that's standard now.
This commit is contained in:
parent
fda5418401
commit
95f610334e
@ -117,36 +117,18 @@ function rollback_sql() {
|
||||
|
||||
/**
|
||||
* returns db specific uppercase function
|
||||
* @deprecated Moodle 1.7 because all the RDBMS use upper()
|
||||
*/
|
||||
function db_uppercase() {
|
||||
global $CFG;
|
||||
switch (strtolower($CFG->dbtype)) {
|
||||
|
||||
case "postgres7":
|
||||
return "upper";
|
||||
|
||||
case "mysql":
|
||||
default:
|
||||
return "ucase";
|
||||
|
||||
}
|
||||
return "upper";
|
||||
}
|
||||
|
||||
/**
|
||||
* returns db specific lowercase function
|
||||
* @deprecated Moodle 1.7 because all the RDBMS use lower()
|
||||
*/
|
||||
function db_lowercase() {
|
||||
global $CFG;
|
||||
switch (strtolower($CFG->dbtype)) {
|
||||
|
||||
case "postgres7":
|
||||
return "lower";
|
||||
|
||||
case "mysql":
|
||||
default:
|
||||
return "lcase";
|
||||
|
||||
}
|
||||
return "lower";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user