Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDO实现的一些疑问 #1

Closed
NHZEX opened this issue Jun 15, 2019 · 0 comments
Closed

PDO实现的一些疑问 #1

NHZEX opened this issue Jun 15, 2019 · 0 comments

Comments

@NHZEX
Copy link

NHZEX commented Jun 15, 2019

swpdo/src/Mysql.php

Lines 63 to 67 in 17865b9

public function commit()
{
$this->client->commit();
$this->inTransaction = true;
}

事务提交成功inTransaction是否应该置为假。

swpdo/src/Mysql.php

Lines 69 to 72 in 17865b9

public function inTransaction()
{
return $this->client->connect_errno;
}

是否应该返回inTransaction的值。

@NHZEX NHZEX closed this as completed Sep 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant