]> git.joonet.de Git - adminer.git/commitdiff
Ability to delete blob (Editor)
authorJakub Vrana <jakub@vrana.cz>
Mon, 10 Jan 2011 15:56:51 +0000 (16:56 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 10 Jan 2011 15:56:51 +0000 (16:56 +0100)
editor/include/adminer.inc.php

index 4f50170552f2fab8338587afbf27f125cf413413..d54b9873a33772ac8818baf7a70fd7b66e75273d 100644 (file)
@@ -387,7 +387,11 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
        }
        
        function editFunctions($field) {
-               $return = array("" => ($field["null"] || $field["auto_increment"] || $field["full_type"] == "tinyint(1)" ? "" : "*"));
+               $return = array();
+               if ($field["null"] && ereg('blob', $field["type"])) {
+                       $return["NULL"] = lang('empty');
+               }
+               $return[""] = ($field["null"] || $field["auto_increment"] || $field["full_type"] == "tinyint(1)" ? "" : "*");
                //! respect driver
                if (ereg('date|time', $field["type"])) {
                        $return["now"] = lang('now');