strange test in psql:startup.c

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: strange test in psql:startup.c
Date: 2015-08-26 12:18:59
Message-ID: CAFj8pRB2r-SiUEcGvuH+RkFrW8rVZmGFFVf9rx=vP9-BkNgayw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2015-08-26 13:15:34 Re: proposal: multiple psql option -c
Previous Message Pavel Stehule 2015-08-26 11:15:36 Re: proposal: multiple psql option -c