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

No function clause matching in Plsm.IO.Export.map_type for :none #121

Open
trans opened this issue Oct 27, 2021 · 0 comments
Open

No function clause matching in Plsm.IO.Export.map_type for :none #121

trans opened this issue Oct 27, 2021 · 0 comments

Comments

@trans
Copy link

trans commented Oct 27, 2021

Tried to run Plsm on the Fishbowl inventory system MySQL database.

➜ mix plsm                                 
Using MySql...
** (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
        :none
    
    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.12.2) lib/enum.ex:2385: Enum."-reduce/3-lists^foldl/2-0-"/3
    lib/io/export.ex:62: Plsm.IO.Export.prepare/2
    (elixir 1.12.2) lib/enum.ex:1582: Enum."-map/2-lists^map/1-0-"/2
    (elixir 1.12.2) lib/enum.ex:1582: Enum."-map/2-lists^map/1-0-"/2
    lib/plsm.ex:16: Mix.Tasks.Plsm.run/1

Any ideas?

Here's my version info.

➜ elixir -v
Erlang/OTP 24 [erts-12.0.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit]

Elixir 1.12.2 (compiled with Erlang/OTP 22)

➜ mix deps
* connection 1.1.0 (Hex package) (mix)
  locked at 1.1.0 (connection) 722c1eb0
  ok
* db_connection 2.4.1 (Hex package) (mix)
  locked at 2.4.1 (db_connection) ea36d226
  ok
* decimal 2.0.0 (Hex package) (mix)
  locked at 2.0.0 (decimal) 34666e9c
  ok
* myxql 0.4.5 (Hex package) (mix)
  locked at 0.4.5 (myxql) 40a6166a
  ok
* plsm 2.4.0 (Hex package) (mix)
  locked at 2.4.0 (plsm) 071b79fb
  ok
* postgrex 0.15.13 (Hex package) (mix)
  locked at 0.15.13 (postgrex) 3ffb76e1
  ok
* telemetry 1.0.0 (Hex package) (rebar3)
  locked at 1.0.0 (telemetry) 73bc09fa
  ok
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

1 participant