From: | "Tobias Wendorff" <tobias(dot)wendorff(at)tu-dortmund(dot)de> |
---|---|
To: | "Craig Ringer" <craig(at)2ndquadrant(dot)com> |
Cc: | "Jan Wieck" <jan(at)wi3ck(dot)info>, "Inoue, Hiroshi" <h-inoue(at)dream(dot)email(dot)ne(dot)jp>, pgsql-odbc(at)lists(dot)postgresql(dot)org |
Subject: | Re: NUMERIC type makes trouble in MS Access |
Date: | 2018-05-28 02:13:06 |
Message-ID: | 176c322b34f58ef0458a44399e226425.squirrel@webmail.tu-dortmund.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-odbc |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Tobias Wendorff | 2018-05-28 03:50:21 | RE: NUMERIC type makes trouble in MS Access |
Previous Message | Craig Ringer | 2018-05-28 01:34:09 | Re: NUMERIC type makes trouble in MS Access |