From 48a430b776ac85edd9386799355c07b215ef231c Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Tue, 15 Aug 2023 17:58:26 +0800 Subject: [PATCH 1/2] fix: struct init warning --- src/taosdump.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/taosdump.c b/src/taosdump.c index 19f70541..2ac2d41b 100644 --- a/src/taosdump.c +++ b/src/taosdump.c @@ -609,6 +609,7 @@ struct arguments g_args = { false, // debug_print false, // verbose_print false, // performance_print + false, // dotRepalce 0, // dumpDbCount #ifdef WEBSOCKET false, // restful From 0cdfcf3059b0782d08705475ec2a22f98d358ba4 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Wed, 23 Aug 2023 17:37:49 +0800 Subject: [PATCH 2/2] fix: dot-replace change option from R to Q --- src/taosdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/taosdump.c b/src/taosdump.c index 2ac2d41b..e1de127a 100644 --- a/src/taosdump.c +++ b/src/taosdump.c @@ -493,7 +493,7 @@ static struct argp_option options[] = { "websocket to interact."}, #endif {"debug", 'g', 0, 0, "Print debug info.", 15}, - {"dot-replace", 'R', 0, 0, "Repalce dot character with underline character in the table name.", 10}, + {"dot-replace", 'Q', 0, 0, "Repalce dot character with underline character in the table name.", 10}, {0} }; @@ -1065,7 +1065,7 @@ static void parse_args( g_args.loose_mode = true; strcpy(argv[i], ""); // dot replace - } else if ((strcmp(argv[i], "-R") == 0) + } else if ((strcmp(argv[i], "-Q") == 0) || (0 == strcmp(argv[i], "--dot-replace"))) { g_args.dotReplace = true; strcpy(argv[i], "");