patch #3101490 Default function for TIMESTAMP

This commit is contained in:
jirand
2010-11-04 06:27:31 -04:00
committed by Marc Delisle
parent bbf5941c21
commit 81a338db80
2 changed files with 2 additions and 0 deletions

View File

@@ -532,6 +532,7 @@ foreach ($rows as $row_id => $vrow) {
if ($field['True_Type'] == 'timestamp'
&& empty($field['Default'])
&& empty($data)
&& ! isset($analyzed_sql[0]['create_table_fields'][$field['Field']]['on_update_current_timestamp'])) {
$default_function = $cfg['DefaultFunctions']['first_timestamp'];
}