提交 2cb998a5 编写于 作者: wmmhello's avatar wmmhello

feat: add async logic for schemaless

上级 9333120d
......@@ -199,10 +199,7 @@ TAOS_RES *taos_query(TAOS *taos, const char *sql) {
taos_query_a(pTscObj, sql, syncQueryFn, param);
tsem_wait(&param->sem);
TAOS_RES *request = param->pRequest;
tsem_destroy(&param->sem);
taosMemoryFree(param);
return request;
return param->pRequest;
#else
size_t sqlLen = strlen(sql);
if (sqlLen > (size_t)TSDB_MAX_ALLOWED_SQL_LEN) {
......
......@@ -72,7 +72,7 @@ for (int i = 1; i < keyLen; ++i) { \
#define NCHAR_ADD_LEN 3 // L"nchar" 3 means L" "
#define MAX_RETRY_TIMES 5
#define LINE_BATCH 20
#define LINE_BATCH 20000
//=================================================================================================
typedef TSDB_SML_PROTOCOL_TYPE SMLProtocolType;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册