mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Empty value in Editor as NULL
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@886 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -339,20 +339,8 @@ function process_input($name, $field) {
|
||||
return false; //! report errors
|
||||
}
|
||||
return "_binary" . $dbh->quote($file);
|
||||
} elseif (ereg('^(now|uuid)$', $function)) {
|
||||
return "$function()";
|
||||
} elseif (ereg('^[+-]$', $function)) {
|
||||
return idf_escape($name) . " $function " . $dbh->quote($value);
|
||||
} elseif (ereg('^[+-] interval$', $function)) {
|
||||
return idf_escape($name) . " $function " . (preg_match("~^([0-9]+|'[0-9.: -]') [A-Z_]+$~i", $value) ? $value : $dbh->quote($value));
|
||||
} elseif (ereg('^(addtime|subtime)$', $function)) {
|
||||
return "$function(" . idf_escape($name) . ", " . $dbh->quote($value) . ")";
|
||||
} elseif (ereg('^(md5|sha1|password)$', $function)) {
|
||||
return "$function(" . $dbh->quote($value) . ")";
|
||||
} elseif ($field["type"] == "timestamp" && $value == "CURRENT_TIMESTAMP") {
|
||||
return $value;
|
||||
} else {
|
||||
return $dbh->quote($value);
|
||||
return adminer_process_input($name, $field);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user