We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7db9414 commit cbb0c70Copy full SHA for cbb0c70
src/postgres/async.clj
@@ -13,15 +13,15 @@
13
14
(defn- create-converter []
15
(proxy [DataConverter] []
16
+ (fromConvertable [value]
17
+ (to-pg-value value))
18
(toObject [oid value]
19
(when value
- (let [val (from-pg-value oid value)]
- (if (= ::raw-value val)
20
- (proxy-call-with-super #(.toObject ^DataConverter this oid value)
21
- this "toObject")
22
- val))))
23
- (fromConvertable [value]
24
- (to-pg-value value))))
+ (let [val (from-pg-value oid value)
+ this ^DataConverter this]
+ (if-not (= ::raw-value val)
+ val
+ (proxy-super toObject oid value)))))))
25
26
(defn open-db
27
"Creates a db connection pool"
0 commit comments