{"action":"created","issue":{"url":"https://api.github.com/repos/bryanjos/geo/issues/70","repository_url":"https://api.github.com/repos/bryanjos/geo","labels_url":"https://api.github.com/repos/bryanjos/geo/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/bryanjos/geo/issues/70/comments","events_url":"https://api.github.com/repos/bryanjos/geo/issues/70/events","html_url":"https://github.com/bryanjos/geo/issues/70","id":235016354,"number":70,"title":"Postgrex expected a binary, got %Geo.Point","user":{"login":"Virviil","id":3989623,"avatar_url":"https://avatars1.githubusercontent.com/u/3989623?v=3","gravatar_id":"","url":"https://api.github.com/users/Virviil","html_url":"https://github.com/Virviil","followers_url":"https://api.github.com/users/Virviil/followers","following_url":"https://api.github.com/users/Virviil/following{/other_user}","gists_url":"https://api.github.com/users/Virviil/gists{/gist_id}","starred_url":"https://api.github.com/users/Virviil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Virviil/subscriptions","organizations_url":"https://api.github.com/users/Virviil/orgs","repos_url":"https://api.github.com/users/Virviil/repos","events_url":"https://api.github.com/users/Virviil/events{/privacy}","received_events_url":"https://api.github.com/users/Virviil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-10T17:35:14Z","updated_at":"2017-06-15T13:30:36Z","closed_at":null,"body":"This query is working:\r\n```\r\nINSERT INTO \"bookmarks\" (\"address\",\"bookmark_type\",\"description\",\"is_active\",\"is_delete\",\"latlng\",\"tag\",\"uid\",\"inserted_at\",\"updated_at\") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING \"id\" [\"adi\", \"private\", \"testing\", true, false, %Geo.Point{coordinates: {26.7885576, 75.8270401}, srid: 4326}, \"test1 test2 test3\", \"2ffce5f2e79a4f8c917fc58591260cdb80011f6d\", {{2017, 6, 10}, {17, 30, 46, 127816}}, {{2017, 6, 10}, {17, 30, 46, 134318}}]\r\n```\r\n\r\nwhile this one returns error:\r\n```\r\nSELECT b0.\"id\", b0.\"uid\", b0.\"tag\", b0.\"description\", b0.\"address\", b0.\"bookmark_type\", b0.\"is_active\", b0.\"is_delete\", b0.\"latlng\", b0.\"inserted_at\", b0.\"updated_at\" FROM \"bookmarks\" AS b0 WHERE (b0.\"bookmark_type\" = 'public') AND (ST_Within(b0.\"latlng\",ST_Buffer($1, $2, 8))) AND ((b0.\"is_active\" = TRUE) AND (b0.\"is_delete\" != TRUE)) ORDER BY b0.\"updated_at\" DESC LIMIT $3 OFFSET $4 [%Geo.Point{coordinates: {26.7885576, 75.8270401}, srid: 4326}, 1.0, 10, 0]\r\n```\r\n\r\nSo, I'm totally confused. It seems to me that potgrex in both cases should either work or not work - because either cast or not cast to binary.\r\n\r\n\r\nMay be I'm mising something in the configuration, or you can navigate me where should I dig deeper to see where is the problem?"},"comment":{"url":"https://api.github.com/repos/bryanjos/geo/issues/comments/308729691","html_url":"https://github.com/bryanjos/geo/issues/70#issuecomment-308729691","issue_url":"https://api.github.com/repos/bryanjos/geo/issues/70","id":308729691,"user":{"login":"bryanjos","id":1257573,"avatar_url":"https://avatars0.githubusercontent.com/u/1257573?v=3","gravatar_id":"","url":"https://api.github.com/users/bryanjos","html_url":"https://github.com/bryanjos","followers_url":"https://api.github.com/users/bryanjos/followers","following_url":"https://api.github.com/users/bryanjos/following{/other_user}","gists_url":"https://api.github.com/users/bryanjos/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanjos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanjos/subscriptions","organizations_url":"https://api.github.com/users/bryanjos/orgs","repos_url":"https://api.github.com/users/bryanjos/repos","events_url":"https://api.github.com/users/bryanjos/events{/privacy}","received_events_url":"https://api.github.com/users/bryanjos/received_events","type":"User","site_admin":false},"created_at":"2017-06-15T13:30:36Z","updated_at":"2017-06-15T13:30:36Z","body":"@Virviil is that the query the Ecto runs? If so could you show me your Ecto query if possible?"}}
{"actor":{"display_login":"bryanjos"}}