aboutsummaryrefslogtreecommitdiffstats
path: root/src/mysqlerl_connection.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mysqlerl_connection.erl')
-rw-r--r--src/mysqlerl_connection.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mysqlerl_connection.erl b/src/mysqlerl_connection.erl
index ac0497a..1a3d900 100644
--- a/src/mysqlerl_connection.erl
+++ b/src/mysqlerl_connection.erl
@@ -23,10 +23,8 @@ stop(Pid) ->
init([Owner, Host, Port, Database, User, Password, Options]) ->
process_flag(trap_exit, true),
link(Owner),
- Cmd = lists:flatten(io_lib:format("~s ~s ~w ~s ~s ~s ~s",
- [helper(), Host, Port, Database,
- User, Password, Options])),
- {ok, Sup} = mysqlerl_port_sup:start_link(Cmd),
+ {ok, Sup} = mysqlerl_port_sup:start_link(helper(), Host, Port, Database,
+ User, Password, Options),
{ok, #state{sup = Sup, owner = Owner}}.
terminate(Reason, _State) ->