Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?

From: Kris Jurka <books(at)ejurka(dot)com>
To: Hannu Krosing <hannu(at)2ndQuadrant(dot)com>
Cc: DGPickett <DGPickett(at)aol(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?
Date: 2009-03-03 00:05:58
Message-ID: Pine.BSO.4.64.0903021903420.9134@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Tue, 3 Mar 2009, Hannu Krosing wrote:

> Could you describe, what do they do, especially for cases of really
> unknown sizes ?
>
> One solution would be to fetch all data into a buffer and actually
> measure the longest field size.

That's not always an option. Consider the case of
PreparedStatement.getMetaData(), it must be able to return metadata
without executing the statement.

Kris Jurka

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Віталій Тимчишин 2009-03-03 13:57:17 Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?
Previous Message Oliver Jowett 2009-03-03 00:02:51 Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?