Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id A26FC6334EE for ; Sun, 7 Jun 2009 19:53:36 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 41350-03 for ; Sun, 7 Jun 2009 19:53:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id 4BF3E62E50B for ; Sun, 7 Jun 2009 19:53:33 -0300 (ADT) Received: from 219-89-243-186.adsl.xtra.co.nz ([219.89.243.186] helo=[192.168.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1MDRF1-00064v-PN; Mon, 08 Jun 2009 10:53:27 +1200 Message-ID: <4A2C44E6.4040401@opencloud.com> Date: Mon, 08 Jun 2009 10:53:26 +1200 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: Dan Evans CC: pgsql-jdbc@postgresql.org Subject: Re: getColumnDisplayWidth() returns 0x7fffffff for char varying References: <4A2AB526.1040907@invores.com> In-Reply-To: <4A2AB526.1040907@invores.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200906/38 X-Sequence-Number: 19702 Dan Evans wrote: > My problem is that getColumnDisplayWidth() returns the widths > > column(1) uname(2147483647) This has been discussed at some length previously, check the list archives. (quick summary from memory: for an unbounded character varying type, there's nothing really sensible we can return - that column could have a gigabyte of text for all we know. We originally returned -1 but that broke some common RowSet implementations. Now we return Integer.MAX_VALUE) -O