From 81a896c669b7818b28855e4a4ba21ffe5faefa48 Mon Sep 17 00:00:00 2001 From: Leon Mergen Date: Thu, 2 Jun 2016 15:55:22 +0200 Subject: [PATCH] Recursively convert nested array types This solves the case where you, for example, want to return an array of inet addresses. --- src/suricatta/dsl/pgsql.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/suricatta/dsl/pgsql.clj b/src/suricatta/dsl/pgsql.clj index 56b95ca..2b99e0d 100644 --- a/src/suricatta/dsl/pgsql.clj +++ b/src/suricatta/dsl/pgsql.clj @@ -45,7 +45,7 @@ (extend-protocol proto/ISQLType java.sql.Array (-convert [self] - (into [] (.getArray self)))) + (into [] (map proto/-convert (.getArray self))))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;