always use the existing timestamp value in the update statement else MySQL auto-update it to the current timestamp
This commit is contained in:
@@ -6,9 +6,12 @@ $Id$
|
|||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
2001-11-19 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
2001-11-19 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
|
* 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.
|
* main.php3: removed the "MySQL" column if no MySQL feature is allowed.
|
||||||
* Documentation.html, lines 958-966: added a faq entry about the invalid
|
* Documentation.html, lines 958-966: added a faq entry about the
|
||||||
"$cfgPmaAbsoluteUri" related problems.
|
invalid "$cfgPmaAbsoluteUri" related problems.
|
||||||
|
|
||||||
2001-11-18 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
2001-11-18 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
* db_details.php3, lines 178-492; tbl_properties.php3, lines 670-685: the
|
* db_details.php3, lines 178-492; tbl_properties.php3, lines 670-685: the
|
||||||
|
@@ -205,7 +205,11 @@ for ($i = 0; $i < $fields_cnt; $i++) {
|
|||||||
} // end if
|
} // end if
|
||||||
$special_chars = htmlspecialchars($row[$field]);
|
$special_chars = htmlspecialchars($row[$field]);
|
||||||
$data = $row[$field];
|
$data = $row[$field];
|
||||||
$backup_field = '<input type="hidden" name="fields_prev[' . urlencode($field) . ']" value="' . urlencode($data) . '" />';
|
// 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')
|
||||||
|
? ''
|
||||||
|
: '<input type="hidden" name="fields_prev[' . urlencode($field) . ']" value="' . urlencode($data) . '" />';
|
||||||
} else {
|
} else {
|
||||||
// loic1: display default values
|
// loic1: display default values
|
||||||
if (!isset($row_table_def['Default'])) {
|
if (!isset($row_table_def['Default'])) {
|
||||||
|
Reference in New Issue
Block a user