Re: problem with _ character

From: Christophe Garault <christophe(at)garault(dot)org>
To: Pierre Couderc <pierre(at)couderc(dot)eu>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: problem with _ character
Date: 2019-02-20 14:47:25
Message-ID: d941733f519cdd4ea13a78ff509cbc98@garault.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hi Pierre,

Place your identifiers between double quotes:
https://www.postgresql.org/docs/9.1/sql-syntax-lexical.html

hth.

Le 20/02/2019 11:42, Pierre Couderc a écrit :
> Hello,
>
> I am using ANSI odbc driver (11.0) on a W10  with a utf8 DB trying to :
>
> SELECT * FROM table WHERE (name = ?);
>
> with a name including a '_' character : '1170332_381-P364'
>
> In the postgresql server logs, I see that it has been replaced with
> '1170332[_]381-P364' and my query fails.
>
> How should I do ?
>
> Thanks.
>
> PC

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Pierre Couderc 2019-02-20 16:14:23 Re: problem with _ character
Previous Message Pierre Couderc 2019-02-20 12:53:23 Re: problem with _ character