X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 93637D1B183 for ; Thu, 29 Jul 2004 19:21:05 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 95304-10 for ; Thu, 29 Jul 2004 22:20:57 +0000 (GMT) Received: from NSNOVPS00411.nacio.xythos.com (212-59.84.64.master-link.com [64.84.59.212]) by svr1.postgresql.org (Postfix) with ESMTP id 78BD6D1B483 for ; Thu, 29 Jul 2004 19:20:42 -0300 (ADT) Received: from [192.168.1.99] ([64.154.218.194]) by NSNOVPS00411.nacio.xythos.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 29 Jul 2004 15:20:41 -0700 Message-ID: <4109783C.8030806@xythos.com> Date: Thu, 29 Jul 2004 15:20:44 -0700 From: Barry Lind User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Jurka Cc: "j.random.programmer" , pgsql-jdbc@postgresql.org Subject: Re: Bug in 7.4_213 driver: returns VARCHAR instead of References: <20040727084518.80717.qmail@web14201.mail.yahoo.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Jul 2004 22:20:41.0114 (UTC) FILETIME=[485567A0:01C475BA] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/329 X-Sequence-Number: 10713 Kris Jurka wrote: > I'm not so sure anymore. While text can be used for storing large values > it often isn't. Further returning LONGVARCHAR could be a sign for the > caller to use something like ResultSet.getCharacterStream instead of a > simple getString. I would agree. In our applications we exclusively use text everywhere we use varchar on other databases. I am quite sure that a change like this would break peoples existing apps. I also agree that LONGVARCHAR would imply that you should use the getXXXStream methods which I would say is rarely the correct thing to do. In my opinion text is just a better version of varchar (without many of the limitations imposed on varchar in other database vendor implementations). --Barry