diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 2be3c3bc33e1aebf109c2e0076e27f096fade3d1..16074e8ae0993bdddadf85872f94e8f34c2f2448 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -2972,7 +2972,7 @@ int32_t tscValidateName(SStrToken* pToken, bool escapeEnabled, bool *dbIncluded) if (sep == NULL) { return TSDB_CODE_TSC_INVALID_OPERATION; } - *dbIncluded = true; + if (dbIncluded) *dbIncluded = true; return tscValidateName(pToken, escapeEnabled, NULL); }