From c1b1a5f52ea02e0b336cb79e61a34fc0c8e0b970 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sat, 14 Sep 2013 15:27:44 +0000 Subject: [PATCH] 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. --- source/dbconnection.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index 8e45ee71..64b3cbba 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -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;