diff --git a/src/client/src/tscSql.c b/src/client/src/tscSql.c index 9b62177191d13058d161003fd98bbe28bc4df7ee..58588e43f7ad87ac27be7497cd388c599a2ad63d 100644 --- a/src/client/src/tscSql.c +++ b/src/client/src/tscSql.c @@ -844,6 +844,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);