[Catalyst] now() in insert

loki loki at sub5.org
Fri Feb 6 11:36:46 GMT 2009


What is normal way to say:

    INSERT INTO foo(title, description, dt) VALUES ('foo', 'bar', NOW());

This obvliously doesn't work:

    $c->model('DB::Foo')->create({
                    title => 'foo',
                    description => 'bar',
                    dt => 'NOW()',
                });

I'm making first steps with Catalyst, using DBIx::Class (MySQL).

Cannot use 'default NOW()' for that table.

Thanks.



More information about the Catalyst mailing list