From 16215fb0768a4af120da7f2fc9bd43e9b17dade0 Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Mon, 28 Mar 2022 15:38:51 +0800 Subject: [PATCH] fix error of careless --- src/client/src/tscParseLineProtocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/tscParseLineProtocol.c b/src/client/src/tscParseLineProtocol.c index 4a32ec451a..28ab8a4c19 100644 --- a/src/client/src/tscParseLineProtocol.c +++ b/src/client/src/tscParseLineProtocol.c @@ -1028,7 +1028,7 @@ static int32_t applyDataPointsWithSqlInsert(TAOS* taos, TAOS_SML_DATA_POINT* poi for (int i = 0; i < info->numBatches; ++i) { SSmlSqlInsertBatch* insertBatch = &info->batches[i]; insertBatch->tryTimes = 1; - taos_query_a(taos, insertBatch->sql, insertCallback, batch); + taos_query_a(taos, insertBatch->sql, insertCallback, insertBatch); batchesExecuted[i] = true; } int32_t triedBatches = info->numBatches; @@ -1064,7 +1064,7 @@ static int32_t applyDataPointsWithSqlInsert(TAOS* taos, TAOS_SML_DATA_POINT* poi SSmlSqlInsertBatch* insertBatch = &info->batches[i]; if (insertBatch->tryAgain) { insertBatch->tryTimes++; - taos_query_a(taos, insertBatch->sql, insertCallback, batch); + taos_query_a(taos, insertBatch->sql, insertCallback, insertBatch); batchesExecuted[i] = true; triedBatches++; } -- GitLab