opti:parse non-standard json format

This commit is contained in:
wangmm0220 2023-01-23 22:20:44 +05:00
parent 51bb0ed602
commit 8098a2995d
2 changed files with 5 additions and 2 deletions

View File

@ -1283,8 +1283,8 @@ int32_t smlParseJSON(SSmlHandle *info, char *payload) {
continue;
}
if(*dataPointStart == '\0') break;
cnt++;
if(*dataPointStart == '\0') break;
}
info->lineNum = cnt;

View File

@ -901,7 +901,10 @@ int sml_ts2164_Test() {
int sml_ttl_Test() {
TAOS *taos = taos_connect("localhost", "root", "taosdata", NULL, 0);
TAOS_RES *pRes = taos_query(taos, "create database if not exists sml_db schemaless 1");
TAOS_RES *pRes = taos_query(taos, "drop database if exists sml_db");
taos_free_result(pRes);
pRes = taos_query(taos, "create database if not exists sml_db schemaless 1");
taos_free_result(pRes);
const char *sql[] = {