patch #3101490 Default function for TIMESTAMP
This commit is contained in:
@@ -7,6 +7,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
|||||||
|
|
||||||
3.3.9.0 (not yet released)
|
3.3.9.0 (not yet released)
|
||||||
- bug [doc] Fix references to MySQL doc
|
- bug [doc] Fix references to MySQL doc
|
||||||
|
- patch #3101490 Default function for TIMESTAMP, thanks to jirand - jirand
|
||||||
|
|
||||||
3.3.8.0 (2010-10-25)
|
3.3.8.0 (2010-10-25)
|
||||||
- bug #3059311 [import] BIGINT field type added to table analysis
|
- bug #3059311 [import] BIGINT field type added to table analysis
|
||||||
|
@@ -532,6 +532,7 @@ foreach ($rows as $row_id => $vrow) {
|
|||||||
|
|
||||||
if ($field['True_Type'] == 'timestamp'
|
if ($field['True_Type'] == 'timestamp'
|
||||||
&& empty($field['Default'])
|
&& empty($field['Default'])
|
||||||
|
&& empty($data)
|
||||||
&& ! isset($analyzed_sql[0]['create_table_fields'][$field['Field']]['on_update_current_timestamp'])) {
|
&& ! isset($analyzed_sql[0]['create_table_fields'][$field['Field']]['on_update_current_timestamp'])) {
|
||||||
$default_function = $cfg['DefaultFunctions']['first_timestamp'];
|
$default_function = $cfg['DefaultFunctions']['first_timestamp'];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user