Hi,
the below is the example:
myStr := 'Testing string !';
fdQeury.SQL.Add('Update table Set password =' + QuotedStr(myStr));
fdQeury.ExecSQL;
I check the column value in the DB, and it becomes 'Testing string'. '!' is missing.
Another example, '&&&&&' will become '&&&&'.
I have to add the below codes in order to insert correctly.
fdQeury.ResourceOptions.MacroCreate := False;
fdQeury.ResourceOptions.MacroExpand := False;
Can anyone let me know:
1) If I set the MacroCreate and MacroExpand to false, will it cause other problem?
2) Is there any way to set them to false as default?
Thanks.
Connect with Us