Permalink
Browse files

boss_db:validate_record_types did not handle fields of type 'atom'

  • Loading branch information...
franko-franicevich committed Sep 3, 2012
1 parent 5d08791 commit 7cf9f9138bd3ca57bef9d1638b82262dce3479ea
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/boss_db.erl
View
@@ -285,6 +285,8 @@ validate_record_types(Record) ->
true;
{{N1, N2, N3}, timestamp} when is_integer(N1), is_integer(N2), is_integer(N3) ->
true;
+ {Data, atom} when is_atom(Data) ->
+ true;
{_Data, Type} ->
false
end,

0 comments on commit 7cf9f91

Please sign in to comment.