From: Gary Doades <gpd@gpdnet.co.uk>
To: pgsql-odbc@postgresql.org
Subject: Re: ODBC int2 parameters to pg function
Date: Sun, 14 Mar 2004 18:32:53 -0000
Message-ID: <4054A555.1760.4D76A1B@localhost> (raw)
In-Reply-To: <23591.1079288691@sss.pgh.pa.us>
References: <4054A1FF.5016.4CA631D@localhost>
Thanks Tom,
I did actually put the parameter binding examples in my original post,
but as they are in .NET speak it may not have been obvious.
I guess I should try to get this on the "things to do with the ODBC"
driver list. I should be able to look at the code myself, but I will have to
remember how to speak C.
Thanks again,
Gary.
On 14 Mar 2004 at 13:24, Tom Lane wrote:
> "Gary Doades" <gpd@gpdnet.co.uk> writes:
> > AFAICS it is only int2 types that are not typecast. All other
> > datatypes (except string and int4 which don't need it) are typecast
> > explicitly by the driver before being passed to the server.
>
> I see. AFAIR you hadn't mentioned that you were declaring the parameter
> as smallint to ODBC. I tend to agree that a cast should be added in
> that case. It's not my code though ...
>
> regards, tom lane
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: gpd@gpdnet.co.uk
Subject: Re: ODBC int2 parameters to pg function
In-Reply-To: <4054A555.1760.4D76A1B@localhost>
References: <4054A1FF.5016.4CA631D@localhost> <4054A555.1760.4D76A1B@localhost>
* 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