Re: psql - add special variable to reflect the last query status
Pavel Stehule <pavel.stehule@gmail.com>
From: Pavel Stehule <pavel.stehule@gmail.com>
To: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: PostgreSQL Developers <pgsql-hackers@postgresql.org>
Date: 2017-06-19T03:55:26Z
Lists: pgsql-hackers
2017-06-17 7:58 GMT+02:00 Fabien COELHO <coelho@cri.ensmp.fr>: > > 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. I missed it too. We can introduce macro SetVariableBool(vars, varname, bool) instead SetVariable(pset.vars, "ERROR", "FALSE"); Regards Pavel > > > -- > Fabien.
Commits
-
Add psql variables to track success/failure of SQL queries.
- 69835bc89888 11.0 landed