modify plugin name
This commit is contained in:
@@ -74,6 +74,8 @@ class PDO implements StopHeartbeatCheck
|
|||||||
*/
|
*/
|
||||||
public function inTransaction(): bool
|
public function inTransaction(): bool
|
||||||
{
|
{
|
||||||
|
echo $this->_transaction, ' ', __FUNCTION__, PHP_EOL;
|
||||||
|
|
||||||
return $this->_transaction > 0;
|
return $this->_transaction > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -140,6 +142,8 @@ class PDO implements StopHeartbeatCheck
|
|||||||
$this->_pdo()->beginTransaction();
|
$this->_pdo()->beginTransaction();
|
||||||
}
|
}
|
||||||
$this->_transaction++;
|
$this->_transaction++;
|
||||||
|
|
||||||
|
echo $this->_transaction, ' ', __FUNCTION__, PHP_EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -148,6 +152,8 @@ class PDO implements StopHeartbeatCheck
|
|||||||
*/
|
*/
|
||||||
public function commit()
|
public function commit()
|
||||||
{
|
{
|
||||||
|
echo $this->_transaction, ' ', __FUNCTION__, PHP_EOL;
|
||||||
|
|
||||||
$this->_transaction--;
|
$this->_transaction--;
|
||||||
if ($this->_transaction == 0) {
|
if ($this->_transaction == 0) {
|
||||||
$this->_pdo()->commit();
|
$this->_pdo()->commit();
|
||||||
@@ -160,6 +166,8 @@ class PDO implements StopHeartbeatCheck
|
|||||||
*/
|
*/
|
||||||
public function rollback()
|
public function rollback()
|
||||||
{
|
{
|
||||||
|
echo $this->_transaction, ' ', __FUNCTION__, PHP_EOL;
|
||||||
|
|
||||||
$this->_transaction--;
|
$this->_transaction--;
|
||||||
if ($this->_transaction == 0) {
|
if ($this->_transaction == 0) {
|
||||||
$this->_pdo()->rollBack();
|
$this->_pdo()->rollBack();
|
||||||
|
|||||||
Reference in New Issue
Block a user