Skip to content

Commit 4c0e908

Browse files
committed
Support for array for floats and array of integers
1 parent db51aca commit 4c0e908

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Tool/Tool.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ function get_fieldtype_from_coltype(coltype::String,
133133
elseif (coltype == "ARRAY")
134134
if (elttype == "_text" || elttype == "_varchar")
135135
attrtype = "Vector{String}"
136+
elseif (elttype == "_numeric")
137+
attrtype = "Vector{Float64}"
138+
elseif (elttype == "_int4")
139+
attrtype = "Vector{Int64}"
136140
elseif is_vector_of_enum(coltype,elttype,customtypes_names)
137141
elttype = elttype[2:end] # remove the leading underscore
138142
attrtype = "Vector{$(build_enum_name_w_module(elttype))}"

0 commit comments

Comments
 (0)