pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: pgsql-odbc@lists.postgresql.org
Subject: Re: PostgreSQL) How to use Bind Variable with ODBC Driver V10?
Date: Tue, 13 Feb 2018 19:07:51 +0100
Message-ID: <610cd003-3c78-82dc-a21e-0652ef8307d1@ladisch.de> (raw)
In-Reply-To: <1518497790.25902.197.jh_park@warevalley.com>
References: <1518497790.25902.197.jh_park@warevalley.com>

박재현[기술연구소] 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




view thread (2+ messages)

Message-ID: <610cd003-3c78-82dc-a21e-0652ef8307d1@ladisch.de>
Permalink:  ../610cd003-3c78-82dc-a21e-0652ef8307d1@ladisch.de/
Also on:    postgresql.org/message-id/610cd003-3c78-82dc-a21e-0652ef8307d1@ladisch.de

 · 

reply

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: clemens@ladisch.de
  Subject: Re: PostgreSQL) How to use Bind Variable with ODBC Driver V10?
  In-Reply-To: <610cd003-3c78-82dc-a21e-0652ef8307d1@ladisch.de>
  References: <1518497790.25902.197.jh_park@warevalley.com> <610cd003-3c78-82dc-a21e-0652ef8307d1@ladisch.de>

* 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