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 611B552996 for ; Tue, 19 Jul 2005 11:52:13 -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 47912-07 for ; Tue, 19 Jul 2005 14:52:03 +0000 (GMT) Received: from mail.ecircle.de (mail.ecircle.de [195.140.186.200]) by svr1.postgresql.org (Postfix) with ESMTP id D88F1529A0 for ; Tue, 19 Jul 2005 11:52:02 -0300 (ADT) Received: from [192.168.1.110] (unknown [192.168.1.110]) by mail.ecircle.de (READY) with ESMTP id 9803611CB64; Tue, 19 Jul 2005 16:52:07 +0200 (CEST) Subject: Re: Timestamp Conversion Woes Redux From: Csaba Nagy To: Tom Lane Cc: Oliver Jowett , Dave Cramer , Christian Cryder , Postgres JDBC In-Reply-To: <23729.1121783651@sss.pgh.pa.us> 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> Content-Type: text/plain Message-Id: <1121784727.3085.294.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 16:52:07 +0200 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.014 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/136 X-Sequence-Number: 13284 [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.