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 1fN3S8-0002Eg-Ht for pgsql-odbc@arkaria.postgresql.org; Sun, 27 May 2018 21:43:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fN3S5-0002ke-8q for pgsql-odbc@arkaria.postgresql.org; Sun, 27 May 2018 21:43:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fN3S5-0002kV-2u for pgsql-odbc@lists.postgresql.org; Sun, 27 May 2018 21:43:45 +0000 Received: from mx1.hrz.uni-dortmund.de ([129.217.128.51] helo=unimail.uni-dortmund.de) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fN3Rv-0003zf-Km for pgsql-odbc@lists.postgresql.org; Sun, 27 May 2018 21:43:41 +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 w4RLhWfv007079 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Sun, 27 May 2018 23:43:32 +0200 (CEST) Received: from 77.191.163.32 (SquirrelMail authenticated user smtswend) by webmail.tu-dortmund.de with HTTP; Sun, 27 May 2018 23:43:31 +0200 Message-ID: <501898191bb8dd726b4df9434b93071c.squirrel@webmail.tu-dortmund.de> In-Reply-To: References: <16ce8f663efa83704dbebffd20ebde29.squirrel@webmail.tu-dortmund.de> <1f71eedeb0316b4de796d0a49ecdbd2f.squirrel@webmail.tu-dortmund.de> Date: Sun, 27 May 2018 23:43:31 +0200 Subject: Re: NUMERIC type makes trouble in MS Access From: "Tobias Wendorff" To: "Jan Wieck" Cc: "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 Dear Jan, Am So, 27.05.2018, 23:22 schrieb Jan Wieck: > > Nope, please read that again and then compare that statement to > what you wrote about the "commercial" driver (using double) and > your suggestion to have a switch to make the PostgreSQL ODBC > driver do the same (nonsense). I'm asking you not to be condescending with people who come to this mailing list with a problem. Not all the members on this lists senior postgres architects, some are just normal users. My idea for this "nonsense" switch just was a workaround for bad designed databases schemas or for compatibility reasons with rarely used closed source applications, such as Microsoft Access. > But what precision does Access claim to support? Access 2010 at least can handle a precision of 28 digits. Actually, that's what you can set on its GUI. > All I understood so far is that PostgreSQL's NUMERIC without explicit > precision sometimes overwhelms Access with too many digits after the > decimal point. If that is accurate you may want to either complain to > Microsoft about their insufficient implementation of DECIMAL or fix > the schema of the source database. I don't think that the database design is broken, since PostgreSQL supports NUMERIC columns without a specific precision. So all I can do is: create a VIEW, which rounds or casts my data on the fly to a format, Access can access via the ODBC driver. Best regards, Tobias