From 013c40062c36be363f51110e5f4e6ea1f7ab396e Mon Sep 17 00:00:00 2001 From: anthonydb Date: Sun, 16 May 2021 14:42:01 -0400 Subject: [PATCH] Minor update Chapter 17 --- Chapter_17/Chapter_17.sql | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Chapter_17/Chapter_17.sql b/Chapter_17/Chapter_17.sql index 19bb319..4b2471d 100644 --- a/Chapter_17/Chapter_17.sql +++ b/Chapter_17/Chapter_17.sql @@ -175,7 +175,6 @@ FROM teachers; -- Listing 17-15: Creating an update_personal_days() procedure CREATE OR REPLACE PROCEDURE update_personal_days() -LANGUAGE plpgsql AS $$ BEGIN UPDATE teachers @@ -191,7 +190,8 @@ BEGIN END; RAISE NOTICE 'personal_days updated!'; END -$$; +$$ +LANGUAGE plpgsql; -- To invoke the procedure: CALL update_personal_days(); @@ -207,7 +207,8 @@ RETURNS text AS $$ import re cleaned = re.sub(r' County', '', input_string) return cleaned -$$ LANGUAGE plpython3u; +$$ +LANGUAGE plpython3u; -- Listing 17-18: Testing the trim_county() function