mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
The error test case in the plpython_do test resulted in a slightly different error message with Python 3.4. So pick a different way to test it that avoids that and is perhaps also a bit clearer.
6 lines
189 B
SQL
6 lines
189 B
SQL
DO $$ plpy.notice("This is plpythonu.") $$ LANGUAGE plpythonu;
|
|
|
|
DO $$ plpy.notice("This is plpython2u.") $$ LANGUAGE plpython2u;
|
|
|
|
DO $$ raise Exception("error test") $$ LANGUAGE plpythonu;
|