pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Inserting into a uuid column
Date: Wed, 04 Mar 2009 08:46:40 +0100
Message-ID: <golbl5$aj4$1@ger.gmane.org> (raw)
In-Reply-To: <Pine.BSO.4.64.0903031713180.19272@leary.csoft.net>
References: <gok66o$duf$1@ger.gmane.org>
<Pine.BSO.4.64.0903031610590.4533@leary.csoft.net>
<gok9b9$p4v$1@ger.gmane.org>
<Pine.BSO.4.64.0903031713180.19272@leary.csoft.net>
Hi Kris,
thanks for your answers.
I can change the import to use setObject(int, Object, int) which works fine.
> The reason the driver doesn't do this is twofold.
>
> 1) The driver doesn't know the target server type. Retrieving that
> would induce an extra network roundtrip for execution.
>
> 2) Sometimes the server doesn't know the the target type and it's better
> for the driver/user to provide it. Consider the call of an overloaded
> function: SELECT myfunc(?), if it has an implementation for both float
> and int, you want the user/driver to indicate which one should be called
> because the server doesn't know.
I can see the problems there ;)
Regards
Thomas
view thread (7+ messages)
Message-ID: <golbl5$aj4$1@ger.gmane.org> Permalink: ../golbl5$aj4$1@ger.gmane.org/ Also on: postgresql.org/message-id/golbl5$aj4$1@ger.gmane.org ·
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: spam_eater@gmx.net Subject: Re: Inserting into a uuid column In-Reply-To: <golbl5$aj4$1@ger.gmane.org> References: <gok66o$duf$1@ger.gmane.org> <Pine.BSO.4.64.0903031610590.4533@leary.csoft.net> <gok9b9$p4v$1@ger.gmane.org> <Pine.BSO.4.64.0903031713180.19272@leary.csoft.net> <golbl5$aj4$1@ger.gmane.org> * 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