diff --git a/src/client/src/tscSql.c b/src/client/src/tscSql.c index ef8625da06c349b14b9bc9294462bf627da5bb5b..484de20d16602986de49f932d4c65a0a73ce2181 100644 --- a/src/client/src/tscSql.c +++ b/src/client/src/tscSql.c @@ -832,6 +832,8 @@ int taos_validate_sql(TAOS *taos, const char *sql) { pSql->fp = asyncCallback; pSql->fetchFp = asyncCallback; pSql->param = pSql; + + registerSqlObj(pSql); int code = tsParseSql(pSql, true); if (code == TSDB_CODE_TSC_ACTION_IN_PROGRESS) { tsem_wait(&pSql->rspSem);