-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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,然后使用sqlserver查询就还是用的limit分页;代码逻辑有问题具体看详情 #793
Comments
有没有试过6.0版本? |
没有 版本太高会不会不兼容,我们项目中都是5.3 |
我现在给你测一下6.0吧 |
@abel533 大佬 我简单改了一下,第一次pr 希望合并留个名,谢谢 |
@abel533 pr测试过了, 我的改动部分觉得合适帮我合一呗,我的改动大致这样:autoDialect=true就从上下文拿自动获取到的方言,否则就固定用this.delegate这个 |
搞了半天autoRuntimeDialect 配置参数只能这样啊,不能下划线方式啊 |
@yeeevip 你看看starter项目中的属性定义,应该有额外支持中线的(烤串)。。下划线不是标准方式,spring boot也不支持。 |
如果有qq,可以加群:912339468 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用环境
问题
这段代码硬是看不懂,第一次初始化了mysqldialect,之后我用sqlserver还是mysqldialect,即使调用了using("sqlserver")无作用,
作者可以自行测试:测试用例,不要用我自己实现的方言 https://github.com/yeeevip/yeee-memo/blob/master/learn-example/spring-boot-example/src/test/java/vip/yeee/memo/demo/springboot/PageHelperTests.java
自己解决了
自己改了一下代码临时用用,重写了PageHelper和PageAutoDialect这个类,修改了三处见下图
代码在:https://github.com/yeeevip/yeee-memo/tree/master/learn-example/spring-boot-example/src/main/java/vip/yeee/memo/demo/springboot/pagehelper
The text was updated successfully, but these errors were encountered: