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 1gwPLA-0003PZ-MY for pgsql-odbc@arkaria.postgresql.org; Wed, 20 Feb 2019 10:43:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gwPL9-0007Ni-GJ for pgsql-odbc@arkaria.postgresql.org; Wed, 20 Feb 2019 10:42:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwPL9-0007GG-6Q for pgsql-odbc@lists.postgresql.org; Wed, 20 Feb 2019 10:42:59 +0000 Received: from smtp1-g21.free.fr ([212.27.42.1]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwPL5-0002pR-Lu for pgsql-odbc@postgresql.org; Wed, 20 Feb 2019 10:42:57 +0000 Received: from mail.tol.fr (unknown [78.234.252.95]) by smtp1-g21.free.fr (Postfix) with ESMTP id 73170B0055E for ; Wed, 20 Feb 2019 11:42:53 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.tol.fr (Postfix) with ESMTP id 2AF2A9780671 for ; Wed, 20 Feb 2019 11:42:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at sos.couderc.eu Received: from mail.tol.fr ([127.0.0.1]) by localhost (sos.couderc.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rgxKyVzNQeKu for ; Wed, 20 Feb 2019 11:42:51 +0100 (CET) Received: from [192.168.163.11] (unknown [192.168.163.254]) by mail.tol.fr (Postfix) with ESMTPSA id 304AC97802D9 for ; Wed, 20 Feb 2019 11:42:51 +0100 (CET) From: Pierre Couderc Subject: problem with _ character To: pgsql-odbc@postgresql.org Message-ID: <9f7bc2b3-83df-e2c5-cdd9-3164afdddfb6@couderc.eu> Date: Wed, 20 Feb 2019 11:42:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: fr-classic List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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