Skip to content

Commit

Permalink
register driverClass rather than user class
Browse files Browse the repository at this point in the history
  • Loading branch information
mchalek committed Mar 23, 2016
1 parent 962e618 commit a927c76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ object JdbcUtils extends Logging {
DriverManager.getDriver(url).getClass.getCanonicalName
}
() => {
userSpecifiedDriverClass.foreach(DriverRegistry.register)
DriverRegistry.register(driverClass)
val driver: Driver = DriverManager.getDrivers.asScala.collectFirst {
case d: DriverWrapper if d.wrapped.getClass.getCanonicalName == driverClass => d
case d if d.getClass.getCanonicalName == driverClass => d
Expand Down

0 comments on commit a927c76

Please sign in to comment.