]> git.joonet.de Git - adminer.git/commitdiff
Support &null[]=F(`c`)
authorJakub Vrana <jakub@vrana.cz>
Wed, 5 Jun 2013 02:42:46 +0000 (19:42 -0700)
committerJakub Vrana <jakub@vrana.cz>
Wed, 5 Jun 2013 02:42:46 +0000 (19:42 -0700)
adminer/include/functions.inc.php

index 0d32ce24d669564567785c3caf3d5db53e984dd4..c27ac3300e8835d3328dde5b478c2e88889c5e3d 100644 (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);
 }