From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Andreas <maps.on@gmx.net>
Cc: pgsql-odbc@postgresql.org
Subject: Re: ADO and sequences
Date: Thu, 24 Aug 2006 09:07:19 +0900
Message-ID: <44ECEDB7.6010607@tpf.co.jp> (raw)
In-Reply-To: <44ECB839.3080903@gmx.net>
References: <44EB410A.10809@gmx.net>
<44EC1689.8080907@tpf.co.jp>
<44ECB839.3080903@gmx.net>
Andreas wrote:
>
>
> Hiroshi Inoue schrieb:
>> Andreas wrote:
>>> rs.AddNew
>>> lngID = rs!id
>> Try to get rs!id here is meaningless but
>>> rs!field1 = value1
>>> rs!field2 = value2
>>> ....
>>> rs.update
>> you can get rs!id here maybe.
>> Am I misunderstanding your point ?
>>> rs.close
>
> I tried this before my initial mail.
> Even though in the table definition is
> id serial not null,
> primary key (id)
> I still get rs!id = NULL after rs.addnew as well as after rs.update
>
> Maybe your driver behaves differently to the still official 08.01.0200?
The driver doesn't support Updatable Cursors.
Please install the 8.2.0002 version from the site
http://pgfoundry.org/projects/psqlodbc/
and turn on the Updatable Cursors option.
After that you can also use the snapshot driver at
http://www.geocities.jp/inocchichichi/psqlodbc/index.html .
The registration is the same as the 8.2.0002 version and you
can simply replace the dll psqlodbc35w.dll.
Please note that you would be able to see the result after calling
update() not after Addnew().
regards,
Hiroshi Inoue
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, maps.on@gmx.net
Subject: Re: ADO and sequences
In-Reply-To: <44ECEDB7.6010607@tpf.co.jp>
References: <44EB410A.10809@gmx.net> <44EC1689.8080907@tpf.co.jp> <44ECB839.3080903@gmx.net> <44ECEDB7.6010607@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