pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tobias Wendorff <tobias.wendorff@tu-dortmund.de>
To: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
Cc: Craig Ringer <craig@2ndquadrant.com>
Cc: Jan Wieck <jan@wi3ck.info>
Cc: pgsql-odbc@lists.postgresql.org
Subject: Re: NUMERIC type makes trouble in MS Access
Date: Mon, 28 May 2018 23:19:00 +0200
Message-ID: <0a87a1fd184fa990c89047e52c185140.squirrel@webmail.tu-dortmund.de> (raw)
In-Reply-To: <5d7bc49b-d224-466f-992a-0daac88bf349@dream.email.ne.jp>
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>
	<CAMsr+YE1jrKGxu2BNGDxoQbFF39DM6TgU-p99NRM7pN2RBQyJA@mail.gmail.com>
	<176c322b34f58ef0458a44399e226425.squirrel@webmail.tu-dortmund.de>
	<3b33191d-cd97-28cb-fee4-9f4af3761484@dream.email.ne.jp>
	<cd0bad45ba38e55a8ade23788595a1b6.squirrel@webmail.tu-dortmund.de>
	<5d7bc49b-d224-466f-992a-0daac88bf349@dream.email.ne.jp>

Dear Hiroshi,

in case you missed my E-Mail from 13 hours ago:

works nice, well done!

Could you perhaps extend the field length of varchar to "max varchar"
from "Miscellaneous" on page 1? Right now it's limited to 28.

That would allow exporting the highest possible precision in Access
(f.e. export to CSV).

Thanks again... really good work!
Tobias



Am Mo, 28.05.2018, 14:59 schrieb Inoue, Hiroshi:
> Hi Tobias,
>
> Could you please try the test drivers 10.03.0110 on Windows at
>    https://winpg.jp/~inoue/psqlodbc/index.html
> ?
>
> regards,
> Hiroshi Inoue
>
> On 2018/05/28 16:32, Tobias Wendorff wrote:
>> Hi Hiroshi,
>>
>> works nice, well done!
>>
>> Could you perhaps extend the field length of varchar to "max varchar"
>> from "Miscellaneous" on page 1? Right now it's limited to 28.
>>
>> That would allow exporting the highest possible precision in Access
>> (f.e. export to CSV).
>>
>> Thanks again... really good work!
>> Tobias
>>
>>
>>
>> Am Mo, 28.05.2018, 09:17 schrieb Inoue, Hiroshi:
>>> Hi Tobias,
>>>
>>> Could you please try the test drivers 10.03.0100 on Windows at
>>> https://winpg.jp/~inoue/psqlodbc/index.html
>>> ?
>>> The test drivers have an option
>>>       Numeric(without precision) as
>>> .
>>>
>>> regards,
>>> Hiroshi Inoue
>>>
>>> On 2018/05/28 11:13, Tobias Wendorff wrote:
>>>> 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
>






view thread (30+ messages)  latest in thread

Message-ID: <0a87a1fd184fa990c89047e52c185140.squirrel@webmail.tu-dortmund.de>
Permalink:  ../0a87a1fd184fa990c89047e52c185140.squirrel@webmail.tu-dortmund.de/
Also on:    postgresql.org/message-id/0a87a1fd184fa990c89047e52c185140.squirrel@webmail.tu-dortmund.de

 · 

reply

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, h-inoue@dream.email.ne.jp, craig@2ndquadrant.com, jan@wi3ck.info
  Subject: Re: NUMERIC type makes trouble in MS Access
  In-Reply-To: <0a87a1fd184fa990c89047e52c185140.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> <CAMsr+YE1jrKGxu2BNGDxoQbFF39DM6TgU-p99NRM7pN2RBQyJA@mail.gmail.com> <176c322b34f58ef0458a44399e226425.squirrel@webmail.tu-dortmund.de> <3b33191d-cd97-28cb-fee4-9f4af3761484@dream.email.ne.jp> <cd0bad45ba38e55a8ade23788595a1b6.squirrel@webmail.tu-dortmund.de> <5d7bc49b-d224-466f-992a-0daac88bf349@dream.email.ne.jp> <0a87a1fd184fa990c89047e52c185140.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