Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres Mix plsm Output Error Geo Fields? #126

Open
chavenor opened this issue Feb 15, 2022 · 1 comment
Open

Postgres Mix plsm Output Error Geo Fields? #126

chavenor opened this issue Feb 15, 2022 · 1 comment

Comments

@chavenor
Copy link

I'm not sure how to fix this. It seems like there isn't a pattern match for a boolean field.

I'm using Postgres 13.x and have PostGIS enabled. Will it work for geo fields?

Using PostgreSQL...
** (FunctionClauseError) no function clause matching in Plsm.IO.Export.map_type/1

    The following arguments were given to Plsm.IO.Export.map_type/1:

        # 1
        :boolean

    Attempted function clauses (showing 7 out of 7):

        defp map_type(:decimal)
        defp map_type(:float)
        defp map_type(:string)
        defp map_type(:text)
        defp map_type(:map)
        defp map_type(:date)
        defp map_type(:integer)

    lib/io/export.ex:12: Plsm.IO.Export.map_type/1
    lib/io/export.ex:8: Plsm.IO.Export.type_output/1
    lib/io/export.ex:63: anonymous fn/2 in Plsm.IO.Export.prepare/2
    (elixir 1.13.3) lib/enum.ex:2396: Enum."-reduce/3-lists^foldl/2-0-"/3
    lib/io/export.ex:62: Plsm.IO.Export.prepare/2
    (elixir 1.13.3) lib/enum.ex:1593: Enum."-map/2-lists^map/1-0-"/2
    (elixir 1.13.3) lib/enum.ex:1593: Enum."-map/2-lists^map/1-0-"/2
    lib/plsm.ex:16: Mix.Tasks.Plsm.run/1
@tomjoro
Copy link

tomjoro commented Feb 15, 2022

Use the latest from GitHub. It has support for Boolean and it works.
I see the change here (from 2020):
cd9b14b

I don't think geo fields are supported - others were asking for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants