Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 6610F15A7DE2 for ; Fri, 13 Apr 2012 10:27:29 -0300 (ADT) Received: from sd.tpf.co.jp ([210.161.239.34]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1SIgX6-0006uj-6s for pgsql-odbc@postgresql.org; Fri, 13 Apr 2012 13:27:28 +0000 Received: (qmail 30151 invoked by uid 512); 13 Apr 2012 13:27:06 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 13 Apr 2012 13:27:06 -0000 Received: from unknown (HELO ?192.168.24.54?) (183.76.20.202) by sd.tpf.co.jp with SMTP; 13 Apr 2012 13:27:06 -0000 Message-ID: <4F8829A9.4000500@tpf.co.jp> Date: Fri, 13 Apr 2012 22:27:05 +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> <4F86D779.8050100@tpf.co.jp> <542B943ED5D72E408BF9CBBD61ABC94D52D11039@VA3DIAXVSC31.RED001.local> In-Reply-To: <542B943ED5D72E408BF9CBBD61ABC94D52D11039@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/13 X-Sequence-Number: 10827 (2012/04/13 2:12), Barry Bell wrote: > Thanks, "UseServerSidePrepare=1; does appear to fix this. (working for both numeric and integer) > > Next issue, > When calling a function in postgres, the postgres is returning a blank string (''). > This is showing as a blank longvarchar(memo,clob) instead of a varchar. > > Any ideas? Please try to turn off the Text as LongVarChar option. regards, Hiroshi Inoue