aboutsummaryrefslogtreecommitdiffstats
path: root/src/mysqlerl.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mysqlerl.erl')
-rw-r--r--src/mysqlerl.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mysqlerl.erl b/src/mysqlerl.erl
index 0b7d383..3aec2e5 100644
--- a/src/mysqlerl.erl
+++ b/src/mysqlerl.erl
@@ -65,7 +65,8 @@ commit(Ref, rollback, Timeout) ->
%% {ok, Ref} | {error, Reason}
%% Ref = connection_reference()
connect(Host, Port, Database, User, Password, Options) ->
- mysqlerl_sup:connect(Host, Port, Database, User, Password, Options).
+ supervisor:start_child(mysqlerl_sup, [self(), Host, Port, Database,
+ User, Password, Options]).
%% Arguments:
%% Ref = connection_reference()