Re: BUG #4533: Plpgsql complex type failure

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Rod Taylor" <rod(dot)taylor(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4533: Plpgsql complex type failure
Date: 2008-11-22 18:37:41
Message-ID: 29335.1227379061@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Rod Taylor" <rod(dot)taylor(at)gmail(dot)com> writes:
> DECLARE
> v_time timestamp_with_precision;
> BEGIN
> SELECT (CURRENT_DATE, 'day')::timestamp_with_precision
> INTO v_time;

You're overthinking the problem, it should just read

SELECT CURRENT_DATE, 'day'
INTO v_time;

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Rod Taylor 2008-11-22 18:52:53 Re: BUG #4533: Plpgsql complex type failure
Previous Message Marcus Kempe 2008-11-21 22:18:24 BUG #4544: Wiki user update error