Re: AT TIME ZONE INTERVAL and prepared statements

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: AT TIME ZONE INTERVAL and prepared statements
Date: 2004-10-22 22:16:04
Message-ID: 19433.1098483364@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Kris Jurka <books(at)ejurka(dot)com> writes:
> AT TIME ZONE INTERVAL $1 doesn't seem to be supported in prepared
> statements.

Try
AT TIME ZONE $1
or possibly
AT TIME ZONE $1::interval
You are confusing the syntax for a typed literal with part of the AT
TIME ZONE construct.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Marc Boucher 2004-10-22 22:19:02 Problem with rule and null value
Previous Message Kris Jurka 2004-10-22 22:08:55 AT TIME ZONE INTERVAL and prepared statements