From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: Amanjit Gill <amanjit.gill@gmx.de>
Cc: pgsql-odbc@postgresql.org
Subject: Re: ODBC + Dynamic cursors
Date: Thu, 31 Jul 2003 09:00:45 +0900
Message-ID: <3F285C2D.373B1BED@tpf.co.jp> (raw)
References: <001101c356d6$066f66a0$0400a8c0@charite.de>
Amanjit Gill wrote:
>
> Hi, I have written a C++ ODBC wrapper that right now runs on
> Oracle,Access,SQL Server, Sybase.
> I am right now investigating PostgreSQL which we want to use instead of
> SQL Server.
>
> PostgreSQL Version: 7.33 (Cygwin/Windows XP) using ipc-daemon
> ODBC Version: 7.03.01.10
> OS: Windows XP Pro, SP1
>
> Synopsis:
> I basically open a connection to a db, create a statement,use a dynamic
> cursor
> via SQLSetConnectAttr (SQL_ATTR_CURSOR_TYPE, SQL_CURSOR_DYNAMIC),
Please set the SQL_ATTR_CURSOR_TYPE attribute for statement
handles not for connection handles. Also note that psqlodbc
driver doesn't support dynamic cursors. Please use keyset-driven
or static cursors instead.
[snip]
> Another question: are positionable updates and deletes (which means
> SQLSetPos) possible with
> PostgreSQL at present (as mentioned in
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/ht
> m/odch12pr_2.asp) ?
No. What the driver supports is to update/delete/insert/.. a row
(rows) in a rowset using SQLSetPos(.., .., SQL_UPDATE/DELETE/ADD, ..
Positioned update/delete means updat/deleting a row in a rowset
by executing a query such as UPDATE/DELETE ... WHERE CURRENT OF ....
Please note that the examples in the page you specified are
updat/deleting a row using SQLExecute.
regards,
Hiroshi Inoue
http://www.geocities.jp/inocchichichi/psqlodbc/
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: Inoue@tpf.co.jp, amanjit.gill@gmx.de
Subject: Re: ODBC + Dynamic cursors
In-Reply-To: <3F285C2D.373B1BED@tpf.co.jp>
References: <001101c356d6$066f66a0$0400a8c0@charite.de> <3F285C2D.373B1BED@tpf.co.jp>
* 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