Allow CURRENT_TIMESTAMP for timestamp

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@247 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2007-07-25 14:40:35 +00:00
parent dbe69dc9ea
commit f099d9499b

View file

@ -54,6 +54,8 @@ function process_input($name, $field) {
return false; //! report errors, also empty $_POST (too big POST data, not only FILES)
}
return "_binary'" . (is_string($file) ? $mysql->escape_string($file) : "") . "'";
} elseif ($field["type"] == "timestamp" && $value == "CURRENT_TIMESTAMP") {
return $value;
} else {
return "'" . $mysql->escape_string($value) . "'";
}