On 11/2/06, Devin Austin <[EMAIL PROTECTED]> wrote:
so if i'm understanding this correctly, the following code:
> my $user = $schema->resultset('User')->single(
>       {
>           username => $q->param('username'),
>           password => $q->param('password')
>       },
>       {
>         select => [
>           \'userid, COUNT(*) as is_authorized',
>         ],
>       }
>     );

should produce "SELECT userid,  COUNT(*) as is_authorized FROM user WHERE
username=? and password=?". Correct?



Generally speaking the two should be separate, as in: select => [
'userid', \'COUNT(*) as is_authorized' ], but your example query makes
little sense to begin with...

_______________________________________________
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