Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?

From: DGPickett <DGPickett(at)aol(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?
Date: 2009-02-26 16:54:11
Message-ID: be6ffbdc-6190-4f2b-8e2e-b45fa9e5a596@r27g2000vbp.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I feel it runs contrary to the purpose of JDBC to make clients have
postgres-specific code for this response. The common JDBC
speccification does not support returning int max (or anything else)
for "I don't know."

It seems unreasonable that this implementation cannot deal with these
trivial cases. I am not sure whether the fault lies with the JDBC
implementation or the underlying RDBMS server, that we cannot
determine that "X" is 1 byte wide, or a||b is (width of a) + (width of
b) bytes wide. Perhaps the requirement to support result metadata did
not percolate down into the server or TCP interface code far enough.
Can someone illuminate us on this?

Best,

David

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2009-02-26 18:18:55 Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?
Previous Message Kris Jurka 2009-02-26 00:11:50 Re: ResultSetMetaData.getColumnDisplaySize returns 2147483647 ?