-
-
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
informix分页sql报错 #129
Comments
多谢,可以了。 Error querying database. Cause: com.github.pagehelper.PageException: 无法自动获取数据库类型,请通过 helperDialect 参数指定!Cause: com.github.pagehelper.PageException: 无法自动获取数据库类型,请通过 helperDialect 参数指定!
其他数据库不需要显示指定。 |
方便提供一下你们infomix的jdbcurl吗?(修改关键部分)。 |
jdbc:informix-sqli://localhost:9090/test:INFORMIXSERVER=xcc;IFX_USE_STRENC=true;CLIENT_LOCALE=EN_US.utf8;DB_LOCALE=EN_US.utf8; |
找到原因了,默认根据 informix 这部分有几种情况呢? |
我也是第一次接触Informix,不过网上搜到的都是jdbc:informix-sqli开头的。 |
确实是这个,我后面加个映射关系。 |
accidentPage = PageHelper.startPage(1, 10).countColumn("id")
.doSelectPage(() -> this.accidentMapper.findUnGarageFinish(null, null, user.getRegionId(), 7)); 为什么我这样写,countColumn不起作用呢?? select count(0) from |
@xueyuchen 单独开个issue吧。 |
PageHelper版本:5.1.2
informix版本:11.5
改成SELECT count(*) FROM t_customer则正常。
报错信息如下:
org.apache.ibatis.exceptions.PersistenceException:
Error querying database. Cause: java.sql.SQLException: A syntax error has occurred.
The error may exist in cn/itcast/vo/CustomerMapper.xml
The error may involve cn.itcast.dao.CustomerMapper.findAll_COUNT
The error occurred while executing a query
SQL: SELECT count(0) FROM t_customer
Cause: java.sql.SQLException: A syntax error has occurred.
The text was updated successfully, but these errors were encountered: