Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group