mirror of
https://github.com/postgres/postgres.git
synced 2026-02-12 15:23:16 -05: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.
5 lines
189 B
SQL
5 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;
|