~ubuntu-branches/ubuntu/intrepid/libdbix-searchbuilder-perl/intrepid

« back to all changes in this revision

Viewing changes to SearchBuilder/Handle/Oracle.pm

  • Committer: Bazaar Package Importer
  • Author(s): Niko Tyni, gregor herrmann, Niko Tyni, Damyan Ivanov
  • Date: 2007-11-28 21:15:08 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20071128211508-qve47dc525badbze
Tags: 1.50-1
[ gregor herrmann ]
* debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
  field (source stanza); Homepage field (source stanza). Removed: XS-
  Vcs-Svn fields.

[ Niko Tyni ]
* New upstream release.
* Minor improvements and cleanups to debian/rules.
* Update debian/copyright and convert it into a machine-parseable format.
* Wrap overlong debian/control dependency lines.
* Remove obsolete build-dependency on libextutils-autoinstall-perl.
* Update debian/watch.

[ Damyan Ivanov ]
* Remove unused dh_installdirs and dh_installman calls

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
    my $self = shift;
246
246
    my $statementref = shift;
247
247
    my $sb = shift;
 
248
 
 
249
    # when we have group by clause then the result set is distinct as
 
250
    # it must contain only columns we group by or results of aggregate
 
251
    # functions which give one result per group, so we can skip DISTINCTing
 
252
    if ( my $group = $sb->_GroupClause ) {
 
253
        $$statementref = "SELECT main.* FROM $$statementref";
 
254
        $$statementref .= $group;
 
255
        $$statementref .= $sb->_OrderClause;
 
256
        return;
 
257
    }
 
258
 
248
259
    my $table = $sb->Table;
249
260
 
250
261
    # Wrapp select query in a subselect as Oracle doesn't allow