opti:parse non-standard json format
This commit is contained in:
parent
51bb0ed602
commit
8098a2995d
|
@ -1283,8 +1283,8 @@ int32_t smlParseJSON(SSmlHandle *info, char *payload) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(*dataPointStart == '\0') break;
|
|
||||||
cnt++;
|
cnt++;
|
||||||
|
if(*dataPointStart == '\0') break;
|
||||||
}
|
}
|
||||||
info->lineNum = cnt;
|
info->lineNum = cnt;
|
||||||
|
|
||||||
|
|
|
@ -901,7 +901,10 @@ int sml_ts2164_Test() {
|
||||||
int sml_ttl_Test() {
|
int sml_ttl_Test() {
|
||||||
TAOS *taos = taos_connect("localhost", "root", "taosdata", NULL, 0);
|
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);
|
taos_free_result(pRes);
|
||||||
|
|
||||||
const char *sql[] = {
|
const char *sql[] = {
|
||||||
|
|
Loading…
Reference in New Issue