Skip to content

Commit 5b74217

Browse files
authored
Merge pull request #543 from ydb-platform/fix_empty_tx_id
Fix empty tx_id in tx meta
2 parents 1e3369b + 83a4b48 commit 5b74217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydb/query/transaction.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def _execute_call(
283283
)
284284

285285
def _move_to_beginned(self, tx_id: str) -> None:
286-
if self._tx_state._already_in(QueryTxStateEnum.BEGINED):
286+
if self._tx_state._already_in(QueryTxStateEnum.BEGINED) or not tx_id:
287287
return
288288
self._tx_state._change_state(QueryTxStateEnum.BEGINED)
289289
self._tx_state.tx_id = tx_id

0 commit comments

Comments
 (0)