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 9282B52A15 for ; Tue, 19 Jul 2005 12:31:36 -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 58753-04 for ; Tue, 19 Jul 2005 15:31:27 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 8E6E852A1D for ; Tue, 19 Jul 2005 12:31:26 -0300 (ADT) Received: (qmail 10164 invoked from network); 19 Jul 2005 15:31:25 -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 15:31:25 -0000 In-Reply-To: <1121784727.3085.294.camel@coppola.muc.ecircle.de> 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> <23396.1121781259@sss.pgh.pa.us> <42DD0824.9060002@opencloud.com> <23729.1121783651@sss.pgh.pa.us> <1121784727.3085.294.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: Tom Lane , Oliver Jowett , Christian Cryder , Postgres JDBC Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Timestamp Conversion Woes Redux Date: Tue, 19 Jul 2005 11:31:24 -0400 To: Csaba Nagy 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/139 X-Sequence-Number: 13287 For that matter we could use a PGUnknown type as well. Dave. On 19-Jul-05, at 10:52 AM, Csaba Nagy wrote: > [snip] > >> wasn't the whole thread. I agree with you that if we make setString >> default to UNKNOWN, there had better be a way to say "by golly this >> really is TEXT" for the corner cases. It'd be a good idea if it >> wasn't >> limited to TEXT, either, but could allow specification of any random >> datatype. >> > > This makes me think, isn't it possible to introduce a special type to > say something like: setObject(..., Types.UNKNOWN), and map that to > setting a string with type unknown ? In that case people could > still use > prepared statements with parameters of unknown type, it just have > to be > explicit. For me that would have been a much simpler "fixing the app". > > Cheers, > Csaba. > > > > ---------------------------(end of > broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org > >