diff --git a/ChangeLog b/ChangeLog index 1448f4be1..3a544b4a3 100755 --- a/ChangeLog +++ b/ChangeLog @@ -6,9 +6,12 @@ $Id$ $Source$ 2001-11-19 Loïc Chapeaux + * tbl_change.php3, lines 208-212: always use the existing timestamp + value in the update statement else MySQL auto-update it to the + current timestamp. * main.php3: removed the "MySQL" column if no MySQL feature is allowed. - * Documentation.html, lines 958-966: added a faq entry about the invalid - "$cfgPmaAbsoluteUri" related problems. + * Documentation.html, lines 958-966: added a faq entry about the + invalid "$cfgPmaAbsoluteUri" related problems. 2001-11-18 Loïc Chapeaux * db_details.php3, lines 178-492; tbl_properties.php3, lines 670-685: the diff --git a/tbl_change.php3 b/tbl_change.php3 index 6f016ef8a..8cc8cec71 100755 --- a/tbl_change.php3 +++ b/tbl_change.php3 @@ -205,7 +205,11 @@ for ($i = 0; $i < $fields_cnt; $i++) { } // end if $special_chars = htmlspecialchars($row[$field]); $data = $row[$field]; - $backup_field = ''; + // loic1: if a timestamp field value is not included in an update + // statement MySQL auto-update it to the current timestamp + $backup_field = ($row_table_def['True_Type'] == 'timestamp') + ? '' + : ''; } else { // loic1: display default values if (!isset($row_table_def['Default'])) {