[Catalyst] now() in insert

Devin Austin devin.austin at gmail.com
Fri Feb 6 16:40:21 GMT 2009


DateTime also has a ->now method.

On Fri, Feb 6, 2009 at 4:45 AM, Christian Lackas <christian at lackas.net>wrot=
e:

> * loki <loki at sub5.org> [090206 12:38]:
>
> Hi Loki,
>
> >     $c->model('DB::Foo')->create({
> >                     title =3D> 'foo',
> >                     description =3D> 'bar',
> >                     dt =3D> 'NOW()',
>
> you can give a scalar reference here:
>
>                        dt =3D> \'now()'
>
> >                 });
>
> For more details, please see the DBIx::Class documentation, in
> particular the FAQ and the Cookbook, e.g.
>
>
> http://search.cpan.org/~ash/DBIx-Class-0.08010/lib/DBIx/Class/Manual/FAQ.=
pod#Searching<http://search.cpan.org/%7Eash/DBIx-Class-0.08010/lib/DBIx/Cla=
ss/Manual/FAQ.pod#Searching>
>
> Christian
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>



-- =

Devin Austin
http://www.dreamhost.com/r.cgi?326568/hosting.html - Host with DreamHost!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090206/13be4=
b7c/attachment.htm


More information about the Catalyst mailing list