Fix SQL serialization

The regression is introduced in 11829906ac
Fixes #2121
This commit is contained in:
Evgeniy Khramtsov 2017-11-24 09:45:22 +03:00
parent 0e5b343f1b
commit a57c694f21
1 changed files with 1 additions and 1 deletions

View File

@ -822,7 +822,7 @@ opts_to_binary(Opts) ->
{description, iolist_to_binary(Desc)};
({password, Pass}) ->
{password, iolist_to_binary(Pass)};
({subject, Subj}) ->
({subject, [C|_] = Subj}) when is_integer(C), C >= 0, C =< 255 ->
{subject, iolist_to_binary(Subj)};
({subject_author, Author}) ->
{subject_author, iolist_to_binary(Author)};