Re: ODBC int2 parameters to pg function - Mailing list pgsql-odbc

From Tom Lane
Subject Re: ODBC int2 parameters to pg function
Date
Msg-id 23591.1079288691@sss.pgh.pa.us
Whole thread Raw
In response to Re: ODBC int2 parameters to pg function  ("Gary Doades" <gpd@gpdnet.co.uk>)
Responses Re: ODBC int2 parameters to pg function
List pgsql-odbc
"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

pgsql-odbc by date:

Previous
From: "Gary Doades"
Date:
Subject: Re: ODBC int2 parameters to pg function
Next
From: "Gary Doades"
Date:
Subject: Re: ODBC int2 parameters to pg function