From: jakubvrana Date: Wed, 25 Jul 2007 14:40:35 +0000 (+0000) Subject: Allow CURRENT_TIMESTAMP for timestamp X-Git-Tag: v3.0.0~1264 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=f099d9499b92421fcff4a47e6d9b75ab8e17ba2a;p=adminer.git Allow CURRENT_TIMESTAMP for timestamp git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@247 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/editing.inc.php b/editing.inc.php index bae3ee1e..61413256 100644 --- a/editing.inc.php +++ b/editing.inc.php @@ -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) . "'"; }