Browse files

Support sqlserver and jtds:sqlserver subprotocols for MS SQL Server v…

…ia Microsoft's own driver and the jTDS driver.
  • Loading branch information...
1 parent 07e9dbe commit 155e75224d5e918eea7e08b56e1397b5983d6743 @seancorfield seancorfield committed Feb 29, 2012
Showing with 7 additions and 5 deletions.
  1. +7 −5 src/main/clojure/clojure/java/jdbc/internal.clj
View
12 src/main/clojure/clojure/java/jdbc/internal.clj
@@ -27,11 +27,13 @@
(def ^{:dynamic true} *db* {:connection nil :level 0})
(def ^{:private true :doc "Map of classnames to subprotocols"} classnames
- {"postgresql" "org.postgresql.Driver"
- "mysql" "com.mysql.jdbc.Driver"
- "derby" "org.apache.derby.jdbc.EmbeddedDriver"
- "hsqldb" "org.hsqldb.jdbcDriver"
- "sqlite" "org.sqlite.JDBC"})
+ {"postgresql" "org.postgresql.Driver"
+ "mysql" "com.mysql.jdbc.Driver"
+ "sqlserver" "com.microsoft.sqlserver.jdbc.SQLServerDriver"
+ "jtds:sqlserver" "net.sourceforge.jtds.jdbc.Driver"
+ "derby" "org.apache.derby.jdbc.EmbeddedDriver"
+ "hsqldb" "org.hsqldb.jdbcDriver"
+ "sqlite" "org.sqlite.JDBC"})
(def ^{:private true :doc "Map of schemes to subprotocols"} subprotocols
{"postgres" "postgresql"})

0 comments on commit 155e752

Please sign in to comment.