X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9876752984 for ; Tue, 19 Jul 2005 10:22:08 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28088-06 for ; Tue, 19 Jul 2005 13:22:07 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 4030952989 for ; Tue, 19 Jul 2005 10:22:07 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.21]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1Dus31-0004W8-3D; Wed, 20 Jul 2005 01:22:11 +1200 Message-ID: <42DCFE83.4060505@opencloud.com> Date: Tue, 19 Jul 2005 13:22:11 +0000 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Cramer Cc: pgsql-jdbc@postgresql.org Subject: Re: Timestamp Conversion Woes Redux References: <90876a9e05071810503606d431@mail.gmail.com> <16335.1121714809@sss.pgh.pa.us> <10C90079-DD0A-43D7-9389-7486803F0AB1@fastcrypt.com> <42DC37AC.5030704@opencloud.com> <42DCF0C9.4030501@opencloud.com> <42DCF5D7.9000303@opencloud.com> <42DCFB05.90306@opencloud.com> <499DFF86-4F92-47D1-A9FE-F9EEEB0E8BAF@fastcrypt.com> In-Reply-To: <499DFF86-4F92-47D1-A9FE-F9EEEB0E8BAF@fastcrypt.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/131 X-Sequence-Number: 13279 Dave Cramer wrote: > setString is "special" because historically this is what we see in the > upgrade problems. People try to insert a date using setString > ('dateval') etc. And we're back to: I think the right solution here is for people to fix their broken apps, not to introduce unpredictable behaviour in the driver. > Also we have historically told people to use setString to insert pg specific types, when there was no corresponding java type. That's a fair point. We really need a proper way for specifying this anyway; I had a trivial PGobject implementation at one point that did the trick, but Kris didn't like the other bits I did in that patch and I never got around to implementing it separately. -O