|| conn.getTransactionState() != TransactionState.IDLE) { throw new PGXAException( GT.tr("Not implemented: 2nd phase commit must be issued using an idle connection. commit xid={0}, currentXid={1}, state={2], transactionState={3}", xid, currentXid, state, conn.getTransactionState()), XAException.XAER_RMERR);
if (state != STATE_IDLE || conn.getTransactionState() != ProtocolConnection.TRANSACTION_IDLE) throw new PGXAException(GT.tr("Not implemented: 2nd phase commit must be issued using an idle connection"), XAException.XAER_RMERR);
if (state != STATE_IDLE || conn.getTransactionState() != ProtocolConnection.TRANSACTION_IDLE) throw new PGXAException(GT.tr("Not implemented: 2nd phase commit must be issued using an idle connection"), XAException.XAER_RMERR);