Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Zeila <andris.zeila@zabbix.com>2022-06-21 13:59:47 +0300
committerAndris Zeila <andris.zeila@zabbix.com>2022-06-21 13:59:47 +0300
commitf3fb36f424064c1251a467e5f6b577c8f7508715 (patch)
treef5260d4400739f869d1fa9df2d78f9a483a61685
parentc2422ad45fc4596153e60c90698831292d723888 (diff)
........S. [ZBX-21145] fixed sql query when copying trigger tags during trigger linking
-rw-r--r--src/libs/zbxdbhigh/trigger_linking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/zbxdbhigh/trigger_linking.c b/src/libs/zbxdbhigh/trigger_linking.c
index cbdd37aa3c6..87b47ef9e30 100644
--- a/src/libs/zbxdbhigh/trigger_linking.c
+++ b/src/libs/zbxdbhigh/trigger_linking.c
@@ -361,7 +361,7 @@ static int DBcopy_template_trigger_tags(const zbx_vector_uint64_t *new_triggerid
" where");
DBadd_condition_alloc(&sql, &sql_alloc, &sql_offset, "t.triggerid", triggerids.values,
triggerids.values_num);
- zbx_strcpy_alloc(&sql, &sql_alloc, &sql_offset, " order by triggerid");
+ zbx_strcpy_alloc(&sql, &sql_alloc, &sql_offset, " order by t.triggerid");
if (NULL == (result = DBselect("%s", sql)))
{