1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 08:34:20 +02:00

Support &null[]=F(c)

This commit is contained in:
Jakub Vrana
2013-06-04 19:42:46 -07:00
parent 7dd90f56f1
commit e80eb058e9

View File

@@ -345,7 +345,7 @@ function where($where, $fields = array()) {
} }
} }
foreach ((array) $where["null"] as $key) { 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); return implode(" AND ", $return);
} }