bug #3579 NOW() function incorrectly selected (partial regression)

This commit is contained in:
Marc Delisle 2013-05-29 17:23:35 -04:00
parent 36ad9371ee
commit d448add28e
2 changed files with 2 additions and 5 deletions

View File

@ -9,6 +9,7 @@ phpMyAdmin - ChangeLog
- bug #3912 Exporting row selection, resulted by ORDER BY query
- bug #3957 Cookies must be enabled past this point
- bug #3956 "Browse foreign values" search filter / page selector not working
- bug #3579 NOW() function incorrectly selected (partial regression)
4.0.2.0 (2013-05-24)
- bug #3902 Cannot browse when table name contains keyword "call"

View File

@ -3743,6 +3743,7 @@ class PMA_Util
// and the column does not have the
// ON UPDATE DEFAULT TIMESTAMP attribute.
if (($field['True_Type'] == 'timestamp')
&& $field['first_timestamp']
&& empty($field['Default'])
&& empty($data)
&& ! isset($analyzed_sql_field_array['on_update_current_timestamp'])
@ -3751,11 +3752,6 @@ class PMA_Util
$default_function = $cfg['DefaultFunctions']['first_timestamp'];
}
// Default for first timestamp field
if ($field['first_timestamp']) {
$default_function = $cfg['DefaultFunctions']['first_timestamp'];
}
// For primary keys of type char(36) or varchar(36) UUID if the default
// function
// Only applies to insert mode, as it would silently trash data on updates.