Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fN7f0-0004T0-6j for pgsql-odbc@arkaria.postgresql.org; Mon, 28 May 2018 02:13:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fN7eu-0007nM-Uy for pgsql-odbc@arkaria.postgresql.org; Mon, 28 May 2018 02:13:16 +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.89) (envelope-from ) id 1fN7eu-0007nD-Lx for pgsql-odbc@lists.postgresql.org; Mon, 28 May 2018 02:13:16 +0000 Received: from mx1.hrz.uni-dortmund.de ([129.217.128.51] helo=unimail.uni-dortmund.de) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fN7er-00088U-E0 for pgsql-odbc@lists.postgresql.org; Mon, 28 May 2018 02:13:15 +0000 Received: from webmail.tu-dortmund.de (vmx028.itmc.tu-dortmund.de [129.217.131.82]) (authenticated bits=0) by unimail.uni-dortmund.de (8.16.0.21/8.16.0.21) with ESMTPSA id w4S2D7Yi004429 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 28 May 2018 04:13:07 +0200 (CEST) Received: from 77.191.163.32 (SquirrelMail authenticated user smtswend) by webmail.tu-dortmund.de with HTTP; Mon, 28 May 2018 04:13:06 +0200 Message-ID: <176c322b34f58ef0458a44399e226425.squirrel@webmail.tu-dortmund.de> In-Reply-To: References: <16ce8f663efa83704dbebffd20ebde29.squirrel@webmail.tu-dortmund.de> <1f71eedeb0316b4de796d0a49ecdbd2f.squirrel@webmail.tu-dortmund.de> <501898191bb8dd726b4df9434b93071c.squirrel@webmail.tu-dortmund.de> Date: Mon, 28 May 2018 04:13:06 +0200 Subject: Re: NUMERIC type makes trouble in MS Access From: "Tobias Wendorff" To: "Craig Ringer" Cc: "Jan Wieck" , "Inoue, Hiroshi" , pgsql-odbc@lists.postgresql.org User-Agent: SquirrelMail/1.4.23 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Craig, Am Mo, 28.05.2018, 03:34 schrieb Craig Ringer: > > Some quick research suggests that Access's Decimal data type is > what you should be using. It's not floating point. This fits with > what you're saying, as the docs say Decimal in Access is limited > to 28 digits. But there's a problem: you can't change the field type of a linked table in MS Access. Even if the driver delivers the correct type, I cannot influence the decimal width (or anything else) and the problem inevitably arises. So, as Jan and I suggested, the only way is to apply a change either in the column itself or do it in realtime using a VIEW. > Seems like it probably has a more limited implementation using > fixed-point, not PostgreSQL's BCD representation, as they use > a fixed 17 bytes in the native storage. > > It should map as SQL_DECIMAL, NOT double or float. Sure, I didn't want to force fundamental changes here. I just wanted to suggest something like a "compatibility switch" for Microsoft Access when using "unlimited" NUMERIC in PostgreSQL. Best, Tobias