diff options
author | Brian Cully <bjc@kublai.com> | 2008-03-01 17:20:08 -0500 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2008-03-01 17:20:08 -0500 |
commit | 3dd8d27ab301442cdacc7e130de85c4899ca16fa (patch) | |
tree | d358ace4b0a77f491d530050c4424ec7c9ac5283 /src/mysqlerl_connection.erl | |
parent | 876136763a49adc76eb4e9fe4a7a9dc78fb9a171 (diff) | |
download | mysqlerl-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.erl | 2 |
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]), |