Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ? - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?
Date
Msg-id Pine.BSO.4.64.0903021903420.9134@leary.csoft.net
Whole thread Raw
In response to Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?  (Hannu Krosing <hannu@2ndQuadrant.com>)
List 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

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?
Next
From: Віталій Тимчишин
Date:
Subject: Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?