You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
value = value.Replace("{", "\\{").Replace("}", "\\}").Replace("\\", "\\\\");
This is wrong.
First, you escape { with \{, then you escape \ with \\, effectively escaping { with \\{ ...
This effectively transforms update [#tSVE] set [SVE_Content].modify('insert attribute data-uid {sql:column("OBJ_UID")} into (/svg/*)[1]') where([SVE_Content].exist('/svg/node()[@data-uid]') = 0) and not [OBJ_UID] is null;
into update [#tSVE] set [SVE_Content].modify('insert attribute data-uid \sql:column("OBJ_UID")\ into (/svg/*)[1]') where([SVE_Content].exist('/svg/node()[@data-uid]') = 0) and not [OBJ_UID] is null;
On line 89 of RtfBuilder.cs, you do the following:
value = value.Replace("{", "\\{").Replace("}", "\\}").Replace("\\", "\\\\");
This is wrong.
First, you escape
{
with\{
, then you escape\
with\\
, effectively escaping{
with\\{
...This effectively transforms
update [#tSVE] set [SVE_Content].modify('insert attribute data-uid {sql:column("OBJ_UID")} into (/svg/*)[1]') where([SVE_Content].exist('/svg/node()[@data-uid]') = 0) and not [OBJ_UID] is null;
into
update [#tSVE] set [SVE_Content].modify('insert attribute data-uid \sql:column("OBJ_UID")\ into (/svg/*)[1]') where([SVE_Content].exist('/svg/node()[@data-uid]') = 0) and not [OBJ_UID] is null;
note the
\sql:column
instead of{sql:column
You need to first escape \ with \, then espace { and }.
ststeiger/ExpressProfiler@1b1b0da
The text was updated successfully, but these errors were encountered: