Permalink
Browse files

Merge pull request #18 from jgordor/master

Important fixes in mysql driver
  • Loading branch information...
2 parents 379b316 + 2a701bb commit 4f3493dc4686c2d233ff0466793e472ab8cac0c7 @evanmiller evanmiller committed Jun 14, 2012
Showing with 0 additions and 3 deletions.
  1. +0 −3 src/db_adapters/boss_db_adapter_mysql.erl
@@ -253,7 +253,6 @@ build_update_query(Record) ->
{_, TableName, Id} = infer_type_from_id(Record:id()),
Updates = lists:foldl(fun
({id, _}, Acc) -> Acc;
- ({_, undefined}, Acc) -> Acc;
({A, V}, Acc) ->
AString = atom_to_list(A),
Value = case lists:suffix("_id", AString) of
@@ -387,8 +386,6 @@ pack_datetime(DateTime) ->
pack_now(Now) -> pack_datetime(calendar:now_to_datetime(Now)).
-pack_value(false) ->
- "''";
pack_value(undefined) ->
"null";
pack_value(V) when is_binary(V) ->

0 comments on commit 4f3493d

Please sign in to comment.