"Oleg Pronin" <[EMAIL PROTECTED]> writes:
> First method is to pass a scalar ref as one column (it will fall directly in
> SQL).
>
> $rs->search(undef,{
> select=>['id', \'round((julianday(date2) - julianday(date1))*86400)'}],
> as => [('id',lastdate')],
> });
>
Thank you, I'll follow this way, it's quite easy.
--
Radek
_______________________________________________
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]/