]> git.mjollnir.org Git - moodle.git/commitdiff
Mark two functions as deprecated because that's standard now.
authorstronk7 <stronk7>
Mon, 4 Sep 2006 22:40:42 +0000 (22:40 +0000)
committerstronk7 <stronk7>
Mon, 4 Sep 2006 22:40:42 +0000 (22:40 +0000)
lib/dmllib.php

index 21322d3cd1865271f39dfdc2f017443061f141d3..6d00770ad02e6aff357e497d2caccfa494f5d988 100644 (file)
@@ -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";
 }
 
 /**