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 5C062529E2 for ; Tue, 19 Jul 2005 12:41:19 -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 60597-04 for ; Tue, 19 Jul 2005 15:41:16 +0000 (GMT) Received: from mail.ecircle.de (mail.ecircle.de [195.140.186.200]) by svr1.postgresql.org (Postfix) with ESMTP id A7F1A529DE for ; Tue, 19 Jul 2005 12:41:15 -0300 (ADT) Received: from [192.168.1.110] (unknown [192.168.1.110]) by mail.ecircle.de (READY) with ESMTP id 0E24211C027; Tue, 19 Jul 2005 17:41:15 +0200 (CEST) Subject: Re: Timestamp Conversion Woes Redux From: Csaba Nagy To: Dave Cramer Cc: Tom Lane , Oliver Jowett , Christian Cryder , Postgres JDBC In-Reply-To: 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> Content-Type: text/plain Message-Id: <1121787674.3085.300.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Tue, 19 Jul 2005 17:41:15 +0200 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.013 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/140 X-Sequence-Number: 13288 Ok, that would be more type safe too. For my code it doesn't matter anymore though, I've already fixed it to set the right type... but it would have saved me about 2 days of work. Cheers, Csaba. On Tue, 2005-07-19 at 17:31, Dave Cramer wrote: > 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 > > > > >