From: Timo Sirainen Date: Mon, 12 Jan 2009 17:23:19 +0000 (-0500) Subject: pgsql: ROLLBACK wasn't sent correctly in synchronous commit failures. X-Git-Tag: 1.2.beta1~127 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6de3b65d78d95cc7a123d1b244c1839324306c47;p=thirdparty%2Fdovecot%2Fcore.git pgsql: ROLLBACK wasn't sent correctly in synchronous commit failures. --HG-- branch : HEAD --- 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;