From 93569fd42bd127196013fc5c872fd678fe26fdba Mon Sep 17 00:00:00 2001
From: Luca Ferrari <fluca1978@gmail.com>
Date: Mon, 2 Oct 2023 23:01:18 +0200
Subject: PWC 237

---
 challenge-237/luca-ferrari/postgresql/ch-2.sql | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 challenge-237/luca-ferrari/postgresql/ch-2.sql

(limited to 'challenge-237/luca-ferrari/postgresql/ch-2.sql')

diff --git a/challenge-237/luca-ferrari/postgresql/ch-2.sql b/challenge-237/luca-ferrari/postgresql/ch-2.sql
new file mode 100644
index 0000000000..a565fa76d7
--- /dev/null
+++ b/challenge-237/luca-ferrari/postgresql/ch-2.sql
@@ -0,0 +1,16 @@
+--
+-- Perl Weekly Challenge 237
+-- Task 2
+--
+-- See <https://perlweeklychallenge.org/blog/perl-weekly-challenge-237/>
+--
+
+CREATE SCHEMA IF NOT EXISTS pwc237;
+
+CREATE OR REPLACE FUNCTION
+pwc237.task2_plpgsql( nums int[] )
+RETURNS int
+AS $CODE$
+	SELECT pwc237.task2_plperl( nums );
+$CODE$
+LANGUAGE sql;
-- 
cgit 

