Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TXym7-0004eQ-Nf for pgsql-jdbc@postgresql.org; Mon, 12 Nov 2012 18:30:23 +0000 Received: from mail63.csoft.net ([205.205.214.4]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TXym5-00059n-ST for pgsql-jdbc@postgresql.org; Mon, 12 Nov 2012 18:30:23 +0000 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id E02AE2847F; Mon, 12 Nov 2012 13:30:20 -0500 (EST) Received: by leary.csoft.net (Postfix, from userid 1112) id DD55A1FBC8; Mon, 12 Nov 2012 13:30:20 -0500 (EST) Date: Mon, 12 Nov 2012 13:30:20 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: the6campbells cc: "pgsql-jdbc@postgresql.org" Subject: Re: does the JDBC driver offer a similar property to the ODBC Text As LongVarchar? In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Pg-Spam-Score: -2.1 (--) X-Archive-Number: 201211/42 X-Sequence-Number: 23509 On Mon, 12 Nov 2012, the6campbells wrote: > In the Postgres ODBC driver you can confirm Data Type Options:Text as > LongVarChar = True and set Max properties for Varchar and LongVarChar. > > I did not see if the JDBC driver is providing similar options in the recent > 9.x drivers. The JDBC driver offers a connection option "unknownLength=XXXX" which can be set to return a fixed size instead of Integer.MAX_VALUE for fields of unknown length. This covers text fields, but does not apply exclusively to them. http://jdbc.postgresql.org/documentation/head/connect.html#connection-parameters Kris Jurka