You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To do query operation, the value of total_countde is not the expected result.
The following is the IEX operation
There are ten pieces of data in this table. After the search operation, three data should be returned, that is, total_count=3, and the actually returned total_count =10, and the following is the actual data.
and the following is the actual data
iex(6)> exchanges = queryable |> ZergApi.Repo.all
[debug] QUERY OK db=0.4ms
SELECT s0.`id`, s0.`name`, s0.`cn_name`, s0.`home_page`, s0.`timezone`, s0.`inserted_at`, s0.`updated_at` FROM (SELECT s0.`id` AS `id`, s0.`name` AS `name`, s0.`cn_name` AS `cn_name`, s0.`home_page` AS `home_page`, s0.`timezone` AS `timezone`, s0.`inserted_at` AS `inserted_at`, s0.`updated_at` AS `updated_at` FROM (SELECT e0.`id` AS `id`, e0.`name` AS `name`, e0.`cn_name` AS `cn_name`, e0.`home_page` AS `home_page`, e0.`timezone` AS `timezone`, e0.`inserted_at` AS `inserted_at`, e0.`updated_at` AS `updated_at` FROM `exchanges` AS e0) AS s0 WHERE (s0.`name` LIKE ?)) AS s0 ORDER BY s0.`name` LIMIT ? OFFSET ? ["%c%", 10, 0]
[%ZergApi.Base.Exchange{__meta__: #Ecto.Schema.Metadata<:loaded, "exchanges">,
cn_name: "", home_page: "", id: 5,
inserted_at: ~N[2018-04-10 14:02:17.000000], name: "",
products: #Ecto.Association.NotLoaded<association :products is not loaded>,
timezone: "Asia/Shanghai", updated_at: ~N[2018-04-10 14:02:17.000000]},
%ZergApi.Base.Exchange{__meta__: #Ecto.Schema.Metadata<:loaded, "exchanges">,
cn_name: "", home_page: "", id: 6,
inserted_at: ~N[2018-04-10 14:02:17.000000], name: "",
products: #Ecto.Association.NotLoaded<association :products is not loaded>,
timezone: "Asia/Shanghai", updated_at: ~N[2018-04-10 14:02:17.000000]},
%ZergApi.Base.Exchange{__meta__: #Ecto.Schema.Metadata<:loaded, "exchanges">,
cn_name: "", home_page: "", id: 4,
inserted_at: ~N[2018-04-10 14:02:17.000000], name: "",
products: #Ecto.Association.NotLoaded<association :products is not loaded>,
timezone: "Asia/Shanghai", updated_at: ~N[2018-04-10 14:02:17.000000]}]
Can you tell me how to solve this problem?
The text was updated successfully, but these errors were encountered:
To do query operation, the value of total_count is not the expected result.
The following is the IEX operation:
To do query operation, the value of total_countde is not the expected result.
The following is the IEX operation
There are ten pieces of data in this table. After the search operation, three data should be returned, that is, total_count=3, and the actually returned total_count =10, and the following is the actual data.
and the following is the actual data
Can you tell me how to solve this problem?
The text was updated successfully, but these errors were encountered: