From 174bc6a5680e17fefe0800aade5ed607998ad416 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sat, 7 May 2022 13:58:10 +0800 Subject: [PATCH] refactor:modify schemaless interface --- cmake/cmake.define | 2 +- include/client/taos.h | 2 +- source/client/src/clientSml.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/cmake.define b/cmake/cmake.define index 2b4fe5c42f..aeab39cab4 100644 --- a/cmake/cmake.define +++ b/cmake/cmake.define @@ -46,7 +46,7 @@ ENDIF () IF (TD_WINDOWS) MESSAGE("${Yellow} set compiler flag for Windows! ${ColourReset}") - SET(COMMON_FLAGS "/W3 /D_WIN32 /vmg") + SET(COMMON_FLAGS "/W3 /D_WIN32") # IF (MSVC AND (MSVC_VERSION GREATER_EQUAL 1900)) # SET(COMMON_FLAGS "${COMMON_FLAGS} /Wv:18") diff --git a/include/client/taos.h b/include/client/taos.h index 9d8b5107bb..6e20900668 100644 --- a/include/client/taos.h +++ b/include/client/taos.h @@ -195,7 +195,7 @@ DLL_EXPORT void taos_unsubscribe(TAOS_SUB *tsub, int keepProgress); #endif DLL_EXPORT int taos_load_table_info(TAOS *taos, const char *tableNameList); -DLL_EXPORT TAOS_RES *taos_schemaless_insert(TAOS *taos, char *lines[], int numLines, int protocol, int precision, bool dataFormat); +DLL_EXPORT TAOS_RES *taos_schemaless_insert(TAOS *taos, char *lines[], int numLines, int protocol, int precision); /* --------------------------TMQ INTERFACE------------------------------- */ diff --git a/source/client/src/clientSml.c b/source/client/src/clientSml.c index 85cd0661e3..5f9138bb43 100644 --- a/source/client/src/clientSml.c +++ b/source/client/src/clientSml.c @@ -1724,13 +1724,13 @@ cleanup: * */ -TAOS_RES* taos_schemaless_insert(TAOS* taos, char* lines[], int numLines, int protocol, int precision, bool dataFormat) { +TAOS_RES* taos_schemaless_insert(TAOS* taos, char* lines[], int numLines, int protocol, int precision) { SRequestObj* request = createRequest(taos, NULL, NULL, TSDB_SQL_INSERT); if(!request){ return NULL; } - SSmlHandle* info = smlBuildSmlInfo(taos, request, protocol, precision, dataFormat); + SSmlHandle* info = smlBuildSmlInfo(taos, request, protocol, precision, false); if(!info){ return (TAOS_RES*)request; }