findmypast-oss / mssql_ecto

Ecto adapter for Mssqlex
Apache License 2.0
49 stars 20 forks source link

UUID ** (ArgumentError) invalid or unknown type :uuid for field :DemoCategoryKey #31

Closed cdesch closed 6 years ago

cdesch commented 6 years ago
= Compilation error in file lib/plant.ex ==
** (ArgumentError) invalid or unknown type :uuid for field :DemoCategoryKey
    lib/ecto/schema.ex:1727: Ecto.Schema.check_type!/3
    lib/ecto/schema.ex:1431: Ecto.Schema.__field__/4
    lib/plant.ex:5: (module)
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6

Error from code section:


defmodule MsSqlTest.DemoCategory do
  use Ecto.Schema

  @primary_key {:DemoCategoryKey, :uuid, autogenerate: false} 
  schema "DemoCategory" do
    #field :DemoCategoryKey, :uuid
    field :Name, :string     # Defaults to type :string
    field :CategoryNo, :integer
    field :Description, :string
  end
end

Your Environment

shdblowers commented 6 years ago

This is a duplicate of #20 , no?

cdesch commented 6 years ago

I think so. Closing. I saw #20 after submitting the issue. Thanks.