use :text as format

This commit is contained in:
Martin Frost 2015-05-05 23:32:38 +02:00
parent 56d8031c25
commit 4b2fe9d0b8
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ defmodule Isn.Extension do
do: Enum.reduce(@isn, [], fn(t, ack) -> ack ++ [type: t] end) do: Enum.reduce(@isn, [], fn(t, ack) -> ack ++ [type: t] end)
def format(_), def format(_),
do: :string do: :text
def encode(%TypeInfo{type: type}, binary, _types, _opts) when type in @isn, def encode(%TypeInfo{type: type}, binary, _types, _opts) when type in @isn,
do: binary do: binary