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>2021-08-10 11:22:48 +0300
committerAndris Zeila <andris.zeila@zabbix.com>2021-08-10 11:23:18 +0300
commitd36207837d1c0f4ee57053b0a5761ae023b1ab8f (patch)
tree4c122cda09554168b3d064bed750d58e0d31b96a /include/db.h
parent98c7db5e78152d3a21ce9415cf6701a2306bd6e6 (diff)
........S. [ZBX-19741] fixed database upgrade patch failing due to large query
Merge in ZBX/zabbix from feature/ZBX-19741-5.4 to release/5.4 * commit 'c4c65aeb93274084cb50fffeeed14347dc9aa386': .D........ [ZBX-19741] added changelog entry ........S. [ZBX-19741] fixed database upgrade patch failing due to large query (cherry picked from commit 5bb5073ad5b5f5e779f47996af1b5b7a14451915)
Diffstat (limited to 'include/db.h')
-rw-r--r--include/db.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/db.h b/include/db.h
index 6fa39c30b37..0dced5e2b57 100644
--- a/include/db.h
+++ b/include/db.h
@@ -692,6 +692,8 @@ int DBfield_exists(const char *table_name, const char *field_name);
int DBindex_exists(const char *table_name, const char *index_name);
#endif
+int DBprepare_multiple_query(const char *query, const char *field_name, zbx_vector_uint64_t *ids, char **sql,
+ size_t *sql_alloc, size_t *sql_offset);
int DBexecute_multiple_query(const char *query, const char *field_name, zbx_vector_uint64_t *ids);
int DBlock_record(const char *table, zbx_uint64_t id, const char *add_field, zbx_uint64_t add_id);
int DBlock_records(const char *table, const zbx_vector_uint64_t *ids);