From f099d9499b92421fcff4a47e6d9b75ab8e17ba2a Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Wed, 25 Jul 2007 14:40:35 +0000 Subject: [PATCH] Allow CURRENT_TIMESTAMP for timestamp git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@247 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- editing.inc.php | 2 ++ 1 file changed, 2 insertions(+) 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) . "'"; }