Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
niwinz committed Jul 9, 2019
1 parent 93e2bf4 commit 168ada2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
:extra-paths ["test"]}
:bench {:extra-deps {seancorfield/next.jdbc {:mvn/version "1.0.1"}
criterium/criterium {:mvn/version "0.4.5"}}}

:jar {:extra-deps {seancorfield/depstar {:mvn/version "RELEASE"}}
:main-opts ["-m" "hf.depstar.jar"]}

:repl {:main-opts ["-m" "rebel-readline.main"]}
:ancient {:main-opts ["-m" "deps-ancient.deps-ancient"]
:extra-deps {deps-ancient {:mvn/version "RELEASE"}}}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>funcool</groupId>
<artifactId>suricatta</artifactId>
<packaging>jar</packaging>
<version>2.0.0</version>
<version>2.0.0-SNAPSHOT</version>
<name>suricatta</name>
<description>High level sql toolkit for clojure (backed by jooq library)</description>
<url>https://github.com/funcool/suricatta</url>
Expand Down
7 changes: 7 additions & 0 deletions src/suricatta/impl.clj
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@

(extend-protocol proto/IParam
Object
(-param [v _] v)

nil
(-param [v _] v))

(defn wrap-if-need
Expand Down Expand Up @@ -223,8 +226,12 @@
;; Default implementation for avoid call to `satisfies?`
(extend-protocol proto/ISQLType
Object
(-convert [v] v)

nil
(-convert [v] v))


(defn- result-record->record
[^org.jooq.Record record]
(letfn [(reduce-fn [acc ^Field field]
Expand Down

0 comments on commit 168ada2

Please sign in to comment.