From: John Lawler <postgresql.org@tgice.com>
To: pgsql-odbc@postgresql.org
Subject: SQLDescribeParam not defined: any workaround?
Date: Tue, 23 Aug 2005 14:51:50 -0500
Message-ID: <430B7E56.7060305@tgice.com> (raw)
From what I've read about the win32 (and perhaps all platforms)
Postgres ODBC driver, SQLDescribeParam is not implemented. I discovered
this while running some software that tries to use it. It got back the:
Driver does not support this function (SQLSTATE: IM001)
message, of course.
The reason my software was calling this function was to determine the
scale and data type of the parameters to a function before issuing a
prepared statement to that function.
Is anyone aware of a workaround via the existing (official) ODBC drivers
whereby I could interrogate the function I'm about to call to get more
detailed information about each parameter?
If not, what strategies do others employ to handle this? Right now, my
best shot is to just define my local buffers to 255 bytes or so and go
from there, but clearly that's not flexible or elegant.
Thanks,
jl
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: postgresql.org@tgice.com
Subject: Re: SQLDescribeParam not defined: any workaround?
In-Reply-To: <430B7E56.7060305@tgice.com>
References: <430B7E56.7060305@tgice.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