From: Marc G. Fournier <scrappy@postgresql.org>
To: Jim Buttafuoco <jim@contactbda.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: DBD::Pg ... how would I format this prepare?
Date: Wed, 26 Jul 2006 21:05:17 -0300 (ADT)
Message-ID: <20060726210458.I1188@ganymede.hub.org> (raw)
In-Reply-To: <20060726220920.M84625@contactbda.com>
References: <20060726182806.A1188@ganymede.hub.org>
<20060726220920.M84625@contactbda.com>
On Wed, 26 Jul 2006, Jim Buttafuoco wrote:
> try
>
> now() + (? || ' day')::interval
Perfect ... had thought of that, but put my ) after ::interval instead of
before ;(
Thx ...
>
>
> ---------- Original Message -----------
> From: "Marc G. Fournier" <scrappy@postgresql.org>
> To: pgsql-sql@postgresql.org
> Sent: Wed, 26 Jul 2006 18:29:32 -0300 (ADT)
> Subject: [SQL] DBD::Pg ... how would I format this prepare?
>
>> I need to do:
>>
>> NOW() + '2 day'::interval
>>
>> where 2 is a variable ...
>>
>> if I do:
>>
>> NOW() + '? day'::interval
>>
>> it, of course, takes the ? as a literal ... so is there some way I can do
>> this such that I can do the placeholder?
>>
>> Thx
>>
>> ----
>> Marc G. Fournier Hub.Org Networking Services (http://www.hub.org)
>> Email . scrappy@hub.org MSN . scrappy@hub.org
>> Yahoo . yscrappy Skype: hub.org ICQ . 7615664
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 3: Have you checked our extensive FAQ?
>>
>> http://www.postgresql.org/docs/faq
> ------- End of Original Message -------
>
>
----
Marc G. Fournier Hub.Org Networking Services (http://www.hub.org)
Email . scrappy@hub.org MSN . scrappy@hub.org
Yahoo . yscrappy Skype: hub.org ICQ . 7615664
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: scrappy@postgresql.org, jim@contactbda.com
Subject: Re: DBD::Pg ... how would I format this prepare?
In-Reply-To: <20060726210458.I1188@ganymede.hub.org>
* 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