pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feed PostgreSQL) How to use Bind Variable with ODBC Driver V10?
2+ messages / 2 participants
[nested] [flat]
* PostgreSQL) How to use Bind Variable with ODBC Driver V10?
@ 2018-02-13 04:56 박재현[기술연구소] <jh_park@warevalley.com>
2018-02-13 18:07 ` Re: PostgreSQL) How to use Bind Variable with ODBC Driver V10? Clemens Ladisch <clemens@ladisch.de>
0 siblings, 1 reply; 2+ messages in thread
From: 박재현[기술연구소] @ 2018-02-13 04:56 UTC (permalink / raw)
To: pgsql-odbc; +Cc: orange@warevalley.com
Hello.
I hope my email finds you well.
I am developing query tool for PostgreSQL using ODBC Driver (recent release ODBC v10).
The product that I am developing uses the SQLDescribeParam() function before the query SQLExec() when using Bind Variable.
SQLDescribeParam () function normally works on 'psqlodbc_09_06_0500-x86', when using Bind Variable.
However, in 'psqlodbc_10_00_0000-x86' and later versions, error occurs and Bind Variable cannot be used.
Normal queries that do not use the SQLDescribeParam () function work fine.
For your reference, below is the example of the query that use Bind Variable: select * from pg_class where relname = $ 1;
Should I use Bind Variable from ODBC v10 instead of SQLDescribeParam () function?
If possible please provide me with a detailed guide on how to use Bind Variable with ODBC Driver.
Thank you in advance.
Best Regards,
박 재 현 Jae Hyun Park
전임연구원 / (주)웨어밸리 기술연구소
(121-795) 서울시 마포구 월드컵북로 396 (상암동)
누리꿈스퀘어 비지니스타워 22층
Tel: 02-2132-5522
Fax:02-743-4912
Mobile: 010-3836-9574
E-mail: jh_park@warevalley.com
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: PostgreSQL) How to use Bind Variable with ODBC Driver V10?
2018-02-13 04:56 PostgreSQL) How to use Bind Variable with ODBC Driver V10? 박재현[기술연구소] <jh_park@warevalley.com>
@ 2018-02-13 18:07 ` Clemens Ladisch <clemens@ladisch.de>
0 siblings, 0 replies; 2+ messages in thread
From: Clemens Ladisch @ 2018-02-13 18:07 UTC (permalink / raw)
To: pgsql-odbc@lists.postgresql.org
박재현[기술연구소] 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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-02-13 18:07 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-02-13 04:56 PostgreSQL) How to use Bind Variable with ODBC Driver V10? 박재현[기술연구소] <jh_park@warevalley.com>
2018-02-13 18:07 ` Clemens Ladisch <clemens@ladisch.de>
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