The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DBIx::Class::Storage::DBI::AmbiguousGlob - Storage component for RDBMS choking on count(*)

DESCRIPTION

Some servers choke on things like:

  COUNT(*) FROM (SELECT tab1.col, tab2.col FROM tab1 JOIN tab2 ... )

claiming that col is a duplicate column (it loses the table specifiers by the time it gets to the *). Thus for any subquery count we select only the primary keys of the main table in the inner query. This hopefully still hits the indexes and keeps the server happy.

At this point the only overridden method is _subq_count_select()

AUTHORS

See "CONTRIBUTORS" in DBIx::Class

LICENSE

You may distribute this code under the same terms as Perl itself.