Support parametrized statements

This commit is contained in:
Alexey Romanov
2010-11-19 16:36:46 +03:00
parent 169e0d0ae4
commit 864d01aec1
4 changed files with 234 additions and 34 deletions

View File

@@ -733,7 +733,6 @@ exec(Port, {sql_exec, Cmd}) ->
exec(Port, {sql_bind_and_exec, SQL, Params}) ->
Bin = term_to_binary({iolist_to_binary(SQL), Params}),
port_control(Port, ?SQL_BIND_AND_EXEC_COMMAND, Bin),
io:format(user, "Sending sql_bind_and_exec to port", []),
wait_result(Port).
wait_result(Port) ->