Merge remote-tracking branch 'origin/QA_4_0' into QA_4_0

This commit is contained in:
Weblate 2013-09-13 13:55:59 +02:00
commit edb8cd6f62
2 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,7 @@ phpMyAdmin - ChangeLog
- bug #4080 Overwrite existing file not obeyed
- bug #3929 Database-specific privileges are not copied when cloning user
- bug #3997 Error handling in case MySQL extension is missing
- bug #4089 Moving Columns will alter column definition
4.0.6.0 (2013-09-05)
- bug #4036 Call to undefined function mb_detect_encoding (clarify the doc)

View File

@ -2458,7 +2458,9 @@ function PMA_moveColumns($db, $table)
unset($data['Extra']);
}
$current_timestamp = false;
if ($data['Type'] == 'timestamp' && $data['Default'] == 'CURRENT_TIMESTAMP') {
if (($data['Type'] == 'timestamp' || $data['Type'] == 'datetime')
&& $data['Default'] == 'CURRENT_TIMESTAMP'
) {
$current_timestamp = true;
}
$default_type
@ -2466,7 +2468,7 @@ function PMA_moveColumns($db, $table)
? 'NULL'
: ($current_timestamp
? 'CURRENT_TIMESTAMP'
: ($data['Default'] == ''
: ($data['Default'] === null
? 'NONE'
: 'USER_DEFINED'));