perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kee Hinckley <naz...@somewhere.com>
Subject Re: Date function w/ DBIx::Recordset
Date Mon, 23 Dec 2002 17:59:27 GMT
At 5:43 PM +0000 12/23/02, Kaare Rasmussen wrote:
>Hi
>I would like to let the database calculate the correct date, so 
>something like this should go into the date column:
>date '2003-1-31' + interval '1 month'
>but DBIx::Recordset does not like this syntax.
>Is it at all possible with DBIx::Recordset?

Use
	'\fieldname'	=> "'2003-1-31' + interval '1 month'",
That tells it not to quote the value, but rely on you to do it.
-- 

Kee Hinckley - Somewhere.Com, LLC
http://consulting.somewhere.com/

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message