diff options
author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-02-05 12:58:15 +0000 |
---|---|---|
committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-02-05 12:58:15 +0000 |
commit | 0c1ad6bd6bf603a55b52c34115506d2b2dcbd294 (patch) | |
tree | ef44d42aa4ac03b2de934add969deca480849eee /frontends/php/include | |
parent | 41c03390864518f792be964ddde297e0a5bbb9e1 (diff) | |
download | zabbix-0c1ad6bd6bf603a55b52c34115506d2b2dcbd294.tar.gz zabbix-0c1ad6bd6bf603a55b52c34115506d2b2dcbd294.tar.xz zabbix-0c1ad6bd6bf603a55b52c34115506d2b2dcbd294.zip |
- fixed SQLs for PostgreSQL (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3791 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
-rw-r--r-- | frontends/php/include/forms.inc.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php index b65baf4f..33f527f1 100644 --- a/frontends/php/include/forms.inc.php +++ b/frontends/php/include/forms.inc.php @@ -3072,11 +3072,10 @@ if($resourcetype == SCREEN_RESOURCE_GRAPH) { // User-defined graph - $result = DBselect("select g.graphid,g.name,n.name as node_name, h.host". + $result = DBselect("select distinct g.graphid,g.name,n.name as node_name, h.host". " from graphs g left join graphs_items gi on g.graphid=gi.graphid left join items i on gi.itemid=i.itemid ". " left join hosts h on h.hostid=i.hostid left join nodes n on n.nodeid=".DBid2nodeid("g.graphid"). " where i.hostid not in (".get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_ONLY,PERM_MODE_LT).")". - " group by graphid,name,node_name". " order by node_name,host,name,graphid" ); |