pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adam Biser <adambiser@gmail.com>
To: pgsql-odbc@postgresql.org
Subject: Parameters.Refresh error.
Date: Tue, 03 Jan 2006 13:40:45 -0600
Message-ID: <43BAD33D.1000302@gmail.com> (raw)

I am trying to get a VB6 program to work on a PostgreSQL ANSI DSN.  This 
program runs fine using an AS/400 DSN and uses prepared, parameterized 
SQL statements via an ADODB.Command object for Inserts and Updates.  An 
example statement is "Insert into CHAPTER (CHAPTERID, CHAPTERDESC) 
values (?,?)".

My ConnectionString for my PostgreSQL DSN is simply "DSN=DSN Name" and I 
connect successfuly.  However, when I use .Parameters.Refresh I get the 
following error:

  "Provider cannot derive parameter information and SetParameterInfo has 
not been called."

When I try "Provider=PostgreSQL.1;Data Source=localhost;Location=DB 
Name;", I can also connect, but .Parameters.Count simply returns 0 
instead of the appropriate amount.

If I use a non-parameterized SQL statement, everything works great, but 
this is not the desired approach.

Has anyone experienced something like this?  Am I posting in the right 
place?

I'm running PostgreSQL 8.1.1 as a service on Windows XP Pro SP2.

Thanks,
Adam





view thread (24+ messages)  latest in thread

Message-ID: <43BAD33D.1000302@gmail.com>
Permalink:  ../43BAD33D.1000302@gmail.com/
Also on:    postgresql.org/message-id/43BAD33D.1000302@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: adambiser@gmail.com
  Subject: Re: Parameters.Refresh error.
  In-Reply-To: <43BAD33D.1000302@gmail.com>
  References: <43BAD33D.1000302@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