strange test in psql:startup.c - Mailing list pgsql-hackers

From Pavel Stehule
Subject strange test in psql:startup.c
Date
Msg-id CAFj8pRB2r-SiUEcGvuH+RkFrW8rVZmGFFVf9rx=vP9-BkNgayw@mail.gmail.com
Whole thread Raw
Responses Re: strange test in psql:startup.c  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Hi

        if (options.single_txn && options.action != ACT_FILE && options.action == ACT_NOTHING)
        {
                fprintf(stderr, _("%s: -1 can only be used in non-interactive mode\n"), pset.progname);
                exit(EXIT_FAILURE);
        }

the expression should be probably only?

options.single_txn && options.action == ACT_NOTHING)

Regards

Pavel

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: proposal: multiple psql option -c
Next
From: Pavel Stehule
Date:
Subject: Re: proposal: multiple psql option -c