Closed rebra7 closed 7 years ago
PHP 7.0.18 SQL 2.4
Koda: created_at asc created_at desc updated_at asc updated_at desc ticket number pravilno soritra tickete
[desc: "created_at", asc: "updated_at"]
Zadeva je uspešno rešena in lahko sortiramo po datumih :)
Predpogoji
PHP 7.0.18 SQL 2.4
Koraki za reproduciranje težave
Pričakovani rezultati
Koda: created_at asc created_at desc updated_at asc updated_at desc ticket number pravilno soritra tickete
Dejanski rezultat
[desc: "created_at", asc: "updated_at"]
as type text (ecto) lib/ecto/adapters/postgres/worker.ex:18: Ecto.Adapters.Postgres.Worker.query!/4 (ecto) lib/ecto/adapters/postgres.ex:270: Ecto.Adapters.Postgres.use_worker/3 (stdlib) timer.erl:165: :timer.tc/1 (comet_api) lib/repo.ex:2: Repo.log/2 (ecto) lib/ecto/adapters/postgres.ex:64: Ecto.Adapters.Postgres.all/4 (ecto) lib/ecto/repo/queryable.ex:20: Ecto.Repo.Queryable.all/4 (comet_api) web/controllers/user_controller.ex:14: CometApi.UserController.index/2 (comet_api) web/controllers/user_controller.ex:1: CometApi.UserController.phoenix_controller_pipeline/2