]> git.joonet.de Git - adminer.git/commitdiff
Don't mark bools as mandatory
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Wed, 11 Nov 2009 22:56:20 +0000 (22:56 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Wed, 11 Nov 2009 22:56:20 +0000 (22:56 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1237 7c3ca157-0c34-0410-bff1-cbf682f78f5c

editor/include/adminer.inc.php

index 093c6aa6d4b52c6c946ec8e2d13cd9371327b0bf..49a3df8b72f9e7f8e6fe1e408b849ba24cce9143 100644 (file)
@@ -175,7 +175,7 @@ ORDER BY ORDINAL_POSITION");
        }
        
        function selectSearchPrint($where, $columns, $indexes) {
-               //! from-to, foreign keys
+               //! foreign keys
                echo '<fieldset><legend>' . lang('Search') . "</legend><div>\n";
                $i = 0;
                foreach ((array) $_GET["where"] as $val) {
@@ -362,7 +362,7 @@ ORDER BY ORDINAL_POSITION");
        }
        
        function editFunctions($field) {
-               $return = array("" => ($field["null"] || $field["auto_increment"] ? "" : "*"));
+               $return = array("" => ($field["null"] || $field["auto_increment"] || $field["full_type"] == "tinyint(1)" ? "" : "*"));
                if (ereg('date|time', $field["type"])) {
                        $return[] = "now";
                }