You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8089966
Browse filesBrowse the repository at this point in the historyBrowse files
fix: end the transaction when transCommit() returns false after 1213
The restart BEGIN ran outside the query try block, after the restart flag
was cleared. If the connection dropped after errno 1213, query(), ping()
and reconnect() threw a raw mysqli_sql_exception, even with DBDebug false,
and the next write skipped BEGIN. BEGIN now runs inside the try, and the
restart stays pending until it succeeds.
transCommit() returned false and left transDepth at 1 with the restarted
server transaction open. A caller that retried without transRollback()
nested inside it, got true from transCommit(), and nothing was committed.
transCommit() now rolls that transaction back before returning false.
The guide and changelog now limit the fix to query(), simpleQuery() and
the Query Builder. Prepared queries are not covered.
The deadlock test records the probe table before recreating it, so
teardown drops it.
Refs #10649
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments