<< Back to previous view

[JDBC-150] register dbtype pgsql from com.impossibl.postgres.jdbc.PGDriver Created: 01/Mar/17  Updated: 01/Mar/17

Status: Open
Project: java.jdbc
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Enhancement Priority: Minor
Reporter: Geraldo Lopes de Souza Assignee: Sean Corfield
Resolution: Unresolved Votes: 0
Labels: None


 Description   

If you call (jdbc/with-db-connection [db {:dbtype "pgsql" :host "localhost" :port 5432 :dbname "tabwin_dev" :user "postgres" :password "xxx"}]) it leads to a NPE

[[java.lang.Class forName0 "Class.java" -2]
[java.lang.Class forName "Class.java" 348]
[clojure.lang.RT classForName "RT.java" 2183]
[clojure.lang.RT classForNameNonLoading "RT.java" 2196]
[clojure.lang.RT loadClassForName "RT.java" 2202]
[clojure.java.jdbc$get_connection invokeStatic "jdbc.clj" 290]
[clojure.java.jdbc$get_connection invoke "jdbc.clj" 193]

It would be nice : if pgsql was registered and in case of a misspelled dbtype a more friendlier user message instead of NPE.






Generated at Wed Mar 01 12:12:59 CST 2017 using JIRA 4.4#649-r158309.