[icinga-checkins] icinga.org: icinga-web/next: Forced no DISTINCT on selecting of BLOB fields

git at icinga.org git at icinga.org
Mon Apr 22 14:14:41 CEST 2013


Module: icinga-web
Branch: next
Commit: c460f0002163721edda6d415927a25026bc0a5d6
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=c460f0002163721edda6d415927a25026bc0a5d6

Author: Markus Frosch <markus at lazyfrosch.de>
Date:   Mon Apr 22 14:14:13 2013 +0200

Forced no DISTINCT on selecting of BLOB fields

Fix for Oracle

refs #3965

---

 app/modules/Api/actions/ApiSearchAction.class.php |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/app/modules/Api/actions/ApiSearchAction.class.php b/app/modules/Api/actions/ApiSearchAction.class.php
index 901b1f8..0b4ec3c 100644
--- a/app/modules/Api/actions/ApiSearchAction.class.php
+++ b/app/modules/Api/actions/ApiSearchAction.class.php
@@ -145,6 +145,7 @@ class Api_ApiSearchAction extends IcingaApiBaseAction {
                 $columns[] = $idfield;
 
                 $search = @$API->createSearch($connection)->setSearchTarget($target);
+                $search->setDistinct(false); // force no distinct here - cause we are selecting BLOBs
                 $search->setResultColumns($columns);
                 $search->setSearchFilter($idfield, $idlist);
 





More information about the icinga-checkins mailing list