Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: Bug in 7.4_213 driver: returns VARCHAR instead of


  • From: Barry Lind <blind(at)xythos(dot)com>
  • To: Kris Jurka <books(at)ejurka(dot)com>
  • Cc: "j.random.programmer" <javadesigner(at)yahoo(dot)com>, pgsql-jdbc(at)postgresql(dot)org
  • Subject: Re: Bug in 7.4_213 driver: returns VARCHAR instead of
  • Date: Thu, 29 Jul 2004 15:20:44 -0700
  • Message-id: <4109783C.8030806@xythos.com> <text/plain>

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




Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group