Typo in bdr_init_copy help information
authorMartín Marqués <martin@2ndquadrant.com>
Wed, 22 Apr 2015 17:44:17 +0000 (14:44 -0300)
committerMartín Marqués <martin@2ndquadrant.com>
Wed, 22 Apr 2015 17:44:17 +0000 (14:44 -0300)
bdr_init_copy.c

index f7260715ed2b1f05e17ce95430e6f9d0891edd4f..a92603c12e8e969558b11c5a0902b508f3eb756d 100644 (file)
@@ -500,7 +500,7 @@ usage(void)
    printf(_("Usage:\n"));
    printf(_("  %s [OPTION]...\n"), progname);
    printf(_("\nGeneral options:\n"));
-   printf(_("  -D, --pgdata=DIRECTORY data directory to be used for new nodem,\n"));
+   printf(_("  -D, --pgdata=DIRECTORY data directory to be used for new node,\n"));
    printf(_("                         can be either empty/non-existing directory,\n"));
    printf(_("                         or directory populated using pg_basebackup -X stream\n"));
    printf(_("                         command\n"));
@@ -1334,7 +1334,7 @@ appendPQExpBufferConnstrValue(PQExpBuffer buf, const char *str)
    for (s = str; *s; s++)
    {
        if (!((*s >= 'a' && *s <= 'z') || (*s >= 'A' && *s <= 'Z') ||
-             (*s >= '0' && *s <= '9') || *s == '_' || *s == '.'))
+             (*s >= '0' && *s <= '9') || *s == '_' || *s == '.' || *s == '-'))
        {
            needquotes = true;
            break;