Permalink
Browse files

Make the global grammar test not core dump

  • Loading branch information...
1 parent 6a55637 commit 2b990262490b93aac8b829b305a5700c97373511 @leto committed Sep 3, 2010
Showing with 5 additions and 2 deletions.
  1. +5 −2 t/sql/plperl6.sql
View
@@ -15,7 +15,7 @@ BEGIN;
\i plparrot.sql
-- Plan the tests.
-SELECT plan(22);
+SELECT plan(26);
CREATE OR REPLACE FUNCTION test_void_plperl6() RETURNS void LANGUAGE plperl6 AS $$
{ Nil }
@@ -135,7 +135,10 @@ CREATE OR REPLACE FUNCTION load_global_grammar() RETURNS void LANGUAGE plperl6 A
]
$$
}
- }
+ };
+ # This is needed becaues PL/Parrot does not know how to
+ # cope with a grammar as a return value
+ return 1;
}
$q$;

0 comments on commit 2b99026

Please sign in to comment.