Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Connection implements ServerVersionProvider
/**
* The transaction nesting level.
*/
private int $transactionNestingLevel = 0;
protected int $transactionNestingLevel = 0;

/**
* The currently active transaction isolation level or NULL before it has been determined.
Expand Down Expand Up @@ -1392,7 +1392,6 @@ final public function convertExceptionDuringQuery(
return $this->handleDriverException($e, new Query($sql, $params, $types));
}

/** @internal */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where else is this method expected to be invoked from?

Copy link
Author

@Crovitche-1623 Crovitche-1623 Sep 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@morozov I used the convertException method from the connect and commit methods that I overrode.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@morozov Another solution would be to make the handleDriverException method protected instead of private.

final public function convertException(Driver\Exception $e): DriverException
{
return $this->handleDriverException($e, null);
Expand Down