diff --git a/tests/script/api/stmt.c b/tests/script/api/stmt.c index aa4c536e22448086584173d4824cf2f7b4f3b0a9..329fb9f6dddee51b88fee8d0ccc8448e23a2f078 100644 --- a/tests/script/api/stmt.c +++ b/tests/script/api/stmt.c @@ -559,7 +559,7 @@ void taos_stmt_use_result_query_json(void *taos, char *col, int type) { params[0].buffer_type = TSDB_DATA_TYPE_NCHAR; params[0].buffer_length = strlen(col); - params[0].buffer = &col; + params[0].buffer = col; params[0].length = ¶ms[0].buffer_length; params[0].is_null = NULL;