From 82d32cff23f654c39697d9710da997260d6655a0 Mon Sep 17 00:00:00 2001 From: kailixu Date: Tue, 7 Jan 2025 15:37:41 +0800 Subject: [PATCH] fix: incorrect taos shell prompt when log on taos without sysinfo privilege --- tools/shell/src/shellEngine.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/shell/src/shellEngine.c b/tools/shell/src/shellEngine.c index 6c1a972f7e..7fc0f9fb38 100644 --- a/tools/shell/src/shellEngine.c +++ b/tools/shell/src/shellEngine.c @@ -1180,6 +1180,10 @@ bool shellGetGrantInfo(char *buf) { fprintf(stderr, "Failed to check Server Edition, Reason:0x%04x:%s\r\n\r\n", code, taos_errstr(tres)); } taos_free_result(tres); +#ifdef TD_ENTERPRISE + community = false; + sprintf(buf, "Server is %s, %s and the expire time is unknown.\r\n", TD_PRODUCT_NAME, sinfo); +#endif return community; }