summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-25 05:51:19 +0000
committeralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-25 05:51:19 +0000
commitc550e0456ecf3da128228d96b0dca88b622d7573 (patch)
tree2b7ef1b700dd076ff1bb04587694987d1ef03c84 /src
parent788f7d989d2f4bf772e8e5d259755cd4e9972e37 (diff)
downloadzabbix-c550e0456ecf3da128228d96b0dca88b622d7573.tar.gz
zabbix-c550e0456ecf3da128228d96b0dca88b622d7573.tar.xz
zabbix-c550e0456ecf3da128228d96b0dca88b622d7573.zip
- fixed PostgreSQL error in synchronization of graphs (Alexei)
[svn merge -r4667:4670 svn://svn.zabbix.com/branches/1.4] git-svn-id: svn://svn.zabbix.com/trunk@4671 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src')
-rw-r--r--src/libs/zbxdbhigh/host.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/zbxdbhigh/host.c b/src/libs/zbxdbhigh/host.c
index e2317a85..f2d96f13 100644
--- a/src/libs/zbxdbhigh/host.c
+++ b/src/libs/zbxdbhigh/host.c
@@ -970,9 +970,9 @@ static ZBX_GRAPH_ITEMS* DBget_same_graphitems_for_host(
for ( i=0; gitems[i].itemid != 0; i++ )
{
- db_items = DBselect("select new.itemid from items new, items dest "
+ db_items = DBselect("select src.itemid from items src, items dest "
" where dest.itemid=" ZBX_FS_UI64
- " and new.key_=dest.key_ and new.hostid=" ZBX_FS_UI64,
+ " and src.key_=dest.key_ and src.hostid=" ZBX_FS_UI64,
gitems[i].itemid, dest_hostid);
if ( (db_item_data = DBfetch(db_items)) )