Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 658 Bytes
begin;
-- PL/Parrot is copyright Jonathan "Duke" Leto and friends 2009-2011
-- This code is released under the Artistic 2.0 License, see LICENSE for
-- details.
-- handler function
CREATE OR REPLACE FUNCTION plparrot_call_handler ()
RETURNS language_handler AS '$libdir/plparrot' LANGUAGE C;
-- language
DROP LANGUAGE IF EXISTS plparrot CASCADE;
CREATE LANGUAGE plparrot HANDLER plparrot_call_handler;
create or replace function plp_test() RETURNS VOID language plparrot as $$
syntax error
my name is 'fred'
$P0 = open '/tmp/testfile.plparrot.txt', 'w'
print $P0, 'Nobody expects this to work'
close $P0
$$;
select plp_test();
rollback;
Something went wrong with that request. Please try again.