From: Daniel Migowski <dmigowski@ikoffice.de>
To: Kris Jurka <books@ejurka.com>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Gregory Stark <stark@enterprisedb.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: TypeInfoCache
Date: Thu, 20 Dec 2007 13:39:29 +0100
Message-ID: <476A6281.6090008@ikoffice.de> (raw)
In-Reply-To: <Pine.BSO.4.64.0712200547450.15638@leary.csoft.net>
References: <47692DEB.9070307@ikoffice.de>
<877ijan2cp.fsf@oxford.xeocode.com>
<47693B10.3040804@ikoffice.de>
<873atymzpu.fsf@oxford.xeocode.com>
<4769604A.9050006@ikoffice.de>
<476989C7.8020307@opencloud.com>
<1811.1198113944@sss.pgh.pa.us>
<476A4094.6070601@ikoffice.de>
<476A475E.2020108@opencloud.com>
<Pine.BSO.4.64.0712200547450.15638@leary.csoft.net>
Kris Jurka schrieb:
> On Thu, 20 Dec 2007, Oliver Jowett wrote:
>> My main concern is that 'text' is a very common type to use in
>> PostgreSQL based designs, and that JDBC applications are more likely
>> to understand how to interpret a field that claims to be VARCHAR than
>> one that is LONGVARCHAR, given that LONGVARCHAR is a relatively
>> strange type and at best poorly defined.
> This is my concern as well, which is why I suggested that changing the
> precision value might be a better solution. Daniel, any opinion on
> that alternative?
Btw., you say that "JDBC applications" are more likely to understand how
to interpret a VARCHAR field, than an LONGVARCHAR field. Which? I don't
know any.And currently a JDBC application (Chrystal Reports) broke,
because we did't send a LONGVARCHAR! Every JDBC application should be
able to handle both, since JDBC defines both. And, most important, both
types can, according to JDBC spec, treated equally (same access
functions,etc.). So we shouldn't create a broken driver for
applications, that _might_ be broken. And if they are, a parameter
option should be a fair deal to give to the driver, to let bad behaving
applications work. We don't have to stick to bugs just for backwards
compatibility, don't we? We are not Microsoft, i think.
With best regards,
Daniel Migowski
--
|¯¯|¯¯| *IKOffice GmbH Daniel Migowski*
| | |/| Mail: dmigowski@ikoffice.de <mailto:dmigowski@ikoffice.de>
| | // | Nordstr. 10 Tel.: +49 (441) 21 98 89 52
| | \\ | 26135 Oldenburg Fax.: +49 (441) 21 98 89 55
|__|__|\| http://www.ikoffice.de Mob.: +49 (176) 22 31 20 76
Geschäftsführer: Ingo Kuhlmann, Daniel Migowski
Amtsgericht Oldenburg, HRB 201467
Steuernummer: 64/211/01864
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: dmigowski@ikoffice.de, books@ejurka.com, oliver@opencloud.com, tgl@sss.pgh.pa.us, stark@enterprisedb.com
Subject: Re: TypeInfoCache
In-Reply-To: <476A6281.6090008@ikoffice.de>
References: <47692DEB.9070307@ikoffice.de> <877ijan2cp.fsf@oxford.xeocode.com> <47693B10.3040804@ikoffice.de> <873atymzpu.fsf@oxford.xeocode.com> <4769604A.9050006@ikoffice.de> <476989C7.8020307@opencloud.com> <1811.1198113944@sss.pgh.pa.us> <476A4094.6070601@ikoffice.de> <476A475E.2020108@opencloud.com> <Pine.BSO.4.64.0712200547450.15638@leary.csoft.net> <476A6281.6090008@ikoffice.de>
* 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