Permalink
Browse files

Add missing convert_value_to_type for integer values

  • Loading branch information...
1 parent d1f1564 commit 67fbb9e7d0c7d4abe40f249502fc4bbf2a307264 @jgordor jgordor committed Feb 29, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/boss_record_lib.erl
View
@@ -62,6 +62,12 @@ ensure_loaded(Module) ->
convert_value_to_type(Val, undefined) ->
Val;
+convert_value_to_type(Val, integer) when is_integer(Val) ->
+ Val;
+convert_value_to_type(Val, integer) when is_list(Val) ->
+ list_to_integer(Val);
+convert_value_to_type(Val, integer) when is_binary(Val) ->
+ list_to_integer(binary_to_list(Val));
convert_value_to_type(Val, string) when is_integer(Val) ->
integer_to_list(Val);
convert_value_to_type(Val, string) when is_binary(Val) ->

0 comments on commit 67fbb9e

Please sign in to comment.