mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Fix issue #1236 Wrong DEFAULT value detection in table editor
This commit is contained in:
@ -345,12 +345,15 @@ begin
|
||||
if UpperCase(Copy(ColSpec, 1, 8)) = 'NOT NULL' then begin
|
||||
Props[3] := BoolToStr(False);
|
||||
Delete(ColSpec, 1, 9);
|
||||
end else
|
||||
ColDefaultType := cdtText;
|
||||
ColDefaultText := '';
|
||||
end else begin
|
||||
Props[3] := BoolToStr(True);
|
||||
ColDefaultType := cdtNull;
|
||||
ColDefaultText := 'NULL';
|
||||
end;
|
||||
|
||||
// Default value
|
||||
ColDefaultType := cdtNull;
|
||||
ColDefaultText := 'NULL';
|
||||
if UpperCase(Copy(ColSpec, 1, 14)) = 'AUTO_INCREMENT' then begin
|
||||
ColDefaultType := cdtAutoInc;
|
||||
ColDefaultText := 'AUTO_INCREMENT';
|
||||
|
Reference in New Issue
Block a user