Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow Perl 6 Grammars as return values of stored procedures
When defining a global grammar for later use, the return value of the stored procedure was a Grammar object, which PL/Perl6 did not know how to convert to a Postgres datatype, so the sausage machine came to a grinding halt. We catch these and just return a true value instead. There is currently a bug in Rakudo where Grammar.WHAT is "Code", and somehow that gets turned into a "Sub", so that was worked around as well.
- Loading branch information
Showing
2 changed files
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters