pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Glenn B. Lawler <gblawler@incodesystems.com>
To: PostgreSQL ODBC List <pgsql-odbc@postgresql.org>
Subject: DescribParam
Date: Wed, 7 Jun 2006 14:03:56 -0500
Message-ID: <01C68A3B.381631C0.gblawler@incodesystems.com> (raw)

When I call SQLDescribeParam using PostgreSQL ODBC Driver psqlodbc-08_02_0002
SQL_ERROR is the return code.

What I am trying to do with this call is determine the buffer size needed to allocate a buffer
so I can call SQLBindParameter with a big enough buffer.

I have tried defaulting this to a number > 255, but this causes some other drivers, like
MS Access to choke.

MS SQL Server and others return the correct parameter size.

My only thought was to provide an override for this in my library to force the parameter
size when the driver does not return it.

Does anyone have a better workaround for this?

Glenn Lawler
www.incodesystems.com




view thread (7+ messages)  latest in thread

Message-ID: <01C68A3B.381631C0.gblawler@incodesystems.com>
Permalink:  ../01C68A3B.381631C0.gblawler@incodesystems.com/
Also on:    postgresql.org/message-id/01C68A3B.381631C0.gblawler@incodesystems.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: gblawler@incodesystems.com
  Subject: Re: DescribParam
  In-Reply-To: <01C68A3B.381631C0.gblawler@incodesystems.com>
  References: <01C68A3B.381631C0.gblawler@incodesystems.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