Skip to content

Commit

Permalink
#17: Use connection validation support from postgres-async-driver 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
alaisi committed Dec 2, 2015
1 parent 2588150 commit fd12005
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
:scm {:name "git"
:url "http://github.com/alaisi/postgres.async.git"}
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/core.async "0.1.346.0-17112a-alpha"]
[com.github.alaisi.pgasync/postgres-async-driver "0.7-SNAPSHOT"]
[org.clojure/core.async "0.2.374"]
[com.github.alaisi.pgasync/postgres-async-driver "0.7"]
[cheshire "5.5.0" :scope "provided"]]
:lein-release {:deploy-via :clojars}
:global-vars {*warn-on-reflection* true}
Expand Down
2 changes: 1 addition & 1 deletion src/postgres/async.clj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
(.ssl (boolean ssl))
(.pipeline (boolean pipeline))
(.poolSize (or pool-size 25))
(.validationQuery validation-query)
(.validationQuery (or validation-query ""))
(.dataConverter (create-converter))
(.build)))

Expand Down
1 change: 1 addition & 0 deletions test/postgres/async_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
:database (env "PG_DB" "postgres")
:username (env "PG_USER" "postgres")
:password (env "PG_PASSWORD" "postgres")
:validation-query "select 1"
:pipeline true
:pool-size 1})]
(try
Expand Down

0 comments on commit fd12005

Please sign in to comment.