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

MySQL事务未支持 savepoint #169

Open
amoydavid opened this issue Aug 26, 2020 · 0 comments
Open

MySQL事务未支持 savepoint #169

amoydavid opened this issue Aug 26, 2020 · 0 comments

Comments

@amoydavid
Copy link

easyswoole框架 3.3.7、orm组件版本号 1.4.9

问题描述和截图

在 DbManager::getInstance()->startTransaction() 时仅判断了是否已经有上下文,然后调用了mysql的begin。希望在 startTransaction 里支持 savepoint。

即如果已经开启事务,再次开启事务,则用 savepoint 语法代替 begin。rollback/commit也相应替换。

这样写方法的时候不需要关注是否已经在事务里。会比较轻松一些。

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