Re: does the JDBC driver offer a similar property to the ODBC Text As LongVarchar? - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: does the JDBC driver offer a similar property to the ODBC Text As LongVarchar?
Date
Msg-id alpine.BSO.2.00.1211121328070.5948@leary.csoft.net
Whole thread Raw
In response to does the JDBC driver offer a similar property to the ODBC Text As LongVarchar?  (the6campbells <the6campbells@gmail.com>)
List pgsql-jdbc

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


pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: does the JDBC driver offer a similar property to the ODBC Text As LongVarchar?
Next
From: dmp
Date:
Subject: Website Todo List