Following Trigger B depends on Trigger A.
Zabbix server does not treat triggers which depend on others since 1.8.7, correctly 1.8.7rc1. Because in the fix
ZBX-3889, svn r21085 the triggers are commited altogether. So, Trigger A has changed and but not commited, Trigger B refers old status of Trigger A. Then also Trigger B is executed.
But till 1.8.6, the triggers are commited step by step. So, Trigger B refers commited Triger A status and is not executed.
The attached patches are for 1.8.15 and resolve the problem by refering uncommitted trigger status which depends on.
They constructed in 2 patches.
zabbix-1.8.15-add-DBget_result_nums-function.patch is for adding the new function which counts the fetched columun number.
zabbix-1.8.15-refer-uncommit-trigger.patch is the target patch.