Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aVgqh-0004pN-Aa for pgsql-odbc@arkaria.postgresql.org; Tue, 16 Feb 2016 14:43:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aVgqg-0006H7-Tc for pgsql-odbc@arkaria.postgresql.org; Tue, 16 Feb 2016 14:43:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aVgqK-0005s0-4j for pgsql-odbc@postgresql.org; Tue, 16 Feb 2016 14:43:08 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aVgqH-0001N3-37 for pgsql-odbc@postgresql.org; Tue, 16 Feb 2016 14:43:06 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 5A01720D67 for ; Tue, 16 Feb 2016 09:43:03 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Tue, 16 Feb 2016 09:43:03 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=SZZuregTw5BSjzBPKfHBX/0FjhI=; b=FjPnDm 8JnpEX+BKmPeXYPHf7G7oKaNeL/YNhJ99TyAryWLqgwc+p6dHY5FbEp7awuOIoZL aS3YvewIDRIFS0BoheCnTaq2Vh6mz34oow1GZuXzZH0cxj2kUT2GbeVwQWwKQ9Pk AgBOgnEa04o6ShC1DTJSbMPdbdLIqmvImXYlk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=SZZuregTw5BSjzB PKfHBX/0FjhI=; b=KBT0awPCL9IZ4hBDW4zljCSEY0R1GOxgirFiP6kxUrD32pA ePuRzOYMxs35epEvJTS2Nd/wkU/n6/7pKqAofEogbfIdkF20Md9xOZjbF25Yox/f onR9v5YPEecRxIM5Htfwuct45hOaO/RO6j84Ywjcgpj+AhQeqyexLyXV5Xz0= X-Sasl-enc: C2VE2kYCg6zSs5Ua9h/Eji/pEvDYX93/xX7d2Q/v9IqJ 1455633782 Received: from [192.168.1.2] (174-21-70-246.tukw.qwest.net [174.21.70.246]) by mail.messagingengine.com (Postfix) with ESMTPA id 7B31C6801DC; Tue, 16 Feb 2016 09:43:02 -0500 (EST) Subject: Re: Issue with Money field using ODBC to Access database To: John Van De Giessen , pgsql-odbc@postgresql.org References: <001501d16521$740250d0$5c06f270$@internode.on.net> Cc: Neville Cook From: Adrian Klaver Message-ID: <56C33531.4040303@aklaver.com> Date: Tue, 16 Feb 2016 06:41:53 -0800 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <001501d16521$740250d0$5c06f270$@internode.on.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 02/11/2016 03:10 PM, John Van De Giessen wrote: > Hello, > > We are using Postgres 9.5 and ODBC ANSI driver version 9.05.01.00 > > We are receiving the following error message: > > ODBC—update on a linked table ‘tblMembers’ failed > > ERROR: operator does not exist: money = double precision; > > Error while executing the query That is correct as far as Postgres is concerned: test=# select version(); version ----------------------------------------------------------------------------------------------------------------------------- PostgreSQL 9.5.1 on i686-pc-linux-gnu, compiled by gcc (SUSE Linux) 4.8.3 20140627 [gcc-4_8-branch revision 212064], 32-bit (1 row) test=# select 1.24::money = 1.25::float; ERROR: operator does not exist: money = double precision LINE 1: select 1.24::money = 1.25::float; ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. > > This occurs when we attempt to Update a recordset to a table that > contains a Money field using either: > > 1) Dao from within Delphi , or > > 2) >From within Access97 itself > > Note that we are not actually updating the Money field or referring to > it in any way in the query; We are updating a Text field but the table > happens to contain a Money field. (However, the same error occurs if we > do attempt to update the money field) > > The PostgreSQL Money field maps to a Double in Access. > > Note: _This is NOT an issue when using the 9.03.xx ODBC driver_; In that > case it also maps as a double and the same query/recordset update, works > perfectly fine. Have you turned on logging in both cases to see what the difference is? > > Regards, > > John Van De Giessen > > Thyme software > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc