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