Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
Revert "SELECT DISTINCT on CLOBs breaks Oracle support"
Browse files Browse the repository at this point in the history
This reverts commit b195821.

refs #3965
  • Loading branch information
lazyfrosch committed Apr 21, 2013
1 parent db11592 commit 4991c66
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 63 deletions.
11 changes: 2 additions & 9 deletions app/modules/Api/actions/ApiSearchAction.class.php
Expand Up @@ -130,21 +130,14 @@ public function executeRead(AgaviRequestDataHolder $rd) {

// Rewrite output, e.g. plugin_output
// see #2598

/** @var $rewrite Api_Result_OutputRewriteModel **/

$rewrite = $this->getContext()->getModel('Result.OutputRewrite', 'Api', array(
'target' => $target,
'optional' => $rd->getParameter('enableRewrite', false)
));

$res = $rewrite->rewrite($res);

// Distinct rows
// see #3965

/** @var $distinct Api_Result_DistinctOutputModel **/
$distinct = $this->getContext()->getModel('Result.DistinctOutput', 'Api');
$res = $distinct->distinctRows($res);


$rd->setParameter("searchResult", $res);

Expand Down
46 changes: 0 additions & 46 deletions app/modules/Api/models/Result/DistinctOutputModel.class.php

This file was deleted.

8 changes: 0 additions & 8 deletions app/modules/Cronks/views/System/ViewProcSuccessView.class.php
Expand Up @@ -139,14 +139,6 @@ public function executeJson(AgaviRequestDataHolder $rd) {
$worker->buildAll();

$data = $worker->fetchDataArray();

// Distinct rows
// see #3965

/** @var $distinct Api_Result_DistinctOutputModel **/
$distinct = $this->getContext()->getModel('Result.DistinctOutput', 'Api');
$data = $distinct->distinctRows($data);

$worker->countResults();

$jsonResult->hasFieldBulk(array_fill_keys($template->getFieldKeys(), ""));
Expand Down

0 comments on commit 4991c66

Please sign in to comment.