Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 71E736329BD for ; Wed, 18 Aug 2010 06:02:28 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 76753-02 for ; Wed, 18 Aug 2010 09:02:20 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from espresso1.syncrontech.com (espresso1.syncrontech.com [213.28.98.34]) by mail.postgresql.org (Postfix) with ESMTP id 4121663287F for ; Wed, 18 Aug 2010 06:02:21 -0300 (ADT) Received: from ink.sad.syncrontech.com (ink.syncrontech.com [192.168.2.107]) by espresso1.syncrontech.com (8.14.4/8.14.4) with ESMTP id o7I926tm049921; Wed, 18 Aug 2010 12:02:06 +0300 (EEST) (envelope-from Toni.Helenius@syncrontech.com) Received: from ink.sad.syncrontech.com ([192.168.2.107]) by ink.sad.syncrontech.com ([192.168.2.107]) with mapi; Wed, 18 Aug 2010 12:02:01 +0300 From: Toni Helenius To: Oliver Jowett CC: "pgsql-jdbc@postgresql.org" Date: Wed, 18 Aug 2010 12:01:59 +0300 Subject: Re: TEXT columns should indentify as java.sql.Types.CLOB Thread-Topic: [JDBC] TEXT columns should indentify as java.sql.Types.CLOB Thread-Index: Acs+rhLiKGe7cbFbT6OXXuhSn6xtdgABR/uA Message-ID: References: <4C695AED.5040806@ttc-cmc.net> <4C6B8C53.3040609@opencloud.com> <4C6B9782.8000306@opencloud.com> In-Reply-To: <4C6B9782.8000306@opencloud.com> Accept-Language: en-US, fi-FI Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, fi-FI Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/62 X-Sequence-Number: 20865 Hi, Yes, good sir, you're right. It got mapped as a BIT. My hastiness and origi= nal if-else was a bit off on this. Sorry. Still how do you feel about TEXT columns mapping as VARCHAR? -----Original Message----- From: Oliver Jowett [mailto:oliver@opencloud.com]=20 Sent: 18. elokuuta 2010 11:19 To: Toni Helenius Cc: pgsql-jdbc@postgresql.org Subject: Re: [JDBC] TEXT columns should indentify as java.sql.Types.CLOB Toni Helenius wrote: > Hi, >=20 > Here is the best I can do, I'm sure you'll manage to fill in the holes: Well, I was more interested in how you were ending up with VARCHAR. It's normal for booleans to be mapped to Types.BIT (see previous list discussion) > if (java.sql.Types.BOOLEAN =3D=3D type) { > println("A boolean"); > } -O