Skip to content

Commit

Permalink
Merge pull request ErlyORM#42 from davebcn/master
Browse files Browse the repository at this point in the history
Support date type on mysql adapter
  • Loading branch information
evanmiller committed Oct 19, 2012
2 parents 230f57a + 33f8bdf commit e24727e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/db_adapters/boss_db_adapter_mysql.erl
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,8 @@ pack_value(V) when is_list(V) ->
"'" ++ escape_sql(V) ++ "'";
pack_value({MegaSec, Sec, MicroSec}) when is_integer(MegaSec) andalso is_integer(Sec) andalso is_integer(MicroSec) ->
pack_now({MegaSec, Sec, MicroSec});
pack_value({date, Date = {_,_,_}}) ->
pack_datetime({Date,{0,0,0}});
pack_value({{_, _, _}, {_, _, _}} = Val) ->
pack_datetime(Val);
pack_value(Val) when is_integer(Val) ->
Expand Down

0 comments on commit e24727e

Please sign in to comment.