Guest User

Untitled

a guest
May 8th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. diff --git a/lib/jdbc_adapter/jdbc_mysql.rb b/lib/jdbc_adapter/jdbc_mysql.rb
  2. index 4bce0bb..3f6f554 100644
  3. --- a/lib/jdbc_adapter/jdbc_mysql.rb
  4. +++ b/lib/jdbc_adapter/jdbc_mysql.rb
  5. @@ -17,7 +17,7 @@ module ::JdbcSpec
  6. else
  7. config[:url] = "jdbc:mysql://#{config[:host]}:#{config[:port]}/#{config[:database]}?#{url_options}"
  8. end
  9. - config[:driver] = "com.mysql.jdbc.Driver"
  10. + config[:driver] ||= "com.mysql.jdbc.Driver"
  11. connection = jdbc_connection(config)
  12. ::JdbcSpec::MySQL.kill_cancel_timer(connection.raw_connection)
  13. connection
Add Comment
Please, Sign In to add comment