Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 3B4A6102A4F0 for ; Mon, 9 Apr 2012 21:49:18 -0300 (ADT) Received: from [58.251.152.67] (helo=szxga04-in.huawei.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SHPGk-0005ew-V2 for pgsql-bugs@postgresql.org; Tue, 10 Apr 2012 00:49:17 +0000 Received: from huawei.com (szxga04-in [172.24.2.12]) by szxga04-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0M28007JXNLIML@szxga04-in.huawei.com> for pgsql-bugs@postgresql.org; Tue, 10 Apr 2012 08:48:54 +0800 (CST) Received: from szxrg01-dlp.huawei.com ([172.24.2.119]) by szxga04-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0M28009A8NLIPO@szxga04-in.huawei.com> for pgsql-bugs@postgresql.org; Tue, 10 Apr 2012 08:48:54 +0800 (CST) Received: from szxeml202-edg.china.huawei.com ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.1.9-GA) with ESMTP id AIF01056; Tue, 10 Apr 2012 08:48:53 +0800 Received: from SZXEML423-HUB.china.huawei.com (10.82.67.162) by szxeml202-edg.china.huawei.com (172.24.2.42) with Microsoft SMTP Server (TLS) id 14.1.323.3; Tue, 10 Apr 2012 08:48:49 +0800 Received: from blrprnc09ns (10.18.96.98) by szxeml423-hub.china.huawei.com (10.82.67.162) with Microsoft SMTP Server id 14.1.323.3; Tue, 10 Apr 2012 08:48:48 +0800 Date: Tue, 10 Apr 2012 06:18:47 +0530 From: Amit Kapila Subject: Re: BUG #6534: Passing numeric Bind variables to ODBC driver convers to "Double precision" In-reply-to: X-Originating-IP: [10.18.96.98] To: barry_bell@harte-hanks.com Cc: pgsql-bugs@postgresql.org Message-id: <002701cd16b3$b0d860a0$128921e0$%kapila@huawei.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Content-type: text/plain; charset=iso-8859-1 Content-language: en-us Content-transfer-encoding: quoted-printable Thread-index: Ac0WWTa/1H2E0iKMRVy0TDZZ3xyx4gAWifGA X-CFilter-Loop: Reflected References: X-Host-Lookup-Failed: Reverse DNS lookup failed for 58.251.152.67 (failed) X-Pg-Spam-Score: -1.1 (-) X-Archive-Number: 201204/53 X-Sequence-Number: 32804 In ODBC while binding variable using SQLBindParameter(..) API you might = be using SQL_DOUBLE or SQL_Numeric or some similar datatype to send the variable, that=92s why in postgres it is showing as "Double precision" -----Original Message----- From: pgsql-bugs-owner@postgresql.org [mailto:pgsql-bugs-owner@postgresql.org] On Behalf Of Robert Haas Sent: Monday, April 09, 2012 7:31 PM To: barry_bell@harte-hanks.com Cc: pgsql-bugs@postgresql.org Subject: Re: [BUGS] BUG #6534: Passing numeric Bind variables to ODBC = driver convers to "Double precision" On Thu, Mar 15, 2012 at 3:04 PM, wrote: > The following bug has been logged on the website: > > Bug reference: =A0 =A0 =A06534 > Logged by: =A0 =A0 =A0 =A0 =A0Barry Bell > Email address: =A0 =A0 =A0barry_bell@harte-hanks.com > PostgreSQL version: 9.1.2 > Operating system: =A0 Windows Server 2003 > Description: > > 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=3D1 > running the following sql: > "( select function_pkg(?nvar) " > > The bind variable nvar will show in postgres as "Double Precision" = format > instead of integer. > > Is there a setting on the ODBC driver for incoming vairables? > If not it is a buf. Given the lack of any response here, I suggest reposting this to the pgsql-odbc mailing list. --=20 Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs