Skip to content

Querying #8

@rockwood

Description

@rockwood

I'm having trouble querying by columns that use Timex.Ecto.DateTime. Is there something I'm doing wrong?

> {:ok, start_date} = DateFormat.parse("2015-10-01", "{YYYY}-{0M}-{0D}")
> Repo.all(from p in Post, where: v.submitted_at > ^start_date)


** (UndefinedFunctionError) undefined function: Timex.DateTime.type/0
    (ecto) lib/ecto/query/planner.ex:124: Ecto.Query.Planner.prepare/3
    (ecto) lib/ecto/query/planner.ex:66: Ecto.Query.Planner.query/4
    (ecto) lib/ecto/repo/queryable.ex:91: Ecto.Repo.Queryable.execute/5
    (ecto) lib/ecto/repo/queryable.ex:15: Ecto.Repo.Queryable.all/4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions