Permalink
Browse files

Improve the test for returning a SETOF

  • Loading branch information...
1 parent b19b835 commit a59d15627af10113fb7870656184caf33baf9c5a @leto committed Aug 5, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 t/sql/test.sql
View
@@ -269,8 +269,7 @@ select is(test_timestamptz_out('1999-01-08 04:05:06+02'),'1999-01-08 04:05:06+02
select is(test_time_in('04:05:06'),1,'We can pass a time in');
select is(test_time_out('04:05:06'),'04:05:06','We can return a time');
--- how do we test SETOF?
-select is(test_return_setof(),5,'We can return a SETOF');
+select set_eq('select * from test_return_setof()',ARRAY[2,5] ,'We can return a SETOF');
-- not loading io opcodes, they are deprecated
--select isnt(test_open_plparrotu(), 42, 'open opcode is not mocked in plperlu');

0 comments on commit a59d156

Please sign in to comment.