diff options
Diffstat (limited to 'src/test/modules/plsample/sql/plsample.sql')
-rw-r--r-- | src/test/modules/plsample/sql/plsample.sql | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/modules/plsample/sql/plsample.sql b/src/test/modules/plsample/sql/plsample.sql new file mode 100644 index 0000000..bf0fdda --- /dev/null +++ b/src/test/modules/plsample/sql/plsample.sql @@ -0,0 +1,15 @@ +CREATE EXTENSION plsample; +-- Create and test some dummy functions +CREATE FUNCTION plsample_result_text(a1 numeric, a2 text, a3 integer[]) +RETURNS TEXT +AS $$ + Example of source with text result. +$$ LANGUAGE plsample; +SELECT plsample_result_text(1.23, 'abc', '{4, 5, 6}'); + +CREATE FUNCTION plsample_result_void(a1 text[]) +RETURNS VOID +AS $$ + Example of source with void result. +$$ LANGUAGE plsample; +SELECT plsample_result_void('{foo, bar, hoge}'); |