mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Don't display quotes around default values for numeric columns, so it's more clear what the server will insert by default.
This commit is contained in:
@ -996,7 +996,12 @@ begin
|
||||
6: begin
|
||||
case Col.DefaultType of
|
||||
cdtNothing: CellText := 'No default';
|
||||
cdtText, cdtTextUpdateTS: CellText := esc(Col.DefaultText);
|
||||
cdtText, cdtTextUpdateTS: begin
|
||||
if Col.DataType.Category = dtcInteger then
|
||||
CellText := Col.DefaultText
|
||||
else
|
||||
CellText := esc(Col.DefaultText);
|
||||
end;
|
||||
cdtNull, cdtNullUpdateTS: CellText := 'NULL';
|
||||
cdtCurTS, cdtCurTSUpdateTS: CellText := 'CURRENT_TIMESTAMP';
|
||||
cdtAutoInc: CellText := 'AUTO_INCREMENT';
|
||||
|
Reference in New Issue
Block a user