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
Christian Zink created an issue — 4th October 2013, 11:47:55:
Similar to Issue NH-1992 the BasicFormatter throws an exception when Formatting a string like:
UPDATE Table Set Column = @p0; @p0 ='Some data with an embedded quote in parentheses and signal word ('UPDATE') like this: (don't update)'
Instead of just fixing this specific issue, might it be possible to make the formatter or it's callers more robust. I would prefer an unformatted sql to an exception.
Full code:
newBasicFormatter().Format(@"UPDATE Table Set Column = @p0; @p0 = 'Some data with an embedded quote in parentheses and signal word ('UPDATE') like this: (don't update)'");