pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Timestamp Conversion Woes Redux
Date: Tue, 19 Jul 2005 09:18:35 -0400
Message-ID: <499DFF86-4F92-47D1-A9FE-F9EEEB0E8BAF@fastcrypt.com> (raw)
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>
	<C36F2D5F-093E-489C-8D6F-A67B746EA6C8@fastcrypt.com>
	<42DCF0C9.4030501@opencloud.com>
	<E14D759B-135D-4531-9322-9F4C535C2627@fastcrypt.com>
	<42DCF5D7.9000303@opencloud.com>
	<F84A33B1-609F-4E31-835D-C89E3372B349@fastcrypt.com>
	<42DCFB05.90306@opencloud.com>

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
>
>




view thread (92+ messages)  latest in thread

Message-ID: <499DFF86-4F92-47D1-A9FE-F9EEEB0E8BAF@fastcrypt.com>
Permalink:  ../499DFF86-4F92-47D1-A9FE-F9EEEB0E8BAF@fastcrypt.com/
Also on:    postgresql.org/message-id/499DFF86-4F92-47D1-A9FE-F9EEEB0E8BAF@fastcrypt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pg@fastcrypt.com, oliver@opencloud.com
  Subject: Re: Timestamp Conversion Woes Redux
  In-Reply-To: <499DFF86-4F92-47D1-A9FE-F9EEEB0E8BAF@fastcrypt.com>
  References: <90876a9e05071810503606d431@mail.gmail.com> <16335.1121714809@sss.pgh.pa.us> <10C90079-DD0A-43D7-9389-7486803F0AB1@fastcrypt.com> <42DC37AC.5030704@opencloud.com> <C36F2D5F-093E-489C-8D6F-A67B746EA6C8@fastcrypt.com> <42DCF0C9.4030501@opencloud.com> <E14D759B-135D-4531-9322-9F4C535C2627@fastcrypt.com> <42DCF5D7.9000303@opencloud.com> <F84A33B1-609F-4E31-835D-C89E3372B349@fastcrypt.com> <42DCFB05.90306@opencloud.com> <499DFF86-4F92-47D1-A9FE-F9EEEB0E8BAF@fastcrypt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox