Can read SQLite data

This commit is contained in:
Max Lapshin
2009-10-14 00:22:14 +04:00
parent 432f09c707
commit 4c66701aa0
2 changed files with 45 additions and 28 deletions

View File

@@ -469,12 +469,11 @@ wait_result(Port) ->
{error, Reason};
_Else ->
io:format("Else: ~p~n", [_Else]),
_Else
ok
end.
exec(Port, {sql_exec, Cmd}) ->
port_control(Port, ?SQL_EXEC_COMMAND, list_to_binary(Cmd)),
io:format("Returned from driver, waiting for reply~n"),
wait_result(Port).