Skip to content

Instantly share code, notes, and snippets.

@aerosol
Created August 18, 2015 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aerosol/ec98cd93bacd59318f14 to your computer and use it in GitHub Desktop.
Save aerosol/ec98cd93bacd59318f14 to your computer and use it in GitHub Desktop.
iex(48)> Repo.one(from a in APIKey, where: a.key == "7488a646-e31f-11e4-aace-600308960662")
** (Postgrex.Error) ERROR (character_not_in_repertoire): invalid byte sequence for encoding "UTF8": 0x88
(ecto) lib/ecto/adapters/sql.ex:171: Ecto.Adapters.SQL.query!/5
(ecto) lib/ecto/adapters/sql.ex:464: Ecto.Adapters.SQL.execute/6
(ecto) lib/ecto/repo/queryable.ex:95: Ecto.Repo.Queryable.execute/5
(ecto) lib/ecto/repo/queryable.ex:15: Ecto.Repo.Queryable.all/4
(ecto) lib/ecto/repo/queryable.ex:44: Ecto.Repo.Queryable.one/4
iex(48)> Repo.one(from a in APIKey, where: a.key == ^kkk)
%Foo.APIKey{__meta__: #Ecto.Schema.Metadata<:loaded>,
account: #Ecto.Association.NotLoaded<association :account is not loaded>,
account_id: 41, id: 13, inserted_at: #Ecto.DateTime<2015-08-18T15:45:31Z>,
key: "7488a646-e31f-11e4-aace-600308960662",
updated_at: #Ecto.DateTime<2015-08-18T15:45:31Z>}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment