]> git.mjollnir.org Git - moodle.git/commitdiff
sql_isnull() not used anymore. Deleting. MDL-12970 ; merged from 19_STABLE
authorstronk7 <stronk7>
Sun, 27 Jan 2008 01:40:46 +0000 (01:40 +0000)
committerstronk7 <stronk7>
Sun, 27 Jan 2008 01:40:46 +0000 (01:40 +0000)
lib/dmllib.php

index 74c4b0c79d58f1a2678d69c233a735c2200ac195..a767ca4153bc184cea3db0b63ee5c16d283cf884 100644 (file)
@@ -1914,23 +1914,6 @@ function sql_isnotempty($tablename, $fieldname, $nullablefield, $textfield) {
     return ' ( NOT ' . sql_isempty($tablename, $fieldname, $nullablefield, $textfield) . ') ';
 }
 
-/**
- * Returns the proper SQL to do IS NULL
- * @uses $CFG
- * @param string $fieldname The field to add IS NULL to
- * @return string
- */
-function sql_isnull($fieldname) {
-    global $CFG;
-
-    switch ($CFG->dbfamily) {
-        case 'mysql':
-             return $fieldname.' IS NULL';
-        default:
-             return $fieldname.' IS NULL';
-    }
-}
-
 /**
  * Returns the proper AS keyword to be used to aliase columns
  * SQL defines the keyword as optional and nobody but PG