mirror of
https://github.com/vrana/adminer.git
synced 2025-11-18 02:50:39 +01:00
No default for text/blob
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@339 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
$where = where();
|
||||
$fields = fields($_GET["edit"]);
|
||||
foreach ($fields as $name => $field) {
|
||||
if (isset($_GET["default"]) ? $field["auto_increment"] : !isset($field["privileges"][$where ? "update" : "insert"])) {
|
||||
if (isset($_GET["default"]) ? $field["auto_increment"] || preg_match('~text|blob~', $field["type"]) : !isset($field["privileges"][$where ? "update" : "insert"])) {
|
||||
unset($fields[$name]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user