From 755d7d94393e342840244cde945cb5131d22e386 Mon Sep 17 00:00:00 2001 From: zhaoyanggh Date: Wed, 25 Aug 2021 15:12:18 +0800 Subject: [PATCH] add break --- tests/examples/c/stmt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/examples/c/stmt.c b/tests/examples/c/stmt.c index 0ac7332f09..d05d5c9b92 100644 --- a/tests/examples/c/stmt.c +++ b/tests/examples/c/stmt.c @@ -394,6 +394,7 @@ void taos_stmt_use_result_query(void *taos, char *col, int type) { params->buffer_length = sizeof(v.c2); params->buffer = &v.c2; params->length = ¶ms->buffer_length; + break; case TSDB_DATA_TYPE_BIGINT: params->buffer_length = sizeof(v.c3); params->buffer = &v.c3; @@ -403,6 +404,7 @@ void taos_stmt_use_result_query(void *taos, char *col, int type) { params->buffer_length = sizeof(v.c4); params->buffer = &v.c4; params->length = ¶ms->buffer_length; + break; case TSDB_DATA_TYPE_DOUBLE: params->buffer_length = sizeof(v.c5); params->buffer = &v.c5; @@ -422,6 +424,7 @@ void taos_stmt_use_result_query(void *taos, char *col, int type) { params->buffer_length = sizeof(v.c8); params->buffer = &v.c8; params->length = ¶ms->buffer_length; + break; case TSDB_DATA_TYPE_BOOL: params->buffer_length = sizeof(v.c9); params->buffer = &v.c9; -- GitLab