From 84d457edaf4b3a1e10fd9e100e8ca18c042ad30c Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 19 Oct 2016 12:00:00 -0400 Subject: Format PL/Python module contents test vertically It makes it readable again and makes merges more manageable. --- src/pl/plpython/sql/plpython_test.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pl/plpython/sql/plpython_test.sql') diff --git a/src/pl/plpython/sql/plpython_test.sql b/src/pl/plpython/sql/plpython_test.sql index fa3c465ef86..5f1be9c94a8 100644 --- a/src/pl/plpython/sql/plpython_test.sql +++ b/src/pl/plpython/sql/plpython_test.sql @@ -27,11 +27,11 @@ select "Argument test #1"(users, fname, lname) from users where lname = 'doe' or -- check module contents -CREATE FUNCTION module_contents() RETURNS text AS +CREATE FUNCTION module_contents() RETURNS SETOF text AS $$ contents = list(filter(lambda x: not x.startswith("__"), dir(plpy))) contents.sort() -return ", ".join(contents) +return contents $$ LANGUAGE plpythonu; select module_contents(); -- cgit v1.2.3