mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Revert "Fix psql's single transaction mode on client-side errors with -c/-f switches".
This reverts commitsa04ccf6df
et al. in the back branches only. There was some disagreement already over whether to back-patch157f8739a
, on the grounds that it is the sort of behavioral change that we don't like to back-patch. Furthermore, it now looks like the logic needs some more work, which we don't have time for before the upcoming 14.4 release. Revert for now, and perhaps reconsider later. Discussion: https://postgr.es/m/17504-76b68018e130415e@postgresql.org
This commit is contained in:
@ -411,9 +411,7 @@ main(int argc, char *argv[])
|
||||
|
||||
if (options.single_txn)
|
||||
{
|
||||
res = PSQLexec((successResult == EXIT_SUCCESS) ?
|
||||
"COMMIT" : "ROLLBACK");
|
||||
if (res == NULL)
|
||||
if ((res = PSQLexec("COMMIT")) == NULL)
|
||||
{
|
||||
if (pset.on_error_stop)
|
||||
{
|
||||
|
Reference in New Issue
Block a user