Movatterモバイル変換


[0]ホーム

URL:


Quick Links

test_escape: invalid option -- 'c'

From:Japin Li <japinli(at)hotmail(dot)com>
To:Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject:test_escape: invalid option -- 'c'
Date:2025-02-18 03:12:13
Message-ID:ME0P300MB04451FB20CE0346A59C25CADB6FA2@ME0P300MB0445.AUSP300.PROD.OUTLOOK.COM
Views:Whole Thread |Raw Message |Download mbox |Resend email
Thread:
Lists:pgsql-hackers


Hi, all

When I test test_escape, I find the usage of test_escape declares it
support -c option, however, when I use it, it complains it is an
invalid option.

Here is a patch to fix it.

diff --git a/src/test/modules/test_escape/test_escape.c b/src/test/modules/test_escape/test_escape.c
index 09303a00a20..7132e3a9316 100644
--- a/src/test/modules/test_escape/test_escape.c
+++ b/src/test/modules/test_escape/test_escape.c
@@ -824,7 +824,7 @@ main(int argc, char *argv[])
{NULL, 0, NULL, 0},
};

-while ((c = getopt_long(argc, argv, "vqh", long_options, &option_index)) != -1)
+while ((c = getopt_long(argc, argv, "c:vqh", long_options, &option_index)) != -1)
{
switch (c)
{
--
Regrads,
Japin Li

Responses

Browse pgsql-hackers by date

 FromDateSubject
Next MessageMichael Paquier2025-02-18 03:42:57Re: injection points for hash aggregation
Previous MessageAmit Kapila2025-02-18 03:12:06Re: Introduce XID age and inactive timeout based replication slot invalidation

[8]ページ先頭

©2009-2025 Movatter.jp