mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user