Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1elf1Z-00061f-Dn for pgsql-odbc@arkaria.postgresql.org; Tue, 13 Feb 2018 18:09:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elf1Y-0000v9-73 for pgsql-odbc@arkaria.postgresql.org; Tue, 13 Feb 2018 18:09:48 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1elf1Y-0000v0-1c for pgsql-odbc@lists.postgresql.org; Tue, 13 Feb 2018 18:09:48 +0000 Received: from webclient5.webclient5.de ([136.243.32.184]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1elf1V-00037N-5x for pgsql-odbc@lists.postgresql.org; Tue, 13 Feb 2018 18:09:47 +0000 Received: from olorin.ladisch.de (x2f7faf6.dyn.telefonica.de [2.247.250.246]) by webclient5.webclient5.de (Postfix) with ESMTPSA id F264E5583321 for ; Tue, 13 Feb 2018 19:09:42 +0100 (CET) Subject: Re: PostgreSQL) How to use Bind Variable with ODBC Driver V10? To: pgsql-odbc@lists.postgresql.org References: <1518497790.25902.197.jh_park@warevalley.com> From: Clemens Ladisch Message-ID: <610cd003-3c78-82dc-a21e-0652ef8307d1@ladisch.de> Date: Tue, 13 Feb 2018 19:07:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1518497790.25902.197.jh_park@warevalley.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.99.3 at webclient5 X-Virus-Status: Clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 박재현[기술연구소] wrote: > The product that I am developing uses the SQLDescribeParam() function > before the query SQLExec() when using Bind Variable. The behaviour of the driver for this case is affected by the configuration settings "Parse Statement" and "Server side prepare". What are their values? Are they different in the old and new data sources? Does it help if you change one or both of them? > select * from pg_class where relname = $ 1; In theory, the ODBC API allows only ? as parameter marker; please use that. (The driver automatically changes ? to $N before sending the statement to the server.) Regards, Clemens