On Tue, 19 Sep 2006, Michael Gray wrote:

> Sorry, I'm going round in circles with this one.  How do I do a search 
> to result in:
> 
>  select * from people where soundex(surname) = soundex(?);

Answering my own question, this is easy with search_literal:

  $rset->search_literal('soundex(surname) = soundex(?)', $who);

But out of interest, can this be achieved with a search({}) spec??

-- 
Michael

_______________________________________________
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]/

Reply via email to