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 C2ECED1C952 for ; Sun, 14 Mar 2004 17:30:08 +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 23370-01 for ; Sun, 14 Mar 2004 13:30:13 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 7CC22D1BA35 for ; Sun, 14 Mar 2004 13:30:06 -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 i2EHU9Ti023186; Sun, 14 Mar 2004 12:30:09 -0500 (EST) To: "Gary Doades" Cc: pgsql-odbc@postgresql.org Subject: Re: ODBC int2 parameters to pg function In-reply-to: <40542DDC.31043.304B562@localhost> References: <08eu40du2j0hjmc1k36a3k5m73moqm34n9@4ax.com> <40542DDC.31043.304B562@localhost> Comments: In-reply-to "Gary Doades" message dated "Sun, 14 Mar 2004 10:03:08 +0000" Date: Sun, 14 Mar 2004 12:30:09 -0500 Message-ID: <23185.1079285409@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/52 X-Sequence-Number: 3854 "Gary Doades" writes: > I can cast inside the function, this is my current solution. Given that > there is no implicit downcast wouldn't the best solution be to get the > ODBC driver do the cast on the function call? I think that would likely fix this example at the cost of breaking many others. Exactly what conditions would you have the ODBC driver cast to int2 under? regards, tom lane