fix: incorrect taos shell prompt when log on taos without sysinfo privilege

This commit is contained in:
kailixu 2025-01-07 15:37:41 +08:00
parent b7de05209f
commit 82d32cff23
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}