Argh, sorry... I think I finally cracked it:
my $last_hour = "> DATE_SUB( NOW(), INTERVAL 1 HOUR )";
my $current_session = $c->model('SmsDB::Session')->search({ -and => [
{ id => 'foo' },
{ created => \$last_hour }
]});
Apologies for bothering you all!
Best wishes,
Daniel
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/