From c1074c2a076e879196e5c68bc641995bface8453 Mon Sep 17 00:00:00 2001 From: Rintaro Ikeda Date: Wed, 9 Jul 2025 23:50:36 +0900 Subject: [PATCH v6 2/3] Rename a confusing enumerator Rename the confusing enumerator which may be mistakenly assumed to be related to other_sql_errors --- src/bin/pgbench/pgbench.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c index 4b3ddb3146f..95a7083ede0 100644 --- a/src/bin/pgbench/pgbench.c +++ b/src/bin/pgbench/pgbench.c @@ -485,7 +485,7 @@ typedef enum TStatus TSTATUS_IDLE, TSTATUS_IN_BLOCK, TSTATUS_CONN_ERROR, - TSTATUS_OTHER_ERROR, + TSTATUS_UNKNOWN_ERROR, } TStatus; /* Various random sequences are initialized from this one. */ @@ -3577,12 +3577,12 @@ getTransactionStatus(PGconn *con) * not. Internal error which should never occur. */ pg_log_error("unexpected transaction status %d", tx_status); - return TSTATUS_OTHER_ERROR; + return TSTATUS_UNKNOWN_ERROR; } /* not reached */ Assert(false); - return TSTATUS_OTHER_ERROR; + return TSTATUS_UNKNOWN_ERROR; } /* -- 2.39.5 (Apple Git-154)