Re: ODBC int2 parameters to pg function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Gary Doades" <gpd(at)gpdnet(dot)co(dot)uk>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: ODBC int2 parameters to pg function
Date: 2004-03-14 18:24:51
Message-ID: 23591.1079288691@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

"Gary Doades" <gpd(at)gpdnet(dot)co(dot)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

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Gary Doades 2004-03-14 18:32:53 Re: ODBC int2 parameters to pg function
Previous Message Gary Doades 2004-03-14 18:18:39 Re: ODBC int2 parameters to pg function