Types improved

This commit is contained in:
Alexey Romanov
2011-04-28 13:20:44 +04:00
parent 766ba3f682
commit 13cb7f8148
2 changed files with 50 additions and 20 deletions

View File

@@ -54,7 +54,10 @@ col_type_to_atom("TEXT") ->
col_type_to_atom("REAL") ->
double;
col_type_to_atom("BLOB") ->
blob.
blob;
col_type_to_atom(String) ->
list_to_atom(string:to_lower(String)).
%%--------------------------------------------------------------------
%% @spec value_to_sql_unsafe(Value :: sql_value()) -> iolist()