mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Allow applying CURRENT_TIMESTAMP to DATETIME columns. See http://www.heidisql.com/forum.php?t=16715
This commit is contained in:
@ -1291,7 +1291,9 @@ begin
|
||||
|
||||
// Disable non working default options per data type
|
||||
// But leave checked option enabled, regardless of if that is a valid default option or not
|
||||
FRadioCurTS.Enabled := FRadioCurTS.Checked or (FTableColumn.DataType.Index = dtTimestamp);
|
||||
FRadioCurTS.Enabled := FRadioCurTS.Checked
|
||||
or (FTableColumn.DataType.Index = dtTimestamp)
|
||||
or ((FTableColumn.Connection.ServerVersionInt >= 50605) and (FTableColumn.DataType.Index = dtDateTime));
|
||||
FCheckCurTS.Enabled := FCheckCurTS.Checked or FRadioCurTS.Enabled;
|
||||
FRadioAutoInc.Enabled := FRadioAutoInc.Checked or (FTableColumn.DataType.Category = dtcInteger);
|
||||
|
||||
|
Reference in New Issue
Block a user