aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2008-03-01 17:48:29 -0500
committerBrian Cully <bjc@kublai.com>2008-03-01 17:48:29 -0500
commita6e20801114898a7f8904071f84702daafc0f0cc (patch)
treea9d304377a5ab20ebfad0c76908b5b73bd904864 /src
parent2122116f2bd2ffd2097b8d98d241fa0322520d8a (diff)
downloadmysqlerl-a6e20801114898a7f8904071f84702daafc0f0cc.tar.gz
mysqlerl-a6e20801114898a7f8904071f84702daafc0f0cc.zip
Remove extra trampolines.
Diffstat (limited to 'src')
-rw-r--r--src/mysqlerl_connection.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mysqlerl_connection.erl b/src/mysqlerl_connection.erl
index a27c25f..35c69b2 100644
--- a/src/mysqlerl_connection.erl
+++ b/src/mysqlerl_connection.erl
@@ -43,7 +43,7 @@ code_change(_OldVsn, State, _Extra) ->
{ok, State}.
handle_call(#sql_query{q = Query}, _From, State) ->
- {reply, handle_query(State#state.ref, Query), State};
+ {reply, make_request(State#state.ref, {sql_query, Query}), State};
handle_call(Request, From, State) ->
io:format("DEBUG: got unknown call from ~p: ~p~n", [From, Request]),
{noreply, State}.
@@ -64,10 +64,6 @@ helper() ->
end,
filename:join([PrivDir, "mysqlerl"]).
-handle_query(Ref, Query) ->
- io:format("DEBUG: got query: ~p~n", [Query]),
- make_request(Ref, {sql_query, Query}).
-
make_request(Ref, Req) ->
port_command(Ref, term_to_binary(Req)),
receive