~ubuntu-branches/ubuntu/trusty/plr/trusty

« back to all changes in this revision

Viewing changes to expected/plr.out

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille
  • Date: 2009-07-30 19:05:30 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090730190530-mampo1mavnk3zpho
Tags: 1:8.3.0.8-1
* New upstream version
  Patch debian/patches/20_r2.8compat.patch was adopted upstream
* Prevent default "pg_config" from returning 8.4-related paths
  (Thanks to Chris Lamb <lamby@debian.org>)
  Closes: #537008
* Standards-Version: 3.8.2 (no changes needed)
* Debhelper 7

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
 
96
96
create or replace function "commandArgs"() returns text[] as '' language 'plr';
97
97
select "commandArgs"();
98
 
        commandArgs        
 
98
              commandArgs               
99
99
----------------------------------------
100
100
 {PL/R,--silent,--no-save,--no-restore}
101
101
(1 row)
868
868
                     3
869
869
(3 rows)
870
870
 
 
871
--Test bytea arguments and return values: serialize/unserialize
 
872
create or replace function test_serialize(text)
 
873
returns bytea as '
 
874
 mydf <- pg.spi.exec(arg1)
 
875
 return (mydf)
 
876
' language 'plr';
 
877
create or replace function restore_df(bytea)
 
878
returns setof record as '
 
879
 return (arg1)
 
880
' language 'plr';
 
881
select * from restore_df((select test_serialize('select oid, typname from pg_type where typname in (''oid'',''name'',''int4'')'))) as t(oid oid, typname name);
 
882
 oid | typname 
 
883
-----+---------
 
884
  19 | name
 
885
  23 | int4
 
886
  26 | oid
 
887
(3 rows)
 
888