diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 0d32ce24..c27ac330 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -345,7 +345,7 @@ function where($where, $fields = array()) { } } foreach ((array) $where["null"] as $key) { - $return[] = idf_escape($key) . " IS NULL"; + $return[] = (preg_match($function_pattern, $key) ? $key : idf_escape($key)) . " IS NULL"; } return implode(" AND ", $return); }