This queue is for tickets about the DBIx-Class CPAN distribution.

Report information
The Basics
Id:
94387
Status:
new
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
dariusjokilehto [...] yahoo.co.uk
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



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?


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.