summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--adodb.inc.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/adodb.inc.php b/adodb.inc.php
index 8d573c34..f781ed6b 100644
--- a/adodb.inc.php
+++ b/adodb.inc.php
@@ -2940,6 +2940,14 @@ if (!defined('_ADODB_LAYER')) {
return true;
}
+ /**
+ * Return string with a database specific IFNULL statement
+ *
+ * @param string $field
+ * @param string $ifNull
+ *
+ * @return void
+ */
function IfNull( $field, $ifNull ) {
return " CASE WHEN $field is null THEN $ifNull ELSE $field END ";
}