On Friday, April 15, 2022, Sbob <sbob(at)quadratum-braccas(dot)com> wrote:
>
> I tried this : quote_ident ( 'Poker 5 card Hold'Em')
>
> but it still error's out
>
>
> I also tried : quote_literal('Poker 5 card Hold\'Em')
>
> but it also errors out:
>
>
You have the right idea you need to escape it. But guessing isn’t a good
method to figure out how.
https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS
You can’t use quote_* on a literal if you do not express the literal
correctly.
David J.