Skip to content

Commit fd12005

Browse files
committed
#17: Use connection validation support from postgres-async-driver 0.7
1 parent 2588150 commit fd12005

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

project.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
:scm {:name "git"
77
:url "http://github.com/alaisi/postgres.async.git"}
88
:dependencies [[org.clojure/clojure "1.6.0"]
9-
[org.clojure/core.async "0.1.346.0-17112a-alpha"]
10-
[com.github.alaisi.pgasync/postgres-async-driver "0.7-SNAPSHOT"]
9+
[org.clojure/core.async "0.2.374"]
10+
[com.github.alaisi.pgasync/postgres-async-driver "0.7"]
1111
[cheshire "5.5.0" :scope "provided"]]
1212
:lein-release {:deploy-via :clojars}
1313
:global-vars {*warn-on-reflection* true}

src/postgres/async.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
(.ssl (boolean ssl))
3434
(.pipeline (boolean pipeline))
3535
(.poolSize (or pool-size 25))
36-
(.validationQuery validation-query)
36+
(.validationQuery (or validation-query ""))
3737
(.dataConverter (create-converter))
3838
(.build)))
3939

test/postgres/async_test.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
:database (env "PG_DB" "postgres")
2626
:username (env "PG_USER" "postgres")
2727
:password (env "PG_PASSWORD" "postgres")
28+
:validation-query "select 1"
2829
:pipeline true
2930
:pool-size 1})]
3031
(try

0 commit comments

Comments
 (0)