Unescape default text value for a column when inserting a new grid row, so \r and \n and whatever does not get into a cell as a literal. Fixes issue #3283.

This commit is contained in:
Ansgar Becker
2013-09-14 15:27:44 +00:00
parent 5573d868f3
commit c1b1a5f52e

View File

@@ -4500,7 +4500,7 @@ begin
if Assigned(ColAttr) then begin
c.OldIsNull := ColAttr.DefaultType in [cdtNull, cdtNullUpdateTS, cdtAutoInc];
if ColAttr.DefaultType in [cdtText, cdtTextUpdateTS] then
c.OldText := ColAttr.DefaultText;
c.OldText := FConnection.UnescapeString(ColAttr.DefaultText);
end;
c.NewText := c.OldText;
c.NewIsFunction := c.OldIsFunction;