aboutsummaryrefslogtreecommitdiffstats
path: root/src/mysqlerl_connection.erl
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2008-03-01 17:20:08 -0500
committerBrian Cully <bjc@kublai.com>2008-03-01 17:20:08 -0500
commit3dd8d27ab301442cdacc7e130de85c4899ca16fa (patch)
treed358ace4b0a77f491d530050c4424ec7c9ac5283 /src/mysqlerl_connection.erl
parent876136763a49adc76eb4e9fe4a7a9dc78fb9a171 (diff)
downloadmysqlerl-3dd8d27ab301442cdacc7e130de85c4899ca16fa.tar.gz
mysqlerl-3dd8d27ab301442cdacc7e130de85c4899ca16fa.zip
Use erlang term encoding for send/recv between c and erlang for maximum flexibility and code length.
Diffstat (limited to 'src/mysqlerl_connection.erl')
-rw-r--r--src/mysqlerl_connection.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mysqlerl_connection.erl b/src/mysqlerl_connection.erl
index fb0479c..53ac85f 100644
--- a/src/mysqlerl_connection.erl
+++ b/src/mysqlerl_connection.erl
@@ -76,7 +76,7 @@ handle_query(Ref, Query) ->
make_request(Ref, Req) ->
port_command(Ref, term_to_binary(Req)),
receive
- {Ref, {data, Res}} -> {ok, Res};
+ {Ref, {data, Res}} -> binary_to_term(Res);
Other ->
error_logger:warning_msg("Got unknown query response: ~p~n",
[Other]),