-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
关于乐观锁插件的问题 #27
Comments
多谢反馈,我们会尽快调整! |
这个问题在git.oschina上dev分支已修复,将在下个版本解决 |
2.0.6-jdk8 里面,在同一个会话里,多次调用同一个语句,还是会异常。 |
非常感谢,已经着手查看该问题了 |
提个思路吧,还是拦截StatementHandler,但是换成拦截getBoundSql这个方法, |
顺便提一句,如果@Version注解是在父类上,最新版本还是不管用的 |
@kevin82008 抱歉! 请等一等我们的正式版 2.0.6 |
@kevin82008 Mybatis的plugin仅支持: Executor (update, query, flushStatements, commit, rollback, getTransaction, close, isClosed) |
我试过,可以拦截getBoundSql方法,不过官方声明上确实没有 |
@kevin82008 这么神奇,不过不是很推荐,万一官方版本升级了,去掉了这个,那不就GG了 |
@kevin82008 我试过拦截getBoundSql,确实可以. 但是普通模式就不能用了. |
The text was updated successfully, but these errors were encountered: