summaryrefslogtreecommitdiffstats
path: root/src/libs/zbxdbhigh
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-04-03 08:37:04 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-04-03 08:37:04 +0000
commit916277f7e6ad08953f38c949b06cd71716a8b9c4 (patch)
tree9173f6881859e7af371594fb88a52c6974a7a636 /src/libs/zbxdbhigh
parent269993e54f1ba18adc930910d5a4ab6bac5db9e2 (diff)
downloadzabbix-916277f7e6ad08953f38c949b06cd71716a8b9c4.tar.gz
zabbix-916277f7e6ad08953f38c949b06cd71716a8b9c4.tar.xz
zabbix-916277f7e6ad08953f38c949b06cd71716a8b9c4.zip
- fixed template problem in applications (Artem)
- fixes related to compare long id's (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5582 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxdbhigh')
-rw-r--r--src/libs/zbxdbhigh/host.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs/zbxdbhigh/host.c b/src/libs/zbxdbhigh/host.c
index 7a593948..6cbd00b9 100644
--- a/src/libs/zbxdbhigh/host.c
+++ b/src/libs/zbxdbhigh/host.c
@@ -858,6 +858,9 @@ static int DBdelete_history_by_itemid(
if( use_housekeeper )
{
DBexecute("insert into housekeeper (housekeeperid,tablename,field,value)"
+ " values (" ZBX_FS_UI64 ",'history_text','itemid'," ZBX_FS_UI64 ")",
+ DBget_maxid("housekeeper","housekeeperid"), itemid);
+ DBexecute("insert into housekeeper (housekeeperid,tablename,field,value)"
" values (" ZBX_FS_UI64 ",'history_log','itemid'," ZBX_FS_UI64 ")",
DBget_maxid("housekeeper","housekeeperid"), itemid);
DBexecute("insert into housekeeper (housekeeperid,tablename,field,value)"
@@ -872,6 +875,7 @@ static int DBdelete_history_by_itemid(
}
else
{
+ DBexecute("delete from history_text where itemid=" ZBX_FS_UI64, itemid);
DBexecute("delete from history_log where itemid=" ZBX_FS_UI64, itemid);
DBexecute("delete from history_uint where itemid=" ZBX_FS_UI64, itemid);
DBexecute("delete from history_str where itemid=" ZBX_FS_UI64, itemid);