未验证 提交 4bde87f6 编写于 作者: S slguan 提交者: GitHub

Merge pull request #1095 from taosdata/beta/v1.6.5.3

fix bugs in #1094
...@@ -1007,10 +1007,12 @@ int doParserInsertSql(SSqlObj *pSql, char *str) { ...@@ -1007,10 +1007,12 @@ int doParserInsertSql(SSqlObj *pSql, char *str) {
} }
void *fp = pSql->fp; void *fp = pSql->fp;
ptrdiff_t pos = pSql->asyncTblPos - pSql->sqlstr;
if ((code = tscParseSqlForCreateTableOnDemand(&str, pSql)) != TSDB_CODE_SUCCESS) { if ((code = tscParseSqlForCreateTableOnDemand(&str, pSql)) != TSDB_CODE_SUCCESS) {
if (fp != NULL) { if (fp != NULL) {
if (TSDB_CODE_ACTION_IN_PROGRESS == code) { if (TSDB_CODE_ACTION_IN_PROGRESS == code) {
tscTrace("async insert and waiting to get meter meta, then continue parse sql: %s, pTableHashList:%p", pSql->asyncTblPos, pSql->pTableHashList); tscTrace("async insert and waiting to get meter meta, then continue parse sql from offset: %" PRId64, pos);
return code; return code;
} }
tscTrace("async insert parse error, code:%d, %s", code, tsError[code]); tscTrace("async insert parse error, code:%d, %s", code, tsError[code]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册