[icinga-checkins] icinga.org: icinga-api/master: * Added 'As' also to counts. Is this it? :)
git at icinga.org
git at icinga.org
Wed Sep 29 16:19:43 CEST 2010
Module: icinga-api
Branch: master
Commit: 0f7623d2e9fa985e19a475cb2c86a7e27f916bc7
URL: https://git.icinga.org/?p=icinga-api.git;a=commit;h=0f7623d2e9fa985e19a475cb2c86a7e27f916bc7
Author: jmosshammer <jannis.mosshammer at netways.com>
Date: Wed Sep 29 16:19:27 2010 +0200
* Added 'As' also to counts. Is this it? :)
---
objects/search/IcingaApiSearchIdo.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/objects/search/IcingaApiSearchIdo.php b/objects/search/IcingaApiSearchIdo.php
index 4a6ebc9..c7aeb16 100644
--- a/objects/search/IcingaApiSearchIdo.php
+++ b/objects/search/IcingaApiSearchIdo.php
@@ -153,7 +153,7 @@ class IcingaApiSearchIdo
if ($countFieldsArray == 2) {
$suffix .= '_' . $fieldsArray[1];
}
- $fields = 'count(distinct ' . $fieldsArray[0] . ') ' . $suffix;
+ $fields = 'count(distinct ' . $fieldsArray[0] . ') AS ' . $suffix;
}
break;
More information about the icinga-checkins
mailing list