Skip to content

Commit

Permalink
Recursively convert nested array types
Browse files Browse the repository at this point in the history
This solves the case where you, for example, want to return an array of
inet addresses.
  • Loading branch information
solatis committed Jun 2, 2016
1 parent c4ae4a0 commit 81a896c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/suricatta/dsl/pgsql.clj
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
(extend-protocol proto/ISQLType
java.sql.Array
(-convert [self]
(into [] (.getArray self))))
(into [] (map proto/-convert (.getArray self)))))


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Expand Down

0 comments on commit 81a896c

Please sign in to comment.