Skip to content

NaiveDateTime querying #56

@jnylen

Description

@jnylen

Hi @maartenvanvliet,

When trying to order with a join on a naive datetime field I get:

deps/quarto/lib/quarto/ecto/query.ex:100: value `{:created_at, ~N[2012-06-07 13:03:15]}` in `where` cannot be cast to type :naive_datetime in query:

Query looks like this:

  where: s1.created_at < ^{:created_at, ~N[2012-06-07 13:03:15]} and ^true and ^true,
  order_by: [desc: s1.created_at],

I also notice that you can't paginate on a query that has multiple of the same direction.

I.e. a asc on both created_at and id for example.

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