1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-17 20:01:25 +02:00

Preserve original timestamp value in multiple update (bug #3312614)

This commit is contained in:
Jakub Vrana
2011-06-08 12:48:39 +02:00
parent 2140f09b68
commit c0c21d4d12
3 changed files with 3 additions and 2 deletions

View File

@@ -722,7 +722,7 @@ function process_input($field) {
return null;
}
if ($function == "orig") {
return false;
return ($field["on_update"] == "CURRENT_TIMESTAMP" ? idf_escape($field["field"]) : false);
}
if ($function == "NULL") {
return "NULL";