fix bug while alter table
This commit is contained in:
parent
085abd40d9
commit
5127b9a135
|
@ -828,10 +828,10 @@ static void mgmtProcessDropSuperTableMsg(SQueuedMsg *pMsg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int32_t mgmtFindSuperTableTagIndex(SSuperTableObj *pStable, const char *tagName) {
|
static int32_t mgmtFindSuperTableTagIndex(SSuperTableObj *pStable, const char *tagName) {
|
||||||
for (int32_t i = 0; i < pStable->numOfTags; i++) {
|
SSchema *schema = (SSchema *) pStable->schema;
|
||||||
SSchema *schema = (SSchema *)(pStable->schema + (pStable->numOfColumns + i) * sizeof(SSchema));
|
for (int32_t tag = 0; tag < pStable->numOfTags; tag++) {
|
||||||
if (strcasecmp(tagName, schema->name) == 0) {
|
if (strcasecmp(schema[pStable->numOfColumns + tag].name, tagName) == 0) {
|
||||||
return i;
|
return tag;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue