diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2009-12-15 22:59:55 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2009-12-15 22:59:55 +0000 |
commit | dd4cd55c15886c46378dc27f44f59a6de8c4d45b (patch) | |
tree | 021133526bdb9db2cb6968f0eecde686d008eb1b /src/pl/plpython/sql/plpython_test.sql | |
parent | 21d11e7ee2d9fb47fc06b53f8e54fe07e7f1c18a (diff) |
Python 3 support in PL/Python
Behaves more or less unchanged compared to Python 2, but the new language
variant is called plpython3u. Documentation describing the naming scheme
is included.
Diffstat (limited to 'src/pl/plpython/sql/plpython_test.sql')
-rw-r--r-- | src/pl/plpython/sql/plpython_test.sql | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pl/plpython/sql/plpython_test.sql b/src/pl/plpython/sql/plpython_test.sql index 161399f2ec9..7cae124d98b 100644 --- a/src/pl/plpython/sql/plpython_test.sql +++ b/src/pl/plpython/sql/plpython_test.sql @@ -1,10 +1,15 @@ -- first some tests of basic functionality +CREATE LANGUAGE plpython2u; -- really stupid function just to get the module loaded CREATE FUNCTION stupid() RETURNS text AS 'return "zarkon"' LANGUAGE plpythonu; select stupid(); +-- check 2/3 versioning +CREATE FUNCTION stupidn() RETURNS text AS 'return "zarkon"' LANGUAGE plpython2u; + +select stupidn(); -- test multiple arguments CREATE FUNCTION argument_test_one(u users, a1 text, a2 text) RETURNS text |