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

« back to all changes in this revision

Viewing changes to src/pl/plpython/sql/plpython_function.sql

  • 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:
448
448
return producer(count, content)
449
449
$$ LANGUAGE plpythonu;
450
450
 
 
451
CREATE FUNCTION test_setof_spi_in_iterator() RETURNS SETOF text AS
 
452
$$
 
453
    for s in ('Hello', 'Brave', 'New', 'World'):
 
454
        plpy.execute('select 1')
 
455
        yield s
 
456
        plpy.execute('select 2')
 
457
$$
 
458
LANGUAGE plpythonu;
 
459
 
451
460
 
452
461
--
453
462
-- Test returning tuples