mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-12-08 10:09:06 +08:00
add sqlserver2005 support
This commit is contained in:
parent
f0a7198645
commit
0a02b4955f
@ -72,6 +72,7 @@ public class DialectFactory {
|
|||||||
} else if (DriverNames.DRIVER_SQLSERVER.equalsIgnoreCase(driverName)) {
|
} else if (DriverNames.DRIVER_SQLSERVER.equalsIgnoreCase(driverName)) {
|
||||||
return new SqlServer2012Dialect(dbConfig);
|
return new SqlServer2012Dialect(dbConfig);
|
||||||
} else if (DriverNames.DRIVER_SQLSERVER_OLD.equalsIgnoreCase(driverName)) {
|
} else if (DriverNames.DRIVER_SQLSERVER_OLD.equalsIgnoreCase(driverName)) {
|
||||||
|
// TODO 无法简单通过jdbc url 判断SqlServer版本
|
||||||
return new SqlServer2005Dialect(dbConfig);
|
return new SqlServer2005Dialect(dbConfig);
|
||||||
} else if (DriverNames.DRIVER_PHOENIX.equalsIgnoreCase(driverName)) {
|
} else if (DriverNames.DRIVER_PHOENIX.equalsIgnoreCase(driverName)) {
|
||||||
return new PhoenixDialect(dbConfig);
|
return new PhoenixDialect(dbConfig);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user