Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 5129B1F633FC for ; Thu, 12 Apr 2012 10:24:31 -0300 (ADT) Received: from sd.tpf.co.jp ([210.161.239.34]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1SIK0g-0006Rr-QI for pgsql-odbc@postgresql.org; Thu, 12 Apr 2012 13:24:30 +0000 Received: (qmail 27833 invoked by uid 512); 12 Apr 2012 13:24:10 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 12 Apr 2012 13:24:10 -0000 Received: from unknown (HELO ?192.168.24.54?) (183.76.20.202) by sd.tpf.co.jp with SMTP; 12 Apr 2012 13:24:10 -0000 Message-ID: <4F86D779.8050100@tpf.co.jp> Date: Thu, 12 Apr 2012 22:24:09 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: Barry Bell CC: "pgsql-odbc@postgresql.org" Subject: Re: Passing numeric Bind variables to ODBC driver convers to "Double precision" References: <542B943ED5D72E408BF9CBBD61ABC94D52D10C5C@VA3DIAXVSC31.RED001.local> In-Reply-To: <542B943ED5D72E408BF9CBBD61ABC94D52D10C5C@VA3DIAXVSC31.RED001.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/11 X-Sequence-Number: 10825 Hi Barry, (2012/04/09 23:35), Barry Bell wrote: > > Using the lastest of ODBC ANSI driver for windows 32bit ver 9.00.03 Calling from MS VFP 9.0 > > public nvar as interger > nvar=1 > running the following sql: > "( select function_pkg(?nvar) " > > The bind variable nvar will show in postgres as "Double Precision" format instead of integer(or numeric) > > Is there a setting on the ODBC driver for incoming vairables? Are you turning on the Server side prepare option? regards, Hiroshi Inoue