Commit 64ddb343 authored by Quxl's avatar Quxl

x

parent c8adc02e
...@@ -80,8 +80,9 @@ ...@@ -80,8 +80,9 @@
<artifactId>mssql-jdbc</artifactId> <artifactId>mssql-jdbc</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>net.sourceforge.jtds</groupId> <groupId>com.sybase</groupId>
<artifactId>jtds</artifactId> <artifactId>jdbc</artifactId>
<version>4</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
......
...@@ -58,6 +58,8 @@ public class SqlTestController { ...@@ -58,6 +58,8 @@ public class SqlTestController {
driverClass = "com.mysql.jdbc.Driver"; driverClass = "com.mysql.jdbc.Driver";
} else if(jdbcUrl.contains("sqlserver")) { } else if(jdbcUrl.contains("sqlserver")) {
driverClass = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; driverClass = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
} else if(jdbcUrl.contains("sybase")) {
driverClass = "com.sybase.jdbc4.jdbc.SybDriver";
} else { } else {
throw new XRException("URL无法识别, 没有对应的驱动程序"); throw new XRException("URL无法识别, 没有对应的驱动程序");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment