提交 6c5ef136 编写于 作者: H Hongze Cheng

fix use database erro

上级 1254aa77
...@@ -968,7 +968,7 @@ void* taosDumpOutWorkThreadFp(void *arg) ...@@ -968,7 +968,7 @@ void* taosDumpOutWorkThreadFp(void *arg)
return NULL; return NULL;
} }
fprintf(fp, "USE %s\n\n", pThread->dbName); fprintf(fp, "USE %s;\n\n", pThread->dbName);
while (read(fd, &tableRecord, sizeof(STableRecord)) > 0) { while (read(fd, &tableRecord, sizeof(STableRecord)) > 0) {
taosDumpTable(tableRecord.name, tableRecord.metric, &tsArguments, fp, pThread->taosCon); taosDumpTable(tableRecord.name, tableRecord.metric, &tsArguments, fp, pThread->taosCon);
} }
...@@ -1129,7 +1129,7 @@ int taosDumpDb(SDbInfo *dbInfo, struct arguments *arguments, FILE *fp, TAOS *tao ...@@ -1129,7 +1129,7 @@ int taosDumpDb(SDbInfo *dbInfo, struct arguments *arguments, FILE *fp, TAOS *tao
return -1; return -1;
} }
fprintf(fp, "USE %s\n\n", dbInfo->name); fprintf(fp, "USE %s;\n\n", dbInfo->name);
(void)taosDumpCreateSuperTableClause(taosCon, dbInfo->name, fp); (void)taosDumpCreateSuperTableClause(taosCon, dbInfo->name, fp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册