Skip to content

Commit

Permalink
Use start_link instead of start
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Miller committed Apr 13, 2012
1 parent 7d4df64 commit 1f5b1f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/db_adapters/boss_db_adapter_mysql.erl
Expand Up @@ -18,7 +18,7 @@ init(Options) ->
DBDatabase = proplists:get_value(db_database, Options, "test"),
DBIdentifier = proplists:get_value(db_shard_id, Options, boss_pool),
Encoding = utf8,
mysql_conn:start(DBHost, DBPort, DBUsername, DBPassword, DBDatabase,
mysql_conn:start_link(DBHost, DBPort, DBUsername, DBPassword, DBDatabase,
fun(_, _, _, _) -> ok end, Encoding, DBIdentifier).

terminate(Pid) ->
Expand Down Expand Up @@ -392,7 +392,7 @@ pack_value(false) ->
pack_value(undefined) ->
"null";
pack_value(V) when is_binary(V) ->
pack_value(unicode:characters_to_list(V));
pack_value(binary_to_list(V));
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) ->
Expand Down

0 comments on commit 1f5b1f1

Please sign in to comment.