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:
Ansgar Becker
2010-01-07 23:04:55 +00:00
parent 3610f0a73b
commit c2883e0f3d

View File

@ -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';