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

事务回滚失败 #528

Closed
for5million opened this issue Oct 10, 2013 · 6 comments
Closed

事务回滚失败 #528

for5million opened this issue Oct 10, 2013 · 6 comments
Labels
Milestone

Comments

@for5million
Copy link

Trans.DEBUG = true;
Trans.begin();
Trans.rollback();
总是显示
2013-10-10 19:23:24 -Start New Transaction id=0, level=2
2013-10-10 19:23:35 -Transaction delay rollback id=0
这个不科销!!!??

@zozoh
Copy link
Member

zozoh commented Oct 10, 2013

啥数据库,支持事务吗?

@for5million
Copy link
Author

h2 数据库 应该是支持的

@wendal
Copy link
Member

wendal commented Oct 10, 2013

都不知道在说啥.

@wendal wendal closed this as completed Oct 10, 2013
@wendal
Copy link
Member

wendal commented Oct 10, 2013

补充几句:

  1. nutz不支持事务内再开新事务
  2. nutz只认最外层的事务

@for5million
Copy link
Author

呵呵 就是我上面的3句话,如果放到一个main方法里面,兽兽你觉得应该输出什么?

@for5million
Copy link
Author

我觉得应该输出
org.nutz.trans.Trans - Start New Transaction id=0, level=2
org.nutz.trans.Trans - Transaction rollback id=0
但是输出了
org.nutz.trans.Trans - Start New Transaction id=0, level=2
org.nutz.trans.Trans - Transaction delay rollback id=0

@wendal wendal reopened this Oct 14, 2013
wendal added a commit that referenced this issue Oct 14, 2013
@wendal wendal closed this as completed Oct 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants