Permalink
Browse files

Merge pull request #25 from helllamer/master

adapter_pgsql: fix 'false' boolean attribute support.
  • Loading branch information...
2 parents 20d942f + 40e6d2b commit 4433ec796deff0a081207f9c124f753a16e76047 @evanmiller evanmiller committed Jul 29, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/db_adapters/boss_db_adapter_pgsql.erl
View
4 src/db_adapters/boss_db_adapter_pgsql.erl
@@ -384,10 +384,8 @@ pack_datetime(DateTime) ->
pack_now(Now) -> pack_datetime(calendar:now_to_datetime(Now)).
-pack_value(false) ->
- "''";
pack_value(undefined) ->
- "null";
+ "null";
pack_value(V) when is_binary(V) ->
pack_value(binary_to_list(V));
pack_value(V) when is_list(V) ->

0 comments on commit 4433ec7

Please sign in to comment.