From: Tobias Wendorff <tobias.wendorff@tu-dortmund.de>
To: Danny Severns <Danny@eidl-sw.com>
Cc: Jan Wieck <jan@wi3ck.info>
Cc: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
Cc: pgsql-odbc@lists.postgresql.org <pgsql-odbc@lists.postgresql.org>
Subject: RE: NUMERIC type makes trouble in MS Access
Date: Mon, 28 May 2018 05:50:21 +0200
Message-ID: <f51780612e5990c605efb86ec0417121.squirrel@webmail.tu-dortmund.de> (raw)
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: tobias.wendorff@tu-dortmund.de, Danny@eidl-sw.com, jan@wi3ck.info, h-inoue@dream.email.ne.jp
Subject: Re: NUMERIC type makes trouble in MS Access
In-Reply-To: <f51780612e5990c605efb86ec0417121.squirrel@webmail.tu-dortmund.de>
References: <f51780612e5990c605efb86ec0417121.squirrel@webmail.tu-dortmund.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox