From 6de3b65d78d95cc7a123d1b244c1839324306c47 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 12 Jan 2009 12:23:19 -0500 Subject: [PATCH] pgsql: ROLLBACK wasn't sent correctly in synchronous commit failures. --HG-- branch : HEAD --- src/lib-sql/driver-pgsql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib-sql/driver-pgsql.c b/src/lib-sql/driver-pgsql.c index ce5ab1ad4d..2d701508ab 100644 --- a/src/lib-sql/driver-pgsql.c +++ b/src/lib-sql/driver-pgsql.c @@ -853,7 +853,7 @@ driver_pgsql_transaction_commit_s(struct sql_transaction_context *_ctx, if (ctx->failed) { *error_r = ctx->error; - if (!ctx->opened) + if (ctx->opened) sql_exec(_ctx->db, "ROLLBACK"); } else if (!ctx->opened) *error_r = NULL; -- 2.47.3