Source
int __wrap_zbx_db_execute_multiple_query(const char *query, const char *field_name, zbx_vector_uint64_t *ids)
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
/* make sure that __wrap_*() prototypes match unwrapped counterparts */
typedef struct
{
char *data_source;
int num;
}
zbx_mockdb_query_t;
typedef struct
{
zbx_hashset_t queries;
}
zbx_mockdb_t;
static zbx_mockdb_t mockdb;
struct zbx_db_result
{
zbx_db_row_t row;
char *data_source; /* for error messages */
zbx_mock_handle_t rows;
int row_to_fetch; /* for error messages */