From: Patrick Hatcher <pathat@attbi.com>
To: pgsql-odbc@postgresql.org
Subject: Currval not working
Date: Fri, 30 May 2003 14:03:03 -0700
Message-ID: <000a01c326ee$dcd67520$02120a0a@D7MKWD21> (raw)
PG: 7.3.3
Driver version: 7.03.01
I'm using VB as a front-end to end data into PG database. When I try to pull the current value of my serial field using this code:
rs.open "select currval('public.hodiv_hodiv_id_seq');",CN
I get this error message:
ERROR: hodiv_hodiv_id_seq.currval is not yet defined in this session.
However, if use nextval it works fine.
rs.open "select nextval('public.hodiv_hodiv_id_seq');",CN
Any ideas?
TIA
Patrick
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: pathat@attbi.com
Subject: Re: Currval not working
In-Reply-To: <000a01c326ee$dcd67520$02120a0a@D7MKWD21>
References: <000a01c326ee$dcd67520$02120a0a@D7MKWD21>
* 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