This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-01
Channels
- # beginners (133)
- # boot (59)
- # cider (5)
- # cljs-dev (30)
- # cljsrn (23)
- # clojure (212)
- # clojure-austin (3)
- # clojure-brasil (1)
- # clojure-chicago (5)
- # clojure-italy (10)
- # clojure-russia (5)
- # clojure-serbia (1)
- # clojure-spec (34)
- # clojure-turkiye (2)
- # clojure-uk (132)
- # clojurescript (163)
- # clojutre (1)
- # cursive (5)
- # datomic (58)
- # emacs (42)
- # events (1)
- # graphql (26)
- # hoplon (16)
- # jobs (1)
- # lumo (27)
- # numerical-computing (3)
- # off-topic (127)
- # om (9)
- # onyx (24)
- # re-frame (20)
- # reagent (20)
- # ring-swagger (14)
- # sql (19)
- # unrepl (28)
- # untangled (3)
- # vim (8)
- # yada (17)
I am trying to figure out how to add the PostgreSQL JDBC driver as a dependency in a project that uses Boot, in that I want to use the most up to date driver, but I can't figure out how to address it. The library that I want to use, yesql, has an example that looks like this:
[org.postgresql/postgresql "9.4-1201-jdbc41"]
but the latest version of the driver for JDK8 (which is the JVM I am running) is this:
42.1.1 JDBC 42
I realise I could trial and error it, but does anyone know where I can look up how to express the dependency so that it will "just work"?
Anyone who cares, it's like this: [org.postgresql/postgresql "42.1.1.jre7"] if you want the latest version of the postgres JDBC library...
@maleghast I've tried to find why the JDBC lib is versioned differently after 9.4.1212, but I can't even find a changelog
Nope, no idea. I can only assume that the postgres team decided to stop tying the version to the version of the DB
In that that is what it looks like. I have no idea when / how the decision to alter the versioning approach was made.
The release notes simply say, “Version bumped to 42.0.0 to avoid version clash with PostgreSQL version”
@donaldball do happen to have a link to the release notes?
FWIW, clojure.java.jdbc
is tested against the [org.postgresql/postgresql "9.4.1212.jre7"]
driver. I’d have to check what actual version of PostgreSQL I test against… it’s in Docker…
…hmm, looks like I just test against whatever is the current, generic postgres
Docker registry image/version.
@seancorfield AFAIK the latest version is backwardly compatible, so there should not be any risk with using a more recent version that the one clojure.java.jdbc is tested against, unless one were to try and use features that were not implemented, right? I am just doing very vanilla CREATE statments, INSERTs and SELECTs
Yeah, if someone reported a bug against a specific version combination, I’d make an effort to test against that to repro…