~ubuntu-branches/ubuntu/hardy/postgresql-8.4/hardy-backports

« back to all changes in this revision

Viewing changes to src/pl/plpython/expected/plpython_function.out

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-01-03 08:57:10 UTC
  • mfrom: (5.3.10 sid)
  • Revision ID: james.westby@ubuntu.com-20110103085710-v9u121v7u7oq8qca
Tags: 8.4.6-1~hardy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
406
406
                return self.icontent
407
407
return producer(count, content)
408
408
$$ LANGUAGE plpythonu;
 
409
CREATE FUNCTION test_setof_spi_in_iterator() RETURNS SETOF text AS
 
410
$$
 
411
    for s in ('Hello', 'Brave', 'New', 'World'):
 
412
        plpy.execute('select 1')
 
413
        yield s
 
414
        plpy.execute('select 2')
 
415
$$
 
416
LANGUAGE plpythonu;
409
417
--
410
418
-- Test returning tuples
411
419
--