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 4A7E75280C for ; Tue, 19 Jul 2005 10:18:42 -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 29529-02 for ; Tue, 19 Jul 2005 13:18:33 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id F40F85285C for ; Tue, 19 Jul 2005 10:18:32 -0300 (ADT) Received: (qmail 6827 invoked from network); 19 Jul 2005 13:18:36 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 19 Jul 2005 13:18:36 -0000 In-Reply-To: <42DCFB05.90306@opencloud.com> 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> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <499DFF86-4F92-47D1-A9FE-F9EEEB0E8BAF@fastcrypt.com> Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Timestamp Conversion Woes Redux Date: Tue, 19 Jul 2005 09:18:35 -0400 To: Oliver Jowett X-Mailer: Apple Mail (2.733) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.015 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/130 X-Sequence-Number: 13278 Oliver, setString is "special" because historically this is what we see in the upgrade problems. People try to insert a date using setString ('dateval') etc. Also we have historically told people to use setString to insert pg specific types, when there was no corresponding java type. I am not suggesting that we type all parameters as UNKNOWN only String parameters. Dave On 19-Jul-05, at 9:07 AM, Oliver Jowett wrote: > Dave Cramer wrote: > > >> by typing it as UNKNOWN we are letting the backend decide what to >> do with it. There is considerable code in there to do the "right" >> thing. >> > > So you are suggesting we type all parameters as UNKNOWN regardless > of which setXXX() accessor was used to set them? > > If not, why is setString() special? > > -O > > ---------------------------(end of > broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings > >