mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Table editor: Better use NULL as a valid default value for a new blank INT column, rather than an empty string ('').
This commit is contained in:
@@ -678,7 +678,7 @@ begin
|
||||
Properties.Assign(DefProperties);
|
||||
end else begin
|
||||
idx := Columns.Count;
|
||||
Properties.CommaText := 'INT,10,'+BoolToStr(False)+','+BoolToStr(True)+',0,,';
|
||||
Properties.CommaText := 'INT,10,'+BoolToStr(False)+','+BoolToStr(True)+','+IntToStr(Integer(cdtNull))+'NULL,,';
|
||||
end;
|
||||
Columns.InsertObject(idx, 'Column '+IntToStr(idx+1), Properties);
|
||||
SelectNode(listColumns, idx);
|
||||
|
||||
Reference in New Issue
Block a user