Merge pull request #20719 from taosdata/fix/TS-3039
fix:[TS-3038] coredump if nchar data not clear SColVal in schemaless
This commit is contained in:
commit
623808cf86
|
@ -25,6 +25,8 @@ static void clearColValArray(SArray* pCols) {
|
|||
if (TSDB_DATA_TYPE_NCHAR == pCol->type) {
|
||||
taosMemoryFreeClear(pCol->value.pData);
|
||||
}
|
||||
pCol->flag = CV_FLAG_NONE;
|
||||
pCol->value.val = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -939,6 +939,9 @@ int sml_ts2164_Test() {
|
|||
// "meters,location=la,groupid=ca current=11.8,voltage=221,phase=0.27",
|
||||
"meters,location=la,groupid=ca current=11.8,voltage=221",
|
||||
"meters,location=la,groupid=ca current=11.8,voltage=221,phase=0.27",
|
||||
"ts3038,location=l2a,groupid=ca current=L\"11.8\"",
|
||||
"ts3038,location=l2a,groupid=ca voltage=L\"221\"",
|
||||
"ts3038,location=l2a,groupid=ca phase=L\"221\"",
|
||||
// "meters,location=la,groupid=cb current=11.8,voltage=221,phase=0.27",
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue