Re: psql - add special variable to reflect the last query status

Fabien COELHO <coelho@cri.ensmp.fr>

From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: PostgreSQL Developers <pgsql-hackers@postgresql.org>
Date: 2017-06-17T05:58:06Z
Lists: pgsql-hackers

Attachments

> I have not any other comments. The implementation is trivial. I rerun all
> tests and tests passed.
>
> I'll mark this patch as ready for commiters.

Oops, I just noticed a stupid confusion on my part which got through, I 
was setting "ERROR" as "success", inverting the expected boolean value.

Here is a fixed version.

-- 
Fabien.

Commits

  1. Add psql variables to track success/failure of SQL queries.