From 17621b5024ebad47818a76646e8ade188762cee6 Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Fri, 21 Apr 2023 16:34:12 +0800 Subject: [PATCH] fix: remove db name tolower in connection --- src/client/src/tscSql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscSql.c b/src/client/src/tscSql.c index cf50179467..2d464b86e3 100644 --- a/src/client/src/tscSql.c +++ b/src/client/src/tscSql.c @@ -145,7 +145,7 @@ static SSqlObj *taosConnectImpl(const char *ip, const char *user, const char *pa tstrncpy(tmp, db, sizeof(tmp)); stringProcess(tmp, (int32_t)strlen(tmp)); - strtolower(pObj->db, tmp); + tstrncpy(pObj->db, tmp, sizeof(tmp)); } pthread_mutex_init(&pObj->mutex, NULL); -- GitLab