[td-314] update sim

This commit is contained in:
Haojun Liao 2020-06-02 16:19:36 +08:00
parent efdc515952
commit 7baed33533
2 changed files with 2 additions and 4 deletions

View File

@ -1465,7 +1465,6 @@ static int32_t setExprInfoForFunctions(SQueryInfo* pQueryInfo, SSchema* pSchema,
int32_t addExprAndResultField(SQueryInfo* pQueryInfo, int32_t colIndex, tSQLExprItem* pItem, bool finalResult) {
STableMetaInfo* pTableMetaInfo = NULL;
int32_t optr = pItem->pNode->nSQLOptr;
const char* msg1 = "not support column types";

View File

@ -640,7 +640,7 @@ bool simExecuteNativeSqlCommand(SScript *script, char *rest, bool isSlow) {
for (int attempt = 0; attempt < 3; ++attempt) {
simLogSql(rest);
pSql = taos_query(script->taos, rest);
ret = terrno;
ret = taos_errno(pSql);
if (ret == TSDB_CODE_TABLE_ALREADY_EXIST ||
ret == TSDB_CODE_DB_ALREADY_EXIST) {
@ -922,8 +922,7 @@ bool simExecuteSqlErrorCmd(SScript *script, char *rest) {
}
else {
pSql = taos_query(script->taos, rest);
ret = terrno;
ret = taos_errno(pSql);
taos_free_result(pSql);
}