Skip to content

NH-3549 - BasicFormatter throws exceptions for certain types of data containing "signal words" #1319

@nhibernate-bot

Description

@nhibernate-bot

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:

new BasicFormatter().Format(@"UPDATE Table Set Column = @p0; @p0 = 'Some data with an embedded quote in parentheses and signal word ('UPDATE') like this: (don't update)'");

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions