From: Jan de Visser <jdevisser@digitalfairway.com>
To: pgsql-jdbc@postgresql.org
Subject: TypeInfoCache
Date: Wed, 19 Dec 2007 20:39:29 -0500
Message-ID: <1159c1e90712191739p77fe2335odc1b883d2076c9a5@mail.gmail.com> (raw)
In-Reply-To: <1159c1e90712191738m59819803vde25b489102a50af@mail.gmail.com>
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>
<1159c1e90712191738m59819803vde25b489102a50af@mail.gmail.com>
On 12/19/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Oliver Jowett <oliver@opencloud.com> writes:
> > Daniel Migowski wrote:
> >> I think a VARCHAR(50) and text are not interchangeable.
>
> > But a "varchar" (with no limit) and "text" *are* interchangeable, which
> > is why we identify text as VARCHAR
>
> But note that varchar-with-no-limit is itself a Postgres-ism: it's
> not allowed by the standard.
I was about to write the same thing. For educational value, this is
what a popular closed-source dbms will tell you:
SQL> create table a ( a varchar );
create table a ( a varchar )
*
ERROR at line 1:
xxx-00906: missing left parenthesis
SQL> create table a (a varchar(4001));
create table a (a varchar(4001))
*
ERROR at line 1:
xxx-00910: specified length too long for its datatype
SQL> create table a (a varchar(4000));
Table created.
That's right, textual data longer than 4000 characters needs to go
through the CLOB interface. And my license doesn't permit me to say
what that does to performance :)
So what Daniel is trying to say here is that Crystal Report probably
croaks on a column for the type is Types.VARCHAR but which does not
have a maximum length associated with it.
I think his patch is good.
jan
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: jdevisser@digitalfairway.com
Subject: Re: TypeInfoCache
In-Reply-To: <1159c1e90712191739p77fe2335odc1b883d2076c9a5@mail.gmail.com>
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> <1159c1e90712191738m59819803vde25b489102a50af@mail.gmail.com> <1159c1e90712191739p77fe2335odc1b883d2076c9a5@mail.gmail.com>
* 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