X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 537B4D1B909 for ; Sun, 14 Mar 2004 18:24:51 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 32090-04 for ; Sun, 14 Mar 2004 14:24:56 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 4949DD1B91C for ; Sun, 14 Mar 2004 14:24:49 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i2EIOqlF023592; Sun, 14 Mar 2004 13:24:52 -0500 (EST) To: "Gary Doades" Cc: pgsql-odbc@postgresql.org Subject: Re: ODBC int2 parameters to pg function In-reply-to: <4054A1FF.5016.4CA631D@localhost> References: <40542DDC.31043.304B562@localhost> <4054A1FF.5016.4CA631D@localhost> Comments: In-reply-to "Gary Doades" message dated "Sun, 14 Mar 2004 18:18:39 +0000" Date: Sun, 14 Mar 2004 13:24:51 -0500 Message-ID: <23591.1079288691@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/54 X-Sequence-Number: 3856 "Gary Doades" 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