in reply to Re^3: Wierd pipe behaviour in plperlu
in thread Wierd pipe behaviour in plperlu
CREATE OR REPLACE FUNCTION myFunction() RETURNS TEXT LANGUAGE PLPERLU AS $BODY$ our $data; $data .= 'xx'; return $data; $BODY$
scratch=# select myFunction(); myfunction ------------ xx (1 row) scratch=# select myFunction(); myfunction ------------ xxxx (1 row) scratch=# select myFunction(); myfunction ------------ xxxxxx (1 row)Changing to 'local $data' solves the problem. Thanks for your suggestions and interest.
|
|---|