pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Peter <peter@greatnowhere.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC problem with dates and ANYELEMENT type
Date: Thu, 23 Apr 2009 22:35:49 -0400 (EDT)
Message-ID: <Pine.BSO.4.64.0904232234430.16180@leary.csoft.net> (raw)
In-Reply-To: <00e701c9c3eb$625d43a0$2717cae0$@com>
References: <00e701c9c3eb$625d43a0$2717cae0$@com>



On Thu, 23 Apr 2009, Peter wrote:

> So it indeed sets ‘unspecified’ type which works fine if your target 
> datatype is defined, but fails miserably on ANYELEMENT.
>
> Any suggestions how to work around this so we can still use ANYELEMENT 
> and pass in DATE?
>

You can put a cast into the query itself "SELECT ?::date".

Kris Jurka


view thread (6+ messages)  latest in thread

Message-ID: <Pine.BSO.4.64.0904232234430.16180@leary.csoft.net>
Permalink:  ../Pine.BSO.4.64.0904232234430.16180@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.64.0904232234430.16180@leary.csoft.net

 · 

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: books@ejurka.com, peter@greatnowhere.com
  Subject: Re: JDBC problem with dates and ANYELEMENT type
  In-Reply-To: <Pine.BSO.4.64.0904232234430.16180@leary.csoft.net>
  References: <00e701c9c3eb$625d43a0$2717cae0$@com> <Pine.BSO.4.64.0904232234430.16180@leary.csoft.net>

* 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