[Catalyst] now() in insert
Christian Lackas
christian at lackas.net
Fri Feb 6 11:45:55 GMT 2009
* loki <loki at sub5.org> [090206 12:38]:
Hi Loki,
> $c->model('DB::Foo')->create({
> title => 'foo',
> description => 'bar',
> dt => 'NOW()',
you can give a scalar reference here:
dt => \'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
Christian
More information about the Catalyst
mailing list