From: Christophe Garault <christophe@garault.org>
To: Pierre Couderc <pierre@couderc.eu>
Cc: pgsql-odbc@postgresql.org
Subject: Re: problem with _ character
Date: Wed, 20 Feb 2019 15:47:25 +0100
Message-ID: <d941733f519cdd4ea13a78ff509cbc98@garault.org> (raw)
In-Reply-To: <9f7bc2b3-83df-e2c5-cdd9-3164afdddfb6@couderc.eu>
References: <9f7bc2b3-83df-e2c5-cdd9-3164afdddfb6@couderc.eu>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: christophe@garault.org, pierre@couderc.eu
Subject: Re: problem with _ character
In-Reply-To: <d941733f519cdd4ea13a78ff509cbc98@garault.org>
References: <9f7bc2b3-83df-e2c5-cdd9-3164afdddfb6@couderc.eu> <d941733f519cdd4ea13a78ff509cbc98@garault.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox