[TD-5449]<fix>: fix invalid stable name core dump and sigabort total tag num exceed maximum
This commit is contained in:
parent
19ae4f51e8
commit
a84c731b7a
|
@ -494,6 +494,7 @@ static int32_t reconcileDBSchemas(TAOS* taos, SArray* stableSchemas) {
|
||||||
code = loadTableMeta(taos, pointSchema->sTableName, &dbSchema);
|
code = loadTableMeta(taos, pointSchema->sTableName, &dbSchema);
|
||||||
if (code != 0) {
|
if (code != 0) {
|
||||||
tscError("reconcile point schema failed. can not create %s", pointSchema->sTableName);
|
tscError("reconcile point schema failed. can not create %s", pointSchema->sTableName);
|
||||||
|
return code;
|
||||||
} else {
|
} else {
|
||||||
pointSchema->precision = dbSchema.precision;
|
pointSchema->precision = dbSchema.precision;
|
||||||
destroySmlSTableSchema(&dbSchema);
|
destroySmlSTableSchema(&dbSchema);
|
||||||
|
@ -1565,6 +1566,7 @@ static int32_t parseSmlMeasurement(TAOS_SML_DATA_POINT *pSml, const char **index
|
||||||
if (isdigit(*cur)) {
|
if (isdigit(*cur)) {
|
||||||
tscError("Measurement field cannnot start with digit");
|
tscError("Measurement field cannnot start with digit");
|
||||||
free(pSml->stableName);
|
free(pSml->stableName);
|
||||||
|
pSml->stableName = NULL;
|
||||||
return TSDB_CODE_TSC_LINE_SYNTAX_ERROR;
|
return TSDB_CODE_TSC_LINE_SYNTAX_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1572,6 +1574,7 @@ static int32_t parseSmlMeasurement(TAOS_SML_DATA_POINT *pSml, const char **index
|
||||||
if (len > TSDB_TABLE_NAME_LEN) {
|
if (len > TSDB_TABLE_NAME_LEN) {
|
||||||
tscError("Measurement field cannot exceeds 193 characters");
|
tscError("Measurement field cannot exceeds 193 characters");
|
||||||
free(pSml->stableName);
|
free(pSml->stableName);
|
||||||
|
pSml->stableName = NULL;
|
||||||
return TSDB_CODE_TSC_LINE_SYNTAX_ERROR;
|
return TSDB_CODE_TSC_LINE_SYNTAX_ERROR;
|
||||||
}
|
}
|
||||||
//first unescaped comma or space identifies measurement
|
//first unescaped comma or space identifies measurement
|
||||||
|
|
Loading…
Reference in New Issue