Subject: | Allow -ident => $col to be passed to the 'select' resultset attribute |
Date: | Wed, 2 Apr 2014 17:15:31 +0100 (BST) |
To: | "bug-DBIx-Class [...] rt.cpan.org" <bug-DBIx-Class [...] rt.cpan.org> |
From: | Darius Jokilehto <dariusjokilehto [...] yahoo.co.uk> |
It would be handy for the 'select' resultset attribute to accept -ident clauses.
However the below code:
$rs->search({}, { select => { -ident => $col, -as => $as } });
Produces the following output:
'SELECT -IDENT($col) AS $as'
Instead of the expected:
'SELECT $col AS $as'
Any reason why the above shouldn't be added to DBIC?