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 1fN9BA-0002b1-8G for pgsql-odbc@arkaria.postgresql.org; Mon, 28 May 2018 03:50:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fN9B8-00065r-9P for pgsql-odbc@arkaria.postgresql.org; Mon, 28 May 2018 03:50:38 +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 1fN9B7-00065i-Nv for pgsql-odbc@lists.postgresql.org; Mon, 28 May 2018 03:50:37 +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 1fN9B4-0001tc-Dx for pgsql-odbc@lists.postgresql.org; Mon, 28 May 2018 03:50:36 +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 w4S3oKbS025519 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 28 May 2018 05:50:21 +0200 (CEST) Received: from 77.191.163.32 (SquirrelMail authenticated user smtswend) by webmail.tu-dortmund.de with HTTP; Mon, 28 May 2018 05:50:21 +0200 Message-ID: Date: Mon, 28 May 2018 05:50:21 +0200 Subject: RE: NUMERIC type makes trouble in MS Access From: "Tobias Wendorff" To: "Danny Severns" 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 Here an update: by default, MS Access sets linked tables with "unlimited" NUMERIC to DECIMAL with "precision: 28" and "decimals: 6" (MS Access names). Trying to read a value [INSERT INTO public.demo VALUES (1.0 / 3)] breaks with an error. When creating the column using NUMERIC(28, 24), MS Access shows this: "precision: 28" and "decimals: 24". And there's no error. Funny, when creating the column using NUMERIC(32, 28), MS Access interprets it as TEXT with field length 32. NUMERIC(28,27) is the last column type, MS Access can read as DECIMAL. A view on an "unlimited" NUMERIC with casting ::NUMERIC(28, 24) is accepted by Access. So it seems like I need to create a VIEW as a work-around.