Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PostgresORM"
uuid = "748b5efa-ed57-4836-b183-a38105a77fdd"
authors = ["Vincent Laugier <vincent.laugier@gmail.com>"]
version = "0.7.0"
version = "0.7.1"

[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Expand Down
14 changes: 6 additions & 8 deletions src/Tool/Tool.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,12 @@ function build_field_name(str_arr::Vector{String},
return field_name
end

function is_vector_of_enum(coltype::String,
elttype::String,
customtypes_names::Vector{String})
if (coltype == "ARRAY")
function is_vector_of_enum(
coltype::String,
elttype::String,
customtypes_names::Vector{<:AbstractString}
)
if (coltype == "ARRAY")
if elttype[2:end] in customtypes_names # remove the leading underscore
return true
end
Expand All @@ -107,10 +109,6 @@ function get_fieldtype_from_coltype(
colname::String = ""
)

if (colname == "duration")
@info "duration coltype[$coltype]"
end

attrtype = missing
customtypes_names = keys(customtypes) |> collect |> n -> string.(n)

Expand Down