-
Notifications
You must be signed in to change notification settings - Fork 122
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
发现一个bug啊 #10
Comments
感谢您的关注,可否详细描述下您所使用的数据库类型、数据库版本以及JDBC驱动版本,方便我来复现和定位问题。 |
mysql数据库 版本5.7.26-log mysql-connector-java:8.0.13 |
博主有考虑过把这个做成maven插件么 |
这个问题我已经有在关注了,1.4.0版本将会修复这个问题。 |
ConnectionUtil类
/**
* 获取表结构数据
*
* @param tableName 表名
* @return 包含表结构数据的列表
*/
public List getMetaData(String tableName) throws Exception {
// 获取列信息
List columnInfos = new ArrayList<>();
ResultSet columnResultSet = connection.getMetaData().getColumns(null, getSchema(connection), tableName.toUpperCase(), "%");
这里catalog为null时,数据库存在不同schema有相同的表名和表结构会出现生成实体类里面有重复字段和方法,建议可以把catalog参数加上
The text was updated successfully, but these errors were encountered: