Skip to content

Commit

Permalink
Fixing test since merge from maxlapshin breaks API
Browse files Browse the repository at this point in the history
  • Loading branch information
noss committed May 28, 2010
1 parent f78fb4a commit 21a2d8c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/pquery.escript
Expand Up @@ -15,7 +15,7 @@ main([ConfigFile]) ->
idle = Status,
[_ColA, _ColB] = Cols,
[Row] = Rows,
["Hello", 42] = Row,
{<<"Hello">>, 42} = Row,

erlang:display({success, escript:script_name()}),
ok.
Expand Down
3 changes: 1 addition & 2 deletions test/prepare.escript
Expand Up @@ -19,8 +19,7 @@ main([ConfigFile]) ->
[pgsql:execute(Db, insert, [A, B]) || {A,B} <- ABs],

{ok, Result} = pgsql:execute(Db, select, [42]),
{'SELECT', [Row]} = Result,
["Hello", 42] = Row,
[{<<"Hello">>, 42}] = Result,

erlang:display({success, escript:script_name()}),
ok.
Expand Down
2 changes: 1 addition & 1 deletion test/squery.escript
Expand Up @@ -12,7 +12,7 @@ main([ConfigFile]) ->
[Response] = Responses, % Only one query issued
{"SELECT", _Columns, Rows} = Response,
[Row] = Rows, % Should only be one row in result
["Hello", 42] = Row,
{<<"Hello">>, 42} = Row,
erlang:display({success, escript:script_name()}),
ok.

0 comments on commit 21a2d8c

Please sign in to comment.