From d4cc5b85f2eef59d4430a890061992ae06be2b3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Tue, 7 Feb 2023 07:57:12 +0100 Subject: [PATCH] client/mysql: enable comments by default --- client/mysql.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/mysql.cc b/client/mysql.cc index 9d607f254964..06b119bc660d 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -167,7 +167,7 @@ static bool ignore_errors = false, wait_flag = false, quick = false, static bool opt_binary_as_hex_set_explicitly = false; static bool debug_info_flag, debug_check_flag; static bool column_types_flag; -static bool preserve_comments = false; +static bool preserve_comments = true; static ulong opt_max_allowed_packet, opt_net_buffer_length; static uint verbose = 0, opt_silent = 0, opt_mysql_port = 0, opt_local_infile = 0; @@ -1687,9 +1687,9 @@ static struct my_option my_long_options[] = { nullptr, 0, nullptr}, {"comments", 'c', "Preserve comments. Send comments to the server." - " The default is --skip-comments (discard comments), enable with " - "--comments.", - &preserve_comments, &preserve_comments, nullptr, GET_BOOL, NO_ARG, 0, 0, 0, + " The default is --comments (keep comments), disable with " + "--skip-comments.", + &preserve_comments, &preserve_comments, nullptr, GET_BOOL, NO_ARG, 1, 0, 0, nullptr, 0, nullptr}, {"compress", 'C', "Use compression in server/client protocol.", &opt_compress, &opt_compress, nullptr, GET_BOOL, NO_ARG, 0, 0, 0, nullptr,