project_ids =
from(p in Project,
where: p.id in ^["42", "43"],
where: p.owner_id == ^current_user.id,
select: p.id
) |> Repo.all()
IO.inspect project_ids // '*+' instead of [42, 43]
Correct:
project_ids =
from(p in Project,
where: p.id in ^["1", "19"],
where: p.owner_id == ^current_user.id,
select: p.id
) |> Repo.all()
IO.inspect project_ids // [1,19] -> correct
magic ? what is it ? ascii, how can i convert it ? why it happened ?