Hello, Melo On Sat, Nov 28, 2009 at 6:18 PM, Pedro Melo <[email protected]> wrote: >> >> my @words = $schema->resultset('Word')->search(undef, >> {rows => $LIMIT, >> order_by => >> ...???? >> columns => >> ['word']}); > > Untested but try order_by => \'RANDOM()' > > In other places, when you need to put direct SQL, you use a scalar ref.
You're my Bitch :) Thanks :D ambs -- Alberto Simões
_______________________________________________ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/[email protected]
