aboutsummaryrefslogtreecommitdiff
path: root/challenge-187/luca-ferrari/postgresql/ch-2.sql
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-187/luca-ferrari/postgresql/ch-2.sql')
-rw-r--r--challenge-187/luca-ferrari/postgresql/ch-2.sql15
1 files changed, 15 insertions, 0 deletions
diff --git a/challenge-187/luca-ferrari/postgresql/ch-2.sql b/challenge-187/luca-ferrari/postgresql/ch-2.sql
new file mode 100644
index 0000000000..f9659e9ac2
--- /dev/null
+++ b/challenge-187/luca-ferrari/postgresql/ch-2.sql
@@ -0,0 +1,15 @@
+-- Perl Weekly Challenge 187
+-- Task 2
+
+
+CREATE SCHEMA IF NOT EXISTS pwc187;
+
+CREATE OR REPLACE FUNCTION
+pwc187.task2_plpgsql( a int[] )
+RETURNS int[]
+AS $CODE$
+BEGIN
+ RETURN pwc187.task2_plperl( a );
+END
+$CODE$
+LANGUAGE plpgsql;