From: Tobias Wendorff <tobias.wendorff@tu-dortmund.de>
To: Jan Wieck <jan@wi3ck.info>
Cc: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
Cc: pgsql-odbc@lists.postgresql.org
Subject: Re: NUMERIC type makes trouble in MS Access
Date: Sun, 27 May 2018 23:43:31 +0200
Message-ID: <501898191bb8dd726b4df9434b93071c.squirrel@webmail.tu-dortmund.de> (raw)
In-Reply-To: <CAGBW59cJKSObXZs79W1e2dfU3itOH25pF6hxCY-zoFZQReC3Qw@mail.gmail.com>
References: <16ce8f663efa83704dbebffd20ebde29.squirrel@webmail.tu-dortmund.de>
<CAGBW59dLVsj+wO9AGqtQ7EUSnNO-tXuAhh==G+muhLLPwO34Gg@mail.gmail.com>
<1f71eedeb0316b4de796d0a49ecdbd2f.squirrel@webmail.tu-dortmund.de>
<CAGBW59cJKSObXZs79W1e2dfU3itOH25pF6hxCY-zoFZQReC3Qw@mail.gmail.com>
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
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, jan@wi3ck.info, h-inoue@dream.email.ne.jp
Subject: Re: NUMERIC type makes trouble in MS Access
In-Reply-To: <501898191bb8dd726b4df9434b93071c.squirrel@webmail.tu-dortmund.de>
References: <16ce8f663efa83704dbebffd20ebde29.squirrel@webmail.tu-dortmund.de> <CAGBW59dLVsj+wO9AGqtQ7EUSnNO-tXuAhh==G+muhLLPwO34Gg@mail.gmail.com> <1f71eedeb0316b4de796d0a49ecdbd2f.squirrel@webmail.tu-dortmund.de> <CAGBW59cJKSObXZs79W1e2dfU3itOH25pF6hxCY-zoFZQReC3Qw@mail.gmail.com> <501898191bb8dd726b4df9434b93071c.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