提交 7baed335 编写于 作者: H Haojun Liao

[td-314] update sim

上级 efdc5159
......@@ -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";
......
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册