Java version :
openjdk 18.0.2-ea 2022-07-19
OpenJDK Runtime Environment (build 18.0.2-ea+9-Ubuntu-222.04)
OpenJDK 64-Bit Server VM (build 18.0.2-ea+9-Ubuntu-222.04, mixed mode, sharing)
but when i start the nREPL in my text editor, it's says :
Starting nREPL server...
/usr/lib/jvm/java-11-openjdk-amd64/bin/java ...
Dependencies :
:dependencies [[org.clojure/clojure "1.11.1"]
[com.github.seancorfield/next.jdbc "1.3.834"]
[org.postgresql/postgresql "42.5.0"]
[com.layerware/hugsql "0.5.3"]]
code :
(def db
{:classname "org.postgresql.Driver"
:subprotocol "postgresql"
:subname "reporting"
:user "admin"
:password "admin"})
(defn add-user-transaction [users]
(jdbc/with-transaction [t-conn db]
(if-not (find-user t-conn {:id (:id users)})
(add-user! t-conn users))))
Everything works normal with that configuration, but only when i evaluate
(add-user-transaction {:id "cheryl"
:pass "Cheryl"})
the error appears.
It's asked in Clojure: Execution error (SQLException) at java.sql.DriverManager/getConnection (DriverManager.java:702) and already have answered, but the only answer in there is using :deps
or deps.edn
(as far i know, this is Maven repository), so how about leiningen? Or did i miss something about leiningen and Maven?
And i even restarting my pc, text editor, and nREPL but nothing change.