Skip to content

Question marks inside of strings cause RawSQL to be sad #1371

@parsonsmatt

Description

@parsonsmatt

Suppose you're in a dark room and you're not sure who you're interacting with

[sqlQQ| SELECT 'hello world?' |]

This gives a FormatError because we're trying to split on the ?, even though the ? is not a parameter to substitute syntactically, but a character in the string.

We can work around this by providing the value as a query parameter:

[sqlQQ| SELECT #{PersistText "hello world?"} |]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions