Skip to content
Browse files

Fix execute usage.

  • Loading branch information...
1 parent ddd52f1 commit 317f255149bb42a0b9c96d7042086925a164adf0 @dryfish dryfish committed Aug 17, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 example/prepare_example.erl
View
2 example/prepare_example.erl
@@ -9,6 +9,6 @@ test() ->
{ok, Db} = pgsql:connect(?HOST, ?DB, ?USER, ?PASS),
{ok, Status, ParamTypes, ResultTypes}
= pgsql:prepare(Db, dummyall, "SELECT id, stuff FROM dummy"),
- {'SELECT', ResultSet} = pgsql:execute(Db, dummyall, []),
+ {ok,{'SELECT', ResultSet}} = pgsql:execute(Db, dummyall, []),
io:format("ResultSet: ~p~n", [ResultSet]).

0 comments on commit 317f255

Please sign in to comment.
Something went wrong with that request. Please try again.