mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-06 21:58:03 +08:00
fix vode
This commit is contained in:
parent
948adebeb7
commit
825b5ea1b4
@ -10,9 +10,11 @@
|
|||||||
* 【core 】 IoUtil增加lineIter方法
|
* 【core 】 IoUtil增加lineIter方法
|
||||||
* 【core 】 新增函数式懒加载加载器(pr#275@Gitee)
|
* 【core 】 新增函数式懒加载加载器(pr#275@Gitee)
|
||||||
* 【http 】 UserAgentUtil增加miniProgram判断(issue#1475@Github)
|
* 【http 】 UserAgentUtil增加miniProgram判断(issue#1475@Github)
|
||||||
|
* 【db 】 增加Ignite数据库驱动识别
|
||||||
|
|
||||||
### Bug修复
|
### Bug修复
|
||||||
* 【core 】 修复IoUtil.readBytes的FileInputStream中isClose参数失效问题(issue#I3B7UD@Gitee)
|
* 【core 】 修复IoUtil.readBytes的FileInputStream中isClose参数失效问题(issue#I3B7UD@Gitee)
|
||||||
|
* 【core 】 修复DataUnit中KB不大写的问题
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ public enum DataUnit {
|
|||||||
*/
|
*/
|
||||||
TERABYTES("TB", DataSize.ofTerabytes(1));
|
TERABYTES("TB", DataSize.ofTerabytes(1));
|
||||||
|
|
||||||
public static final String[] UNIT_NAMES = new String[]{"B", "kB", "MB", "GB", "TB", "PB", "EB"};
|
public static final String[] UNIT_NAMES = new String[]{"B", "KB", "MB", "GB", "TB", "PB", "EB"};
|
||||||
|
|
||||||
private final String suffix;
|
private final String suffix;
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ public enum DataUnit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过后缀返回对应的 {@link DataUnit}
|
* 通过后缀返回对应的 DataUnit
|
||||||
*
|
*
|
||||||
* @param suffix 单位后缀
|
* @param suffix 单位后缀
|
||||||
* @return 匹配到的{@link DataUnit}
|
* @return 匹配到的{@link DataUnit}
|
||||||
|
@ -52,6 +52,8 @@ public class DialectFactory {
|
|||||||
public static final String DRIVER_DM7 = "dm.jdbc.driver.DmDriver";
|
public static final String DRIVER_DM7 = "dm.jdbc.driver.DmDriver";
|
||||||
/** JDBC 驱动 人大金仓 */
|
/** JDBC 驱动 人大金仓 */
|
||||||
public static final String DRIVER_KINGBASE8 = "com.kingbase8.Driver";
|
public static final String DRIVER_KINGBASE8 = "com.kingbase8.Driver";
|
||||||
|
/** JDBC 驱动 Ignite thin */
|
||||||
|
public static final String DRIVER_IGNITE_THIN = "org.apache.ignite.IgniteJdbcThinDriver";
|
||||||
|
|
||||||
private static final Map<DataSource, Dialect> DIALECT_POOL = new ConcurrentHashMap<>();
|
private static final Map<DataSource, Dialect> DIALECT_POOL = new ConcurrentHashMap<>();
|
||||||
|
|
||||||
@ -138,6 +140,9 @@ public class DialectFactory {
|
|||||||
} else if (nameContainsProductInfo.contains("kingbase8")) {
|
} else if (nameContainsProductInfo.contains("kingbase8")) {
|
||||||
// 人大金仓8
|
// 人大金仓8
|
||||||
driver = DRIVER_KINGBASE8;
|
driver = DRIVER_KINGBASE8;
|
||||||
|
} else if (nameContainsProductInfo.contains("ignite")) {
|
||||||
|
// Ignite thin
|
||||||
|
driver = DRIVER_IGNITE_THIN;
|
||||||
}
|
}
|
||||||
|
|
||||||
return driver;
|
return driver;
|
||||||
|
Loading…
Reference in New Issue
Block a user