Fix wrong positioned comment.
authorTatsuo Ishii <ishii@postgresql.org>
Mon, 22 Sep 2025 02:29:11 +0000 (11:29 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Mon, 22 Sep 2025 02:30:50 +0000 (11:30 +0900)
Backpatch-through: v4.2

src/protocol/CommandComplete.c

index 0a3b286d86e0ccb52e85d9323221fc5feedbae15..6cfff70655cc0d663264cb20157d65570be3fecd 100644 (file)
@@ -5,7 +5,7 @@
  * pgpool: a language independent connection pool server for PostgreSQL
  * written by Tatsuo Ishii
  *
- * Copyright (c) 2003-2024     PgPool Global Development Group
+ * Copyright (c) 2003-2025     PgPool Global Development Group
  *
  * Permission to use, copy, modify, and distribute this software and
  * its documentation for any purpose and without fee is hereby
@@ -112,8 +112,8 @@ CommandComplete(POOL_CONNECTION * frontend, POOL_CONNECTION_POOL * backend, bool
                                if (session_context->query_context &&
                                        session_context->query_context->parse_tree &&
                                        is_start_transaction_query(session_context->query_context->parse_tree))
-                                       TSTATE(backend, i) = 'T';       /* we are inside a transaction */
                                {
+                                       TSTATE(backend, i) = 'T';       /* we are inside a transaction */
                                        ereport(DEBUG1,
                                                        (errmsg("processing command complete"),
                                                         errdetail("set transaction state to T")));