1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +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) {
$return[] = idf_escape($key) . " IS NULL";
$return[] = (preg_match($function_pattern, $key) ? $key : idf_escape($key)) . " IS NULL";
}
return implode(" AND ", $return);
}