• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

taosdata / TDengine / #4897

25 Dec 2025 10:17AM UTC coverage: 65.717% (-0.2%) from 65.929%
#4897

push

travis-ci

web-flow
fix: [6622889291] Fix invalid rowSize. (#34043)

186011 of 283047 relevant lines covered (65.72%)

113853896.64 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

69.1
/source/client/wrapper/src/wrapperFunc.c
1
/*
2
 * Copyright (c) 2025 TAOS Data, Inc. <jhtao@taosdata.com>
3
 *
4
 * This program is free software: you can use, redistribute, and/or modify
5
 * it under the terms of the GNU Affero General Public License, version 3
6
 * or later ("AGPL"), as published by the Free Software Foundation.
7
 *
8
 * This program is distributed in the hope that it will be useful, but WITHOUT
9
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
 * FITNESS FOR A PARTICULAR PURPOSE.
11
 *
12
 * You should have received a copy of the GNU Affero General Public License
13
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14
 */
15

16
#include "version.h"
17
#include "wrapper.h"
18

19
static TdThreadOnce tsDriverOnce = PTHREAD_ONCE_INIT;
20
volatile int32_t    tsDriverOnceRet = 0;
21

22
static TdThreadOnce tsInitOnce = PTHREAD_ONCE_INIT;
23
volatile int32_t    tsInitOnceRet = 0;
24

25
#define ERR_VOID(code) \
26
  terrno = code;       \
27
  return;
28

29
#define ERR_PTR(code) \
30
  terrno = code;      \
31
  return NULL;
32

33
#define ERR_INT(code) \
34
  terrno = code;      \
35
  return -1;
36

37
#define ERR_BOOL(code) \
38
  terrno = code;       \
39
  return false;
40

41
#define ERR_CONFRET(code)           \
42
  terrno = code;                    \
43
  setConfRet ret = {.retCode = -1}; \
44
  return ret;
45

46
#define CHECK_VOID(fp)               \
47
  if (tsDriver == NULL) {            \
48
    ERR_VOID(TSDB_CODE_DLL_NOT_LOAD) \
49
  }                                  \
50
  if (fp == NULL) {                  \
51
    ERR_VOID(TSDB_CODE_DLL_FUNC_NOT_LOAD) \
52
  }
53

54
#define CHECK_PTR(fp)               \
55
  if (tsDriver == NULL) {           \
56
    ERR_PTR(TSDB_CODE_DLL_NOT_LOAD) \
57
  }                                 \
58
  if (fp == NULL) {                 \
59
    ERR_PTR(TSDB_CODE_DLL_FUNC_NOT_LOAD) \
60
  }
61

62
#define CHECK_INT(fp)               \
63
  if (tsDriver == NULL) {           \
64
    ERR_INT(TSDB_CODE_DLL_NOT_LOAD) \
65
  }                                 \
66
  if (fp == NULL) {                 \
67
    ERR_INT(TSDB_CODE_DLL_FUNC_NOT_LOAD) \
68
  }
69

70
#define CHECK_BOOL(fp)               \
71
  if (tsDriver == NULL) {            \
72
    ERR_BOOL(TSDB_CODE_DLL_NOT_LOAD) \
73
  }                                  \
74
  if (fp == NULL) {                  \
75
    ERR_BOOL(TSDB_CODE_DLL_FUNC_NOT_LOAD) \
76
  }
77

78
#define CHECK_CONFRET(fp)               \
79
  if (tsDriver == NULL) {               \
80
    ERR_CONFRET(TSDB_CODE_DLL_NOT_LOAD) \
81
  }                                     \
82
  if (fp == NULL) {                     \
83
    ERR_CONFRET(TSDB_CODE_DLL_FUNC_NOT_LOAD) \
84
  }
85

86
setConfRet taos_set_config(const char *config) {
50✔
87
  if (taos_init() != 0) {
50✔
88
    ERR_CONFRET(TSDB_CODE_DLL_NOT_LOAD)
×
89
  }
90

91
  CHECK_CONFRET(fp_taos_set_config);
50✔
92
  return (*fp_taos_set_config)(config);
50✔
93
}
94

95
static void taos_init_driver(void) {
1,190,142✔
96
  tsDriverOnceRet = taosDriverInit(tsDriverType);
1,190,142✔
97
  if (tsDriverOnceRet != 0) return;
1,190,142✔
98

99
  tsDriverOnceRet = 0;
1,190,142✔
100
}
101
static void taos_init_wrapper(void) {
1,187,653✔
102
  if (fp_taos_init == NULL) {
1,187,653✔
103
    terrno = TSDB_CODE_DLL_FUNC_NOT_LOAD;
×
104
    tsInitOnceRet = -1;
×
105
  } else {
106
    tsInitOnceRet = (*fp_taos_init)();
1,187,653✔
107
  }
108
}
1,187,653✔
109

110
int taos_init(void) {
1,060,096,315✔
111
  (void)taosThreadOnce(&tsDriverOnce, taos_init_driver);
1,060,096,315✔
112
  (void)taosThreadOnce(&tsInitOnce, taos_init_wrapper);
1,060,092,075✔
113
  return tsInitOnceRet;
1,060,091,487✔
114
}
115

116
void taos_cleanup(void) {
831,685✔
117
  CHECK_VOID(fp_taos_cleanup);
831,685✔
118
  (*fp_taos_cleanup)();
831,685✔
119
}
120

121
int taos_options(TSDB_OPTION option, const void *arg, ...) {
1,420,176✔
122
  if (option == TSDB_OPTION_DRIVER) {
1,420,176✔
123
    if (tsDriver == NULL) {
851,913✔
124
      if (strcasecmp((const char *)arg, "native") == 0) {
851,913✔
125
        tsDriverType = DRIVER_NATIVE;
836,946✔
126
        return 0;
836,946✔
127
      }
128
      if (strcasecmp((const char *)arg, "websocket") == 0) {
14,967✔
129
        tsDriverType = DRIVER_WEBSOCKET;
14,967✔
130
        return 0;
14,967✔
131
      }
132
    }
133
    terrno = TSDB_CODE_REPEAT_INIT;
×
134
    return -1;
×
135
  }
136
  (void)taosThreadOnce(&tsDriverOnce, taos_init_driver);
568,263✔
137

138
  CHECK_INT(fp_taos_options);
568,263✔
139
  return (*fp_taos_options)(option, arg);
568,263✔
140
}
141

142
int taos_options_connection(TAOS *taos, TSDB_OPTION_CONNECTION option, const void *arg, ...) {
×
143
  CHECK_INT(fp_taos_options_connection);
×
144
  return (*fp_taos_options_connection)(taos, option, (const char *)arg);
×
145
}
146

147
TAOS *taos_connect(const char *ip, const char *user, const char *pass, const char *db, uint16_t port) {
2,701,148✔
148
  if (taos_init() != 0) {
2,701,148✔
149
    //terrno = TSDB_CODE_DLL_NOT_LOAD;
150
    return NULL;
×
151
  }
152

153
  CHECK_PTR(fp_taos_connect);
2,700,918✔
154
  return (*fp_taos_connect)(ip, user, pass, db, port);
2,700,918✔
155
}
156

157
TAOS *taos_connect_totp(const char *ip, const char *user, const char *pass, const char* totp, const char *db, uint16_t port) {
35✔
158
  if (taos_init() != 0) {
35✔
159
    terrno = TSDB_CODE_DLL_NOT_LOAD;
×
160
    return NULL;
×
161
  }
162

163
  CHECK_PTR(fp_taos_connect_totp);
35✔
164
  return (*fp_taos_connect_totp)(ip, user, pass, totp, db, port);
35✔
165
}
166

167
int taos_connect_test(const char *ip, const char *user, const char *pass, const char* totp, const char *db, uint16_t port) {
×
168
  if (taos_init() != 0) {
×
169
    return TSDB_CODE_DLL_NOT_LOAD;
×
170
  }
171
  if (tsDriver == NULL) {
×
172
    return TSDB_CODE_DLL_NOT_LOAD;
×
173
  }
174
  if (fp_taos_connect_test == NULL) {
×
175
    return TSDB_CODE_DLL_FUNC_NOT_LOAD;
×
176
  }
177
  return (*fp_taos_connect_test)(ip, user, pass, totp, db, port);
×
178
}
179

180
TAOS *taos_connect_token(const char *ip, const char *token, const char *db, uint16_t port) {
×
181
  if (taos_init() != 0) {
×
182
    terrno = TSDB_CODE_DLL_NOT_LOAD;
×
183
    return NULL;
×
184
  }
185

186
  CHECK_PTR(fp_taos_connect_token);
×
187
  return (*fp_taos_connect_token)(ip, token, db, port);
×
188
}
189

190
TAOS *taos_connect_auth(const char *ip, const char *user, const char *auth, const char *db, uint16_t port) {
324✔
191
  if (taos_init() != 0) {
324✔
192
    terrno = TSDB_CODE_DLL_NOT_LOAD;
×
193
    return NULL;
×
194
  }
195

196
  CHECK_PTR(fp_taos_connect_auth);
324✔
197
  return (*fp_taos_connect_auth)(ip, user, auth, db, port);
324✔
198
}
199

200
void taos_set_option(OPTIONS *options, const char *key, const char *value) {
×
201
  if (taos_init() != 0) {
×
202
    return;
×
203
  }
204

205
  CHECK_VOID(fp_taos_set_option);
×
206
  (*fp_taos_set_option)(options, key, value);
×
207
}
208

209
TAOS *taos_connect_with(const OPTIONS *options) {
×
210
  if (taos_init() != 0) {
×
211
    return NULL;
×
212
  }
213

214
  CHECK_PTR(fp_taos_connect_with);
×
215
  return (*fp_taos_connect_with)(options);
×
216
}
217

218
TAOS *taos_connect_with_dsn(const char *dsn) {
840✔
219
  if (taos_init() != 0) {
840✔
220
    return NULL;
×
221
  }
222

223
  CHECK_PTR(fp_taos_connect_with_dsn);
840✔
224
  return (*fp_taos_connect_with_dsn)(dsn);
840✔
225
}
226

227
void taos_close(TAOS *taos) {
2,686,654✔
228
  CHECK_VOID(fp_taos_close);
2,686,654✔
229
  (*fp_taos_close)(taos);
2,686,654✔
230
}
231

232
const char *taos_data_type(int type) {
×
233
  (void)taos_init();
×
234
  CHECK_PTR(fp_taos_data_type);
×
235
  return (*fp_taos_data_type)(type);
×
236
}
237

238
TAOS_STMT *taos_stmt_init(TAOS *taos) {
332,411✔
239
  CHECK_PTR(fp_taos_stmt_init);
332,411✔
240
  return (*fp_taos_stmt_init)(taos);
332,411✔
241
}
242

243
TAOS_STMT *taos_stmt_init_with_reqid(TAOS *taos, int64_t reqid) {
11,449✔
244
  CHECK_PTR(fp_taos_stmt_init_with_reqid);
11,449✔
245
  return (*fp_taos_stmt_init_with_reqid)(taos, reqid);
11,449✔
246
}
247

248
TAOS_STMT *taos_stmt_init_with_options(TAOS *taos, TAOS_STMT_OPTIONS *options) {
22,580✔
249
  CHECK_PTR(fp_taos_stmt_init_with_options);
22,580✔
250
  return (*fp_taos_stmt_init_with_options)(taos, options);
22,580✔
251
}
252

253
int taos_stmt_prepare(TAOS_STMT *stmt, const char *sql, unsigned long length) {
684,892✔
254
  CHECK_INT(fp_taos_stmt_prepare);
684,892✔
255
  return (*fp_taos_stmt_prepare)(stmt, sql, length);
684,892✔
256
}
257

258
int taos_stmt_set_tbname_tags(TAOS_STMT *stmt, const char *name, TAOS_MULTI_BIND *tags) {
7,422✔
259
  CHECK_INT(fp_taos_stmt_set_tbname_tags);
7,422✔
260
  return (*fp_taos_stmt_set_tbname_tags)(stmt, name, tags);
7,422✔
261
}
262

263
int taos_stmt_set_tbname(TAOS_STMT *stmt, const char *name) {
14,661,590✔
264
  CHECK_INT(fp_taos_stmt_set_tbname);
14,661,590✔
265
  return (*fp_taos_stmt_set_tbname)(stmt, name);
14,661,590✔
266
}
267

268
int taos_stmt_set_tags(TAOS_STMT *stmt, TAOS_MULTI_BIND *tags) {
595✔
269
  CHECK_INT(fp_taos_stmt_set_tags);
595✔
270
  return (*fp_taos_stmt_set_tags)(stmt, tags);
595✔
271
}
272

273
int taos_stmt_set_sub_tbname(TAOS_STMT *stmt, const char *name) {
×
274
  CHECK_INT(fp_taos_stmt_set_sub_tbname);
×
275
  return (*fp_taos_stmt_set_sub_tbname)(stmt, name);
×
276
}
277

278
int taos_stmt_get_tag_fields(TAOS_STMT *stmt, int *fieldNum, TAOS_FIELD_E **fields) {
×
279
  CHECK_INT(fp_taos_stmt_get_tag_fields);
×
280
  return (*fp_taos_stmt_get_tag_fields)(stmt, fieldNum, fields);
×
281
}
282

283
int taos_stmt_get_col_fields(TAOS_STMT *stmt, int *fieldNum, TAOS_FIELD_E **fields) {
×
284
  CHECK_INT(fp_taos_stmt_get_col_fields);
×
285
  return (*fp_taos_stmt_get_col_fields)(stmt, fieldNum, fields);
×
286
}
287

288
void taos_stmt_reclaim_fields(TAOS_STMT *stmt, TAOS_FIELD_E *fields) {
×
289
  CHECK_VOID(fp_taos_stmt_reclaim_fields);
×
290
  (*fp_taos_stmt_reclaim_fields)(stmt, fields);
×
291
}
292

293
int taos_stmt_is_insert(TAOS_STMT *stmt, int *insert) {
×
294
  CHECK_INT(fp_taos_stmt_is_insert);
×
295
  return (*fp_taos_stmt_is_insert)(stmt, insert);
×
296
}
297

298
int taos_stmt_num_params(TAOS_STMT *stmt, int *nums) {
×
299
  CHECK_INT(fp_taos_stmt_num_params);
×
300
  return (*fp_taos_stmt_num_params)(stmt, nums);
×
301
}
302

303
int taos_stmt_get_param(TAOS_STMT *stmt, int idx, int *type, int *bytes) {
×
304
  CHECK_INT(fp_taos_stmt_get_param);
×
305
  return (*fp_taos_stmt_get_param)(stmt, idx, type, bytes);
×
306
}
307

308
int taos_stmt_bind_param(TAOS_STMT *stmt, TAOS_MULTI_BIND *bind) {
31,662✔
309
  CHECK_INT(fp_taos_stmt_bind_param);
31,662✔
310
  return (*fp_taos_stmt_bind_param)(stmt, bind);
31,662✔
311
}
312

313
int taos_stmt_bind_param_batch(TAOS_STMT *stmt, TAOS_MULTI_BIND *bind) {
480,429,582✔
314
  CHECK_INT(fp_taos_stmt_bind_param_batch);
480,429,582✔
315
  return (*fp_taos_stmt_bind_param_batch)(stmt, bind);
480,429,582✔
316
}
317

318
int taos_stmt_bind_single_param_batch(TAOS_STMT *stmt, TAOS_MULTI_BIND *bind, int colIdx) {
3,080✔
319
  CHECK_INT(fp_taos_stmt_bind_single_param_batch);
3,080✔
320
  return (*fp_taos_stmt_bind_single_param_batch)(stmt, bind, colIdx);
3,080✔
321
}
322

323
int taos_stmt_add_batch(TAOS_STMT *stmt) {
467,956,286✔
324
  CHECK_INT(fp_taos_stmt_add_batch);
467,956,286✔
325
  return (*fp_taos_stmt_add_batch)(stmt);
467,956,286✔
326
}
327

328
int taos_stmt_execute(TAOS_STMT *stmt) {
5,962,228✔
329
  CHECK_INT(fp_taos_stmt_execute);
5,962,228✔
330
  return (*fp_taos_stmt_execute)(stmt);
5,962,228✔
331
}
332

333
TAOS_RES *taos_stmt_use_result(TAOS_STMT *stmt) {
10,239✔
334
  CHECK_PTR(fp_taos_stmt_use_result);
10,239✔
335
  return (*fp_taos_stmt_use_result)(stmt);
10,239✔
336
}
337

338
int taos_stmt_close(TAOS_STMT *stmt) {
354,589✔
339
  CHECK_INT(fp_taos_stmt_close);
354,589✔
340
  return (*fp_taos_stmt_close)(stmt);
354,589✔
341
}
342

343
char *taos_stmt_errstr(TAOS_STMT *stmt) {
10,746✔
344
  CHECK_PTR(fp_taos_stmt_errstr);
10,746✔
345
  return (*fp_taos_stmt_errstr)(stmt);
10,746✔
346
}
347

348
int taos_stmt_affected_rows(TAOS_STMT *stmt) {
2,903✔
349
  CHECK_INT(fp_taos_stmt_affected_rows);
2,903✔
350
  return (*fp_taos_stmt_affected_rows)(stmt);
2,903✔
351
}
352

353
int taos_stmt_affected_rows_once(TAOS_STMT *stmt) {
290✔
354
  CHECK_INT(fp_taos_stmt_affected_rows_once);
290✔
355
  return (*fp_taos_stmt_affected_rows_once)(stmt);
290✔
356
}
357

358
TAOS_STMT2 *taos_stmt2_init(TAOS *taos, TAOS_STMT2_OPTION *option) {
22,784✔
359
  CHECK_PTR(fp_taos_stmt2_init);
22,784✔
360
  return (*fp_taos_stmt2_init)(taos, option);
22,784✔
361
}
362

363
int taos_stmt2_prepare(TAOS_STMT2 *stmt, const char *sql, unsigned long length) {
23,032✔
364
  CHECK_INT(fp_taos_stmt2_prepare);
23,032✔
365
  return (*fp_taos_stmt2_prepare)(stmt, sql, length);
23,032✔
366
}
367

368
int taos_stmt2_bind_param(TAOS_STMT2 *stmt, TAOS_STMT2_BINDV *bindv, int32_t col_idx) {
4,087,715✔
369
  CHECK_INT(fp_taos_stmt2_bind_param);
4,087,715✔
370
  return (*fp_taos_stmt2_bind_param)(stmt, bindv, col_idx);
4,087,715✔
371
}
372

373
int taos_stmt2_bind_param_a(TAOS_STMT2 *stmt, TAOS_STMT2_BINDV *bindv, int32_t col_idx, __taos_async_fn_t fp,
×
374
                            void *param) {
375
  CHECK_INT(fp_taos_stmt2_bind_param_a);
×
376
  return (*fp_taos_stmt2_bind_param_a)(stmt, bindv, col_idx, fp, param);
×
377
}
378

379
int taos_stmt2_exec(TAOS_STMT2 *stmt, int *affected_rows) {
4,091,169✔
380
  CHECK_INT(fp_taos_stmt2_exec);
4,091,169✔
381
  return (*fp_taos_stmt2_exec)(stmt, affected_rows);
4,091,169✔
382
}
383

384
int taos_stmt2_close(TAOS_STMT2 *stmt) {
22,784✔
385
  CHECK_INT(fp_taos_stmt2_close);
22,784✔
386
  return (*fp_taos_stmt2_close)(stmt);
22,784✔
387
}
388

389
int taos_stmt2_is_insert(TAOS_STMT2 *stmt, int *insert) {
106✔
390
  CHECK_INT(fp_taos_stmt2_is_insert);
106✔
391
  return (*fp_taos_stmt2_is_insert)(stmt, insert);
106✔
392
}
393

394
int taos_stmt2_get_fields(TAOS_STMT2 *stmt, int *count, TAOS_FIELD_ALL **fields) {
77✔
395
  CHECK_INT(fp_taos_stmt2_get_fields);
77✔
396
  return (*fp_taos_stmt2_get_fields)(stmt, count, fields);
77✔
397
}
398

399
void taos_stmt2_free_fields(TAOS_STMT2 *stmt, TAOS_FIELD_ALL *fields) {
77✔
400
  CHECK_VOID(fp_taos_stmt2_free_fields);
77✔
401
  (*fp_taos_stmt2_free_fields)(stmt, fields);
77✔
402
}
403

404
TAOS_RES *taos_stmt2_result(TAOS_STMT2 *stmt) {
29✔
405
  CHECK_PTR(fp_taos_stmt2_result);
29✔
406
  return (*fp_taos_stmt2_result)(stmt);
29✔
407
}
408

409
char *taos_stmt2_error(TAOS_STMT2 *stmt) {
×
410
  CHECK_PTR(fp_taos_stmt2_error);
×
411
  return (*fp_taos_stmt2_error)(stmt);
×
412
}
413

414
TAOS_RES *taos_query(TAOS *taos, const char *sql) {
728,036,812✔
415
  CHECK_PTR(fp_taos_query);
728,036,812✔
416
  return (*fp_taos_query)(taos, sql);
728,036,812✔
417
}
418

419
TAOS_RES *taos_query_with_reqid(TAOS *taos, const char *sql, int64_t reqId) {
2,368,142✔
420
  CHECK_PTR(fp_taos_query_with_reqid);
2,368,142✔
421
  return (*fp_taos_query_with_reqid)(taos, sql, reqId);
2,368,142✔
422
}
423

424
TAOS_ROW taos_fetch_row(TAOS_RES *res) {
1,245,469,575✔
425
  CHECK_PTR(fp_taos_fetch_row);
1,245,469,575✔
426
  return (*fp_taos_fetch_row)(res);
1,245,469,575✔
427
}
428

429
int taos_result_precision(TAOS_RES *res) {
109,477,501✔
430
  CHECK_INT(fp_taos_result_precision);
109,477,501✔
431
  return (*fp_taos_result_precision)(res);
109,477,501✔
432
}
433

434
void taos_free_result(TAOS_RES *res) {
730,787,183✔
435
  CHECK_VOID(fp_taos_free_result);
730,787,183✔
436
  return (*fp_taos_free_result)(res);
730,787,183✔
437
}
438

439
void taos_kill_query(TAOS *taos) {
1,203✔
440
  CHECK_VOID(fp_taos_kill_query);
1,203✔
441
  return (*fp_taos_kill_query)(taos);
1,203✔
442
}
443

444
int taos_field_count(TAOS_RES *res) {
2,024,335,614✔
445
  CHECK_INT(fp_taos_field_count);
2,024,335,614✔
446
  return (*fp_taos_field_count)(res);
2,024,335,614✔
447
}
448

449
int taos_num_fields(TAOS_RES *res) {
1,137,556,100✔
450
  CHECK_INT(fp_taos_num_fields);
1,137,556,100✔
451
  return (*fp_taos_num_fields)(res);
1,137,556,100✔
452
}
453

454
int taos_affected_rows(TAOS_RES *res) {
506,829,130✔
455
  CHECK_INT(fp_taos_affected_rows);
506,829,130✔
456
  return (*fp_taos_affected_rows)(res);
506,829,130✔
457
}
458

459
int64_t taos_affected_rows64(TAOS_RES *res) {
1,342,315✔
460
  CHECK_INT(fp_taos_affected_rows64);
1,342,315✔
461
  return (*fp_taos_affected_rows64)(res);
1,342,315✔
462
}
463

464
TAOS_FIELD *taos_fetch_fields(TAOS_RES *res) {
204,419,453✔
465
  CHECK_PTR(fp_taos_fetch_fields);
204,419,453✔
466
  return (*fp_taos_fetch_fields)(res);
204,419,453✔
467
}
468

469
TAOS_FIELD_E *taos_fetch_fields_e(TAOS_RES *res) {
1,099✔
470
  CHECK_PTR(fp_taos_fetch_fields_e);
1,099✔
471
  return (*fp_taos_fetch_fields_e)(res);
1,099✔
472
}
473

474
int taos_select_db(TAOS *taos, const char *db) {
110,337✔
475
  CHECK_INT(fp_taos_select_db);
110,337✔
476
  return (*fp_taos_select_db)(taos, db);
110,337✔
477
}
478

479
int taos_print_row(char *str, TAOS_ROW row, TAOS_FIELD *fields, int num_fields) {
77,719,647✔
480
  CHECK_INT(fp_taos_print_row);
77,719,647✔
481
  return (*fp_taos_print_row)(str, row, fields, num_fields);
77,719,647✔
482
}
483

484
int taos_print_row_with_size(char *str, uint32_t size, TAOS_ROW row, TAOS_FIELD *fields, int num_fields) {
77,745,419✔
485
  CHECK_INT(fp_taos_print_row_with_size);
77,745,419✔
486
  return (*fp_taos_print_row_with_size)(str, size, row, fields, num_fields);
77,745,419✔
487
}
488

489
void taos_stop_query(TAOS_RES *res) {
131,674,291✔
490
  CHECK_VOID(fp_taos_stop_query);
131,674,291✔
491
  (*fp_taos_stop_query)(res);
131,674,291✔
492
}
493

494
bool taos_is_null(TAOS_RES *res, int32_t row, int32_t col) {
×
495
  CHECK_BOOL(fp_taos_is_null);
×
496
  return (*fp_taos_is_null)(res, row, col);
×
497
}
498

499
int taos_is_null_by_column(TAOS_RES *res, int columnIndex, bool result[], int *rows) {
327,868,224✔
500
  CHECK_INT(fp_taos_is_null_by_column);
327,868,224✔
501
  return (*fp_taos_is_null_by_column)(res, columnIndex, result, rows);
327,868,224✔
502
}
503

504
bool taos_is_update_query(TAOS_RES *res) {
772,899✔
505
  CHECK_BOOL(fp_taos_is_update_query);
772,899✔
506
  return (*fp_taos_is_update_query)(res);
772,899✔
507
}
508

509
int taos_fetch_block(TAOS_RES *res, TAOS_ROW *rows) {
164,495,569✔
510
  CHECK_INT(fp_taos_fetch_block);
164,495,569✔
511
  return (*fp_taos_fetch_block)(res, rows);
164,495,569✔
512
}
513

514
int taos_fetch_block_s(TAOS_RES *res, int *numOfRows, TAOS_ROW *rows) {
×
515
  CHECK_INT(fp_taos_fetch_block_s);
×
516
  return (*fp_taos_fetch_block_s)(res, numOfRows, rows);
×
517
}
518

519
int taos_fetch_raw_block(TAOS_RES *res, int *numOfRows, void **pData) {
127,378✔
520
  CHECK_INT(fp_taos_fetch_raw_block);
127,378✔
521
  return (*fp_taos_fetch_raw_block)(res, numOfRows, pData);
127,378✔
522
}
523

524
int *taos_get_column_data_offset(TAOS_RES *res, int columnIndex) {
111,378,682✔
525
  CHECK_PTR(fp_taos_get_column_data_offset);
111,378,682✔
526
  return (*fp_taos_get_column_data_offset)(res, columnIndex);
111,378,682✔
527
}
528

529
int taos_validate_sql(TAOS *taos, const char *sql) {
×
530
  CHECK_INT(fp_taos_validate_sql);
×
531
  return (*fp_taos_validate_sql)(taos, sql);
×
532
}
533

534
void taos_reset_current_db(TAOS *taos) {
×
535
  CHECK_VOID(fp_taos_reset_current_db);
×
536
  (*fp_taos_reset_current_db)(taos);
×
537
}
538

539
int *taos_fetch_lengths(TAOS_RES *res) {
1,159,222,967✔
540
  CHECK_PTR(fp_taos_fetch_lengths);
1,159,222,967✔
541
  return (*fp_taos_fetch_lengths)(res);
1,159,222,967✔
542
}
543

544
TAOS_ROW *taos_result_block(TAOS_RES *res) {
×
545
  CHECK_PTR(fp_taos_result_block);
×
546
  return (*fp_taos_result_block)(res);
×
547
}
548

549
const char *taos_get_server_info(TAOS *taos) {
46,269✔
550
  CHECK_PTR(fp_taos_get_server_info);
46,269✔
551
  return (*fp_taos_get_server_info)(taos);
46,269✔
552
}
553

554
const char *taos_get_client_info() {
1,346,615✔
555
  if (fp_taos_get_client_info == NULL) {
1,346,615✔
556
    return td_version;
614,160✔
557
  } else {
558
    return (*fp_taos_get_client_info)();
732,455✔
559
  }
560
}
561

562
int taos_get_current_db(TAOS *taos, char *database, int len, int *required) {
×
563
  CHECK_INT(fp_taos_get_current_db);
×
564
  return (*fp_taos_get_current_db)(taos, database, len, required);
×
565
}
566

567
int taos_get_connection_info(TAOS *taos, TSDB_CONNECTION_INFO info, char *buffer, int* len) {
×
568
  CHECK_INT(fp_taos_get_connection_info);
×
569
  return (*fp_taos_get_connection_info)(taos, info, buffer, len);
×
570
}
571

572
const char *taos_errstr(TAOS_RES *res) {
84,215,286✔
573
  (void)taos_init();
84,215,286✔
574
  if (fp_taos_errstr == NULL) {
84,215,286✔
575
    return tstrerror(terrno);
×
576
  }
577
  return (*fp_taos_errstr)(res);
84,215,286✔
578
}
579

580
int taos_errno(TAOS_RES *res) {
969,609,714✔
581
  (void)taos_init();
969,609,714✔
582
  if (fp_taos_errno == NULL) {
969,605,582✔
583
    return terrno;
×
584
  }
585
  return (*fp_taos_errno)(res);
969,605,582✔
586
}
587

588
void taos_query_a(TAOS *taos, const char *sql, __taos_async_fn_t fp, void *param) {
3,930✔
589
  CHECK_VOID(fp_taos_query_a);
3,930✔
590
  (*fp_taos_query_a)(taos, sql, fp, param);
3,930✔
591
}
592

593
void taos_query_a_with_reqid(TAOS *taos, const char *sql, __taos_async_fn_t fp, void *param, int64_t reqid) {
×
594
  CHECK_VOID(fp_taos_query_a_with_reqid);
×
595
  (*fp_taos_query_a_with_reqid)(taos, sql, fp, param, reqid);
×
596
}
597

598
void taos_fetch_rows_a(TAOS_RES *res, __taos_async_fn_t fp, void *param) {
33,827,749✔
599
  CHECK_VOID(fp_taos_fetch_rows_a);
33,827,749✔
600
  (*fp_taos_fetch_rows_a)(res, fp, param);
33,827,749✔
601
}
602

603
void taos_fetch_raw_block_a(TAOS_RES *res, __taos_async_fn_t fp, void *param) {
476✔
604
  CHECK_VOID(fp_taos_fetch_raw_block_a);
476✔
605
  (*fp_taos_fetch_raw_block_a)(res, fp, param);
476✔
606
}
607

608
const void *taos_get_raw_block(TAOS_RES *res) {
280✔
609
  CHECK_PTR(fp_taos_get_raw_block);
280✔
610
  return (*fp_taos_get_raw_block)(res);
280✔
611
}
612

613
int taos_get_db_route_info(TAOS *taos, const char *db, TAOS_DB_ROUTE_INFO *dbInfo) {
×
614
  CHECK_INT(fp_taos_get_db_route_info);
×
615
  return (*fp_taos_get_db_route_info)(taos, db, dbInfo);
×
616
}
617

618
int taos_get_table_vgId(TAOS *taos, const char *db, const char *table, int *vgId) {
×
619
  CHECK_INT(fp_taos_get_table_vgId);
×
620
  return (*fp_taos_get_table_vgId)(taos, db, table, vgId);
×
621
}
622

623
int taos_get_tables_vgId(TAOS *taos, const char *db, const char *table[], int tableNum, int *vgId) {
×
624
  CHECK_INT(fp_taos_get_tables_vgId);
×
625
  return (*fp_taos_get_tables_vgId)(taos, db, table, tableNum, vgId);
×
626
}
627

628
int taos_load_table_info(TAOS *taos, const char *tableNameList) {
1,278✔
629
  CHECK_INT(fp_taos_load_table_info);
1,278✔
630
  return (*fp_taos_load_table_info)(taos, tableNameList);
1,278✔
631
}
632

633
void taos_set_hb_quit(int8_t quitByKill) {
732,742✔
634
  if (taos_init() != 0) {
732,742✔
635
    return;
×
636
  }
637

638
  CHECK_VOID(fp_taos_set_hb_quit);
732,742✔
639
  return (*fp_taos_set_hb_quit)(quitByKill);
732,742✔
640
}
641

642
int taos_set_notify_cb(TAOS *taos, __taos_notify_fn_t fp, void *param, int type) {
2,660✔
643
  CHECK_INT(fp_taos_set_notify_cb);
2,660✔
644
  return (*fp_taos_set_notify_cb)(taos, fp, param, type);
2,660✔
645
}
646

647
void taos_fetch_whitelist_a(TAOS *taos, __taos_async_whitelist_fn_t fp, void *param) {
×
648
  CHECK_VOID(fp_taos_fetch_whitelist_a);
×
649
  return (*fp_taos_fetch_whitelist_a)(taos, fp, param);
×
650
}
651

652
void taos_fetch_whitelist_dual_stack_a(TAOS *taos, __taos_async_whitelist_dual_stack_fn_t fp, void *param) {
×
653
  CHECK_VOID(fp_taos_fetch_whitelist_dual_stack_a);
×
654
  return (*fp_taos_fetch_whitelist_dual_stack_a)(taos, fp, param);
×
655
}
656

657
void taos_fetch_ip_whitelist_a(TAOS *taos, __taos_async_ip_whitelist_fn_t fp, void *param) {
×
658
  CHECK_VOID(fp_taos_fetch_ip_whitelist_a);
×
659
  return (*fp_taos_fetch_ip_whitelist_a)(taos, fp, param);
×
660
}
661

662
void taos_fetch_datetime_whitelist_a(TAOS *taos, __taos_async_datetime_whitelist_fn_t fp, void *param) {
×
663
  CHECK_VOID(fp_taos_fetch_datetime_whitelist_a);
×
664
  return (*fp_taos_fetch_datetime_whitelist_a)(taos, fp, param);
×
665
}
666

667
int taos_set_conn_mode(TAOS *taos, int mode, int value) {
2,616✔
668
  CHECK_INT(fp_taos_set_conn_mode);
2,616✔
669
  return (*fp_taos_set_conn_mode)(taos, mode, value);
2,616✔
670
}
671

672
TAOS_RES *taos_schemaless_insert(TAOS *taos, char *lines[], int numLines, int protocol, int precision) {
549,360✔
673
  CHECK_PTR(fp_taos_schemaless_insert);
549,360✔
674
  return (*fp_taos_schemaless_insert)(taos, lines, numLines, protocol, precision);
549,360✔
675
}
676

677
TAOS_RES *taos_schemaless_insert_with_reqid(TAOS *taos, char *lines[], int numLines, int protocol, int precision,
×
678
                                            int64_t reqid) {
679
  CHECK_PTR(fp_taos_schemaless_insert_with_reqid);
×
680
  return (*fp_taos_schemaless_insert_with_reqid)(taos, lines, numLines, protocol, precision, reqid);
×
681
}
682

683
TAOS_RES *taos_schemaless_insert_raw(TAOS *taos, char *lines, int len, int32_t *totalRows, int protocol,
83✔
684
                                     int precision) {
685
  CHECK_PTR(fp_taos_schemaless_insert_raw);
83✔
686
  return (*fp_taos_schemaless_insert_raw)(taos, lines, len, totalRows, protocol, precision);
83✔
687
}
688

689
TAOS_RES *taos_schemaless_insert_raw_with_reqid(TAOS *taos, char *lines, int len, int32_t *totalRows, int protocol,
111✔
690
                                                int precision, int64_t reqid) {
691
  CHECK_PTR(fp_taos_schemaless_insert_raw_with_reqid);
111✔
692
  return (*fp_taos_schemaless_insert_raw_with_reqid)(taos, lines, len, totalRows, protocol, precision, reqid);
111✔
693
}
694

695
TAOS_RES *taos_schemaless_insert_ttl(TAOS *taos, char *lines[], int numLines, int protocol, int precision,
×
696
                                     int32_t ttl) {
697
  CHECK_PTR(fp_taos_schemaless_insert_ttl);
×
698
  return (*fp_taos_schemaless_insert_ttl)(taos, lines, numLines, protocol, precision, ttl);
×
699
}
700

701
TAOS_RES *taos_schemaless_insert_ttl_with_reqid(TAOS *taos, char *lines[], int numLines, int protocol, int precision,
106,433✔
702
                                                int32_t ttl, int64_t reqid) {
703
  CHECK_PTR(fp_taos_schemaless_insert_ttl_with_reqid);
106,433✔
704
  return (*fp_taos_schemaless_insert_ttl_with_reqid)(taos, lines, numLines, protocol, precision, ttl, reqid);
106,433✔
705
}
706

707
TAOS_RES *taos_schemaless_insert_raw_ttl(TAOS *taos, char *lines, int len, int32_t *totalRows, int protocol,
×
708
                                         int precision, int32_t ttl) {
709
  CHECK_PTR(fp_taos_schemaless_insert_raw_ttl);
×
710
  return (*fp_taos_schemaless_insert_raw_ttl)(taos, lines, len, totalRows, protocol, precision, ttl);
×
711
}
712

713
TAOS_RES *taos_schemaless_insert_raw_ttl_with_reqid(TAOS *taos, char *lines, int len, int32_t *totalRows, int protocol,
353✔
714
                                                    int precision, int32_t ttl, int64_t reqid) {
715
  CHECK_PTR(fp_taos_schemaless_insert_raw_ttl_with_reqid);
353✔
716
  return (*fp_taos_schemaless_insert_raw_ttl_with_reqid)(taos, lines, len, totalRows, protocol, precision, ttl, reqid);
353✔
717
}
718

719
TAOS_RES *taos_schemaless_insert_raw_ttl_with_reqid_tbname_key(TAOS *taos, char *lines, int len, int32_t *totalRows,
×
720
                                                               int protocol, int precision, int32_t ttl, int64_t reqid,
721
                                                               char *tbnameKey) {
722
  CHECK_PTR(fp_taos_schemaless_insert_raw_ttl_with_reqid_tbname_key);
×
723
  return (*fp_taos_schemaless_insert_raw_ttl_with_reqid_tbname_key)(taos, lines, len, totalRows, protocol, precision,
×
724
                                                                    ttl, reqid, tbnameKey);
725
}
726

727
TAOS_RES *taos_schemaless_insert_ttl_with_reqid_tbname_key(TAOS *taos, char *lines[], int numLines, int protocol,
106,691✔
728
                                                           int precision, int32_t ttl, int64_t reqid, char *tbnameKey) {
729
  CHECK_PTR(fp_taos_schemaless_insert_ttl_with_reqid_tbname_key);
106,691✔
730
  return (*fp_taos_schemaless_insert_ttl_with_reqid_tbname_key)(taos, lines, numLines, protocol, precision, ttl, reqid,
106,691✔
731
                                                                tbnameKey);
732
}
733

734
tmq_conf_t *tmq_conf_new() {
21,225✔
735
  (void)taos_init();
21,225✔
736
  CHECK_PTR(fp_tmq_conf_new);
21,225✔
737
  return (*fp_tmq_conf_new)();
21,225✔
738
}
739

740
tmq_conf_res_t tmq_conf_set(tmq_conf_t *conf, const char *key, const char *value) {
118,075✔
741
  CHECK_INT(fp_tmq_conf_set);
118,075✔
742
  return (*fp_tmq_conf_set)(conf, key, value);
118,075✔
743
}
744

745
void tmq_conf_destroy(tmq_conf_t *conf) {
21,225✔
746
  CHECK_VOID(fp_tmq_conf_destroy);
21,225✔
747
  (*fp_tmq_conf_destroy)(conf);
21,225✔
748
}
749

750
void tmq_conf_set_auto_commit_cb(tmq_conf_t *conf, tmq_commit_cb *cb, void *param) {
537✔
751
  CHECK_VOID(fp_tmq_conf_set_auto_commit_cb);
537✔
752
  (*fp_tmq_conf_set_auto_commit_cb)(conf, cb, param);
537✔
753
}
754

755
tmq_list_t *tmq_list_new() {
23,916✔
756
  (void)taos_init();
23,916✔
757
  CHECK_PTR(fp_tmq_list_new);
23,916✔
758
  return (*fp_tmq_list_new)();
23,916✔
759
}
760

761
int32_t tmq_list_append(tmq_list_t *tlist, const char *val) {
21,649✔
762
  CHECK_INT(fp_tmq_list_append);
21,649✔
763
  return (*fp_tmq_list_append)(tlist, val);
21,649✔
764
}
765

766
void tmq_list_destroy(tmq_list_t *tlist) {
23,938✔
767
  CHECK_VOID(fp_tmq_list_destroy);
23,938✔
768
  (*fp_tmq_list_destroy)(tlist);
23,938✔
769
}
770

771
int32_t tmq_list_get_size(const tmq_list_t *tlist) {
478✔
772
  CHECK_INT(fp_tmq_list_get_size);
478✔
773
  return (*fp_tmq_list_get_size)(tlist);
478✔
774
}
775

776
char **tmq_list_to_c_array(const tmq_list_t *tlist) {
478✔
777
  CHECK_PTR(fp_tmq_list_to_c_array);
478✔
778
  return (*fp_tmq_list_to_c_array)(tlist);
478✔
779
}
780

781
tmq_t *tmq_consumer_new(tmq_conf_t *conf, char *errstr, int32_t errstrLen) {
21,225✔
782
  (void)taos_init();
21,225✔
783
  CHECK_PTR(fp_tmq_consumer_new);
21,225✔
784
  return (*fp_tmq_consumer_new)(conf, errstr, errstrLen);
21,225✔
785
}
786

787
int32_t tmq_subscribe(tmq_t *tmq, const tmq_list_t *topic_list) {
23,739✔
788
  CHECK_INT(fp_tmq_subscribe);
23,739✔
789
  return (*fp_tmq_subscribe)(tmq, topic_list);
23,739✔
790
}
791

792
int32_t tmq_unsubscribe(tmq_t *tmq) {
17,325✔
793
  CHECK_INT(fp_tmq_unsubscribe);
17,325✔
794
  return (*fp_tmq_unsubscribe)(tmq);
17,325✔
795
}
796

797
int32_t tmq_subscription(tmq_t *tmq, tmq_list_t **topics) {
478✔
798
  CHECK_INT(fp_tmq_subscription);
478✔
799
  return (*fp_tmq_subscription)(tmq, topics);
478✔
800
}
801

802
TAOS_RES *tmq_consumer_poll(tmq_t *tmq, int64_t timeout) {
313,633✔
803
  CHECK_PTR(fp_tmq_consumer_poll);
313,633✔
804
  return (*fp_tmq_consumer_poll)(tmq, timeout);
313,633✔
805
}
806

807
int32_t tmq_consumer_close(tmq_t *tmq) {
21,411✔
808
  CHECK_INT(fp_tmq_consumer_close);
21,411✔
809
  return (*fp_tmq_consumer_close)(tmq);
21,411✔
810
}
811

812
int32_t tmq_commit_sync(tmq_t *tmq, const TAOS_RES *msg) {
4,482✔
813
  CHECK_INT(fp_tmq_commit_sync);
4,482✔
814
  return (*fp_tmq_commit_sync)(tmq, msg);
4,482✔
815
}
816

817
void tmq_commit_async(tmq_t *tmq, const TAOS_RES *msg, tmq_commit_cb *cb, void *param) {
×
818
  CHECK_VOID(fp_tmq_commit_async);
×
819
  (*fp_tmq_commit_async)(tmq, msg, cb, param);
×
820
}
821

822
int32_t tmq_commit_offset_sync(tmq_t *tmq, const char *pTopicName, int32_t vgId, int64_t offset) {
290✔
823
  CHECK_INT(fp_tmq_commit_offset_sync);
290✔
824
  return (*fp_tmq_commit_offset_sync)(tmq, pTopicName, vgId, offset);
290✔
825
}
826

827
void tmq_commit_offset_async(tmq_t *tmq, const char *pTopicName, int32_t vgId, int64_t offset, tmq_commit_cb *cb,
×
828
                             void *param) {
829
  CHECK_VOID(fp_tmq_commit_offset_async);
×
830
  (*fp_tmq_commit_offset_async)(tmq, pTopicName, vgId, offset, cb, param);
×
831
}
832

833
int32_t tmq_get_topic_assignment(tmq_t *tmq, const char *pTopicName, tmq_topic_assignment **assignment,
579✔
834
                                 int32_t *numOfAssignment) {
835
  CHECK_INT(fp_tmq_get_topic_assignment);
579✔
836
  return (*fp_tmq_get_topic_assignment)(tmq, pTopicName, assignment, numOfAssignment);
579✔
837
}
838

839
void tmq_free_assignment(tmq_topic_assignment *pAssignment) {
420✔
840
  CHECK_VOID(fp_tmq_free_assignment);
420✔
841
  (*fp_tmq_free_assignment)(pAssignment);
420✔
842
}
843

844
int32_t tmq_offset_seek(tmq_t *tmq, const char *pTopicName, int32_t vgId, int64_t offset) {
743✔
845
  CHECK_INT(fp_tmq_offset_seek);
743✔
846
  return (*fp_tmq_offset_seek)(tmq, pTopicName, vgId, offset);
743✔
847
}
848

849
int64_t tmq_position(tmq_t *tmq, const char *pTopicName, int32_t vgId) {
396✔
850
  CHECK_INT(fp_tmq_position);
396✔
851
  return (*fp_tmq_position)(tmq, pTopicName, vgId);
396✔
852
}
853

854
int64_t tmq_committed(tmq_t *tmq, const char *pTopicName, int32_t vgId) {
462✔
855
  CHECK_INT(fp_tmq_committed);
462✔
856
  return (*fp_tmq_committed)(tmq, pTopicName, vgId);
462✔
857
}
858

859
TAOS *tmq_get_connect(tmq_t *tmq) {
×
860
  CHECK_PTR(fp_tmq_get_connect);
×
861
  return (*fp_tmq_get_connect)(tmq);
×
862
}
863

864
const char *tmq_get_table_name(TAOS_RES *res) {
82,908,778✔
865
  CHECK_PTR(fp_tmq_get_table_name);
82,908,778✔
866
  return (*fp_tmq_get_table_name)(res);
82,908,778✔
867
}
868

869
tmq_res_t tmq_get_res_type(TAOS_RES *res) {
285,517✔
870
  CHECK_INT(fp_tmq_get_res_type);
285,517✔
871
  return (*fp_tmq_get_res_type)(res);
285,517✔
872
}
873

874
const char *tmq_get_topic_name(TAOS_RES *res) {
14,707✔
875
  CHECK_PTR(fp_tmq_get_topic_name);
14,707✔
876
  return (*fp_tmq_get_topic_name)(res);
14,707✔
877
}
878

879
const char *tmq_get_db_name(TAOS_RES *res) {
14,551✔
880
  CHECK_PTR(fp_tmq_get_db_name);
14,551✔
881
  return (*fp_tmq_get_db_name)(res);
14,551✔
882
}
883

884
int32_t tmq_get_vgroup_id(TAOS_RES *res) {
14,707✔
885
  CHECK_INT(fp_tmq_get_vgroup_id);
14,707✔
886
  return (*fp_tmq_get_vgroup_id)(res);
14,707✔
887
}
888

889
int64_t tmq_get_vgroup_offset(TAOS_RES *res) {
182,210✔
890
  CHECK_INT(fp_tmq_get_vgroup_offset);
182,210✔
891
  return (*fp_tmq_get_vgroup_offset)(res);
182,210✔
892
}
893

894
const char *tmq_err2str(int32_t code) {
1,286✔
895
  CHECK_PTR(fp_tmq_err2str);
1,286✔
896
  return (*fp_tmq_err2str)(code);
1,286✔
897
}
898

899
int32_t tmq_get_raw(TAOS_RES *res, tmq_raw_data *raw) {
424✔
900
  CHECK_INT(fp_tmq_get_raw);
424✔
901
  return (*fp_tmq_get_raw)(res, raw);
424✔
902
}
903

904
int32_t tmq_write_raw(TAOS *taos, tmq_raw_data raw) {
268✔
905
  CHECK_INT(fp_tmq_write_raw);
268✔
906
  return (*fp_tmq_write_raw)(taos, raw);
268✔
907
}
908

909
int taos_write_raw_block(TAOS *taos, int numOfRows, char *pData, const char *tbname) {
×
910
  CHECK_INT(fp_taos_write_raw_block);
×
911
  return (*fp_taos_write_raw_block)(taos, numOfRows, pData, tbname);
×
912
}
913

914
int taos_write_raw_block_with_reqid(TAOS *taos, int numOfRows, char *pData, const char *tbname, int64_t reqid) {
×
915
  CHECK_INT(fp_taos_write_raw_block_with_reqid);
×
916
  return (*fp_taos_write_raw_block_with_reqid)(taos, numOfRows, pData, tbname, reqid);
×
917
}
918

919
int taos_write_raw_block_with_fields(TAOS *taos, int rows, char *pData, const char *tbname, TAOS_FIELD *fields,
×
920
                                     int numFields) {
921
  CHECK_INT(fp_taos_write_raw_block_with_fields);
×
922
  return (*fp_taos_write_raw_block_with_fields)(taos, rows, pData, tbname, fields, numFields);
×
923
}
924

925
int taos_write_raw_block_with_fields_with_reqid(TAOS *taos, int rows, char *pData, const char *tbname,
×
926
                                                TAOS_FIELD *fields, int numFields, int64_t reqid) {
927
  CHECK_INT(fp_taos_write_raw_block_with_fields_with_reqid);
×
928
  return (*fp_taos_write_raw_block_with_fields_with_reqid)(taos, rows, pData, tbname, fields, numFields, reqid);
×
929
}
930

931
void tmq_free_raw(tmq_raw_data raw) {
268✔
932
  CHECK_VOID(fp_tmq_free_raw);
268✔
933
  (*fp_tmq_free_raw)(raw);
268✔
934
}
935

936
char *tmq_get_json_meta(TAOS_RES *res) {
698✔
937
  CHECK_PTR(fp_tmq_get_json_meta);
698✔
938
  return (*fp_tmq_get_json_meta)(res);
698✔
939
}
940

941
void tmq_free_json_meta(char *jsonMeta) {
698✔
942
  CHECK_VOID(fp_tmq_free_json_meta);
698✔
943
  return (*fp_tmq_free_json_meta)(jsonMeta);
698✔
944
}
945

946
TSDB_SERVER_STATUS taos_check_server_status(const char *fqdn, int port, char *details, int maxlen) {
502✔
947
  CHECK_INT(fp_taos_check_server_status);
502✔
948
  return (*fp_taos_check_server_status)(fqdn, port, details, maxlen);
502✔
949
}
950

951
void taos_write_crashinfo(int signum, void *sigInfo, void *context) {
×
952
  (void)taos_init();
×
953
  CHECK_VOID(fp_taos_write_crashinfo);
×
954
  (*fp_taos_write_crashinfo)(signum, sigInfo, context);
×
955
}
956

957
char *getBuildInfo() {
×
958
  (void)taos_init();
×
959
  CHECK_PTR(fp_getBuildInfo);
×
960
  return (*fp_getBuildInfo)();
×
961
}
962

963
int32_t taos_connect_is_alive(TAOS *taos) {
×
964
  CHECK_INT(fp_taos_connect_is_alive);
×
965
  return (*fp_taos_connect_is_alive)(taos);
×
966
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc