Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 7CCEA475CC4 for ; Wed, 27 Nov 2002 15:08:35 -0500 (EST) Received: from web20801.mail.yahoo.com (web20801.mail.yahoo.com [216.136.226.190]) by postgresql.org (Postfix) with SMTP id CA8F1475A3F for ; Wed, 27 Nov 2002 15:08:34 -0500 (EST) Message-ID: <20021127200835.58606.qmail@web20801.mail.yahoo.com> Received: from [208.13.35.65] by web20801.mail.yahoo.com via HTTP; Wed, 27 Nov 2002 12:08:35 PST Date: Wed, 27 Nov 2002 12:08:35 -0800 (PST) From: Jeff Eckermann Subject: Re: Can't get more than 255 chars out of memo field in Acc To: Tom Lane Cc: Benjamin Scherrey , pgsql-odbc@postgresql.org In-Reply-To: <21355.1038426981@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/173 X-Sequence-Number: 2350 --- Tom Lane wrote: > Jeff Eckermann writes: > > The implication is, there is no workaround. You > will > > need to change the table definitions in your > > PostgreSQL database to use varchar(n) datatypes > > whereever you want Access to see text. > > I wonder whether we could/should hack our ODBC > driver to report "text" > columns as "varchar(n)" (and if so, what n should we > use)? Seems like > enough people want to use Access that this would be > a useful option. > > regards, tom lane The problem lies in the Access distinction between "text" type, which is fully functional but limited in size (the OP's problem), and "memo", which allows much more storage, but is limited in functionality: "memo" fields cannot be indexed, sorted, grouped by, joined against etc. The driver can presently render text as "text" or as "memo", depending on the chosen configuration. I don't see how it could reasonably distinguish between two text fields so as to call one "text" and the other "memo". I would say that this is just one of those quirks that an Access user/developer will need to be aware of. Which is to be discussed in another thread ... __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com