Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwTAH-0007cG-5H for pgsql-odbc@arkaria.postgresql.org; Wed, 20 Feb 2019 14:48:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gwTAF-0005uE-HK for pgsql-odbc@arkaria.postgresql.org; Wed, 20 Feb 2019 14:47:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwTAF-0005u5-BX for pgsql-odbc@lists.postgresql.org; Wed, 20 Feb 2019 14:47:59 +0000 Received: from www.garault.org ([195.154.200.187] helo=mail.garault.org) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gwTAC-0000UC-Qu for pgsql-odbc@postgresql.org; Wed, 20 Feb 2019 14:47:58 +0000 Received: by mail.garault.org (Postfix, from userid 33) id 75CC1140064; Wed, 20 Feb 2019 15:47:25 +0100 (CET) To: Pierre Couderc Subject: Re: problem with _ character X-PHP-Originating-Script: 0:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Date: Wed, 20 Feb 2019 15:47:25 +0100 From: Christophe Garault Cc: pgsql-odbc@postgresql.org In-Reply-To: <9f7bc2b3-83df-e2c5-cdd9-3164afdddfb6@couderc.eu> References: <9f7bc2b3-83df-e2c5-cdd9-3164afdddfb6@couderc.eu> Message-ID: X-Sender: christophe@garault.org User-Agent: Roundcube Webmail/1.2.3 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 =C3=A9crit=C2=A0: > Hello, >=20 > I am using ANSI odbc driver (11.0) on a W10=C2=A0 with a utf8 DB trying t= o : >=20 > SELECT * FROM table WHERE (name =3D ?); >=20 > with a name including a '_' character : '1170332_381-P364' >=20 > In the postgresql server logs, I see that it has been replaced with > '1170332[_]381-P364' and my query fails. >=20 > How should I do ? >=20 > Thanks. >=20 > PC