pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Eric E <whalesuit@gmail.com>
To: pgsql-odbc@postgresql.org
Subject: Re: Problem getting sequences under 8.02.03.00 driver
Date: Tue, 10 Jul 2007 17:58:54 -0400
Message-ID: <4694011E.5050309@gmail.com> (raw)
In-Reply-To: <469382FC.6020707@gmx.net>
References: <4692C515.1050509@gmail.com>
	<469382FC.6020707@gmx.net>

Andreas wrote:

Many thanks for the reply and the suggestions, Andreas.

> Maybe it's because you define the resulting type as text?

I double-checked and the cast to text is inside the function call, so 
the result should be coming back as an integer.  Also, the field in the 
recordset is set up as an integer.

> I've installed latest ODBC V8.0.2.04.01 and there a similar query works.
> 
>    Dim objRstADO As ADODB.Recordset
> 
>    Set objRstADO = objConnADO.Execute("SELECT nextval('" & 
> strSequenceName & "')", , adLockReadOnly)
>    debug.print Nz(objRstADO(0), 0)
I guess I'll try 8.02.04.01
> 
> Is the Login-role in the connectionstring the same as you use in pgAdmin?
> Perhaps - ok, not very likely - is your ADO connection just not allowed 
> to see the sequence.
I thought it might be something like that.
> Depending on your function's error handler there could be a hidden error 
> condition and the function delivers the default value for numeric types 
> = 0.
> 
Possible, though it seems like there's no error being returned by the 
ADODB connection - I'll check that, too.

Thanks again,

EE



view thread (3+ messages)

Message-ID: <4694011E.5050309@gmail.com>
Permalink:  ../4694011E.5050309@gmail.com/
Also on:    postgresql.org/message-id/4694011E.5050309@gmail.com

 · 

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: whalesuit@gmail.com
  Subject: Re: Problem getting sequences under 8.02.03.00 driver
  In-Reply-To: <4694011E.5050309@gmail.com>
  References: <4692C515.1050509@gmail.com> <469382FC.6020707@gmx.net> <4694011E.5050309@gmail.com>

* 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