From: Kris Jurka <books@ejurka.com>
To: the6campbells <the6campbells@gmail.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: does the JDBC driver offer a similar property to the ODBC Text As LongVarchar?
Date: Mon, 12 Nov 2012 13:30:20 -0500 (EST)
Message-ID: <alpine.BSO.2.00.1211121328070.5948@leary.csoft.net> (raw)
In-Reply-To: <CAFEjsq58_wxLJK7dSEWa+ExjFmrRuwypvJ6qUGXarScEDjvT2A@mail.gmail.com>
References: <CAFEjsq58_wxLJK7dSEWa+ExjFmrRuwypvJ6qUGXarScEDjvT2A@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, the6campbells@gmail.com
Subject: Re: does the JDBC driver offer a similar property to the ODBC Text As LongVarchar?
In-Reply-To: <alpine.BSO.2.00.1211121328070.5948@leary.csoft.net>
References: <CAFEjsq58_wxLJK7dSEWa+ExjFmrRuwypvJ6qUGXarScEDjvT2A@mail.gmail.com> <alpine.BSO.2.00.1211121328070.5948@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox