From: stronk7 Date: Sun, 27 Jan 2008 01:40:46 +0000 (+0000) Subject: sql_isnull() not used anymore. Deleting. MDL-12970 ; merged from 19_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5042a60af49e2657d1720b8e54e803849e7ec542;p=moodle.git sql_isnull() not used anymore. Deleting. MDL-12970 ; merged from 19_STABLE --- diff --git a/lib/dmllib.php b/lib/dmllib.php index 74c4b0c79d..a767ca4153 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -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