mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix detection of column types with DEFAULT CURRENT_TIMESTAMP(123). See https://www.heidisql.com/forum.php?t=17585
This commit is contained in:
@@ -4969,9 +4969,9 @@ begin
|
||||
if rxCol.Match[3] <> '' then
|
||||
Col.DefaultType := cdtNullUpdateTS;
|
||||
Delete(ColSpec, 1, rxCol.MatchLen[0]);
|
||||
end else if rxCol.Match[1] = 'CURRENT_TIMESTAMP' then begin
|
||||
end else if StartsText('CURRENT_TIMESTAMP', rxCol.Match[1]) then begin
|
||||
Col.DefaultType := cdtCurTS;
|
||||
Col.DefaultText := 'CURRENT_TIMESTAMP';
|
||||
Col.DefaultText := rxCol.Match[1];
|
||||
if rxCol.Match[3] <> '' then
|
||||
Col.DefaultType := cdtCurTSUpdateTS;
|
||||
Delete(ColSpec, 1, rxCol.MatchLen[0]);
|
||||
|
||||
Reference in New Issue
Block a user