mirror of
https://github.com/postgres/postgres.git
synced 2026-06-07 08:09:18 -04:00
plpython: Remove regression test infrastructure for Python 2.
Since 19252e8ec9 we reject Python 2 during build configuration. Now that the
dust on the buildfarm has settled, remove regression testing infrastructure
dealing with differing output between Python 2 / 3.
Reviewed-By: Peter Eisentraut <peter@eisentraut.org>
Reviewed-By: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/20211031184548.g4sxfe47n2kyi55r@alap3.anarazel.de
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
--
|
||||
|
||||
CREATE PROCEDURE test_proc1()
|
||||
LANGUAGE plpythonu
|
||||
LANGUAGE plpython3u
|
||||
AS $$
|
||||
pass
|
||||
$$;
|
||||
@@ -13,7 +13,7 @@ CALL test_proc1();
|
||||
|
||||
-- error: can't return non-None
|
||||
CREATE PROCEDURE test_proc2()
|
||||
LANGUAGE plpythonu
|
||||
LANGUAGE plpython3u
|
||||
AS $$
|
||||
return 5
|
||||
$$;
|
||||
@@ -24,7 +24,7 @@ CALL test_proc2();
|
||||
CREATE TABLE test1 (a int);
|
||||
|
||||
CREATE PROCEDURE test_proc3(x int)
|
||||
LANGUAGE plpythonu
|
||||
LANGUAGE plpython3u
|
||||
AS $$
|
||||
plpy.execute("INSERT INTO test1 VALUES (%s)" % x)
|
||||
$$;
|
||||
@@ -37,7 +37,7 @@ SELECT * FROM test1;
|
||||
-- output arguments
|
||||
|
||||
CREATE PROCEDURE test_proc5(INOUT a text)
|
||||
LANGUAGE plpythonu
|
||||
LANGUAGE plpython3u
|
||||
AS $$
|
||||
return [a + '+' + a]
|
||||
$$;
|
||||
@@ -46,7 +46,7 @@ CALL test_proc5('abc');
|
||||
|
||||
|
||||
CREATE PROCEDURE test_proc6(a int, INOUT b int, INOUT c int)
|
||||
LANGUAGE plpythonu
|
||||
LANGUAGE plpython3u
|
||||
AS $$
|
||||
return (b * a, c * a)
|
||||
$$;
|
||||
@@ -57,7 +57,7 @@ CALL test_proc6(2, 3, 4);
|
||||
-- OUT parameters
|
||||
|
||||
CREATE PROCEDURE test_proc9(IN a int, OUT b int)
|
||||
LANGUAGE plpythonu
|
||||
LANGUAGE plpython3u
|
||||
AS $$
|
||||
plpy.notice("a: %s" % (a))
|
||||
return (a * 2,)
|
||||
|
||||
Reference in New Issue
Block a user