@@ -8,9 +8,9 @@ CREATE FUNCTION sql_syntax_error() RETURNS text
88'plpy.execute("syntax error")'
99 LANGUAGE plpythonu;
1010SELECT sql_syntax_error();
11- WARNING: PL/Python: plpy.SPIError: unrecognized error in PLy_spi_execute_query
11+ WARNING: plpy.SPIError: unrecognized error in PLy_spi_execute_query
1212CONTEXT: PL/Python function "sql_syntax_error"
13- ERROR: PL/Python: plpy.SPIError: syntax error at or near "syntax"
13+ ERROR: plpy.SPIError: syntax error at or near "syntax"
1414LINE 1: syntax error
1515 ^
1616QUERY: syntax error
@@ -22,7 +22,7 @@ CREATE FUNCTION exception_index_invalid(text) RETURNS text
2222'return args[1]'
2323 LANGUAGE plpythonu;
2424SELECT exception_index_invalid('test');
25- ERROR: PL/Python: IndexError: list index out of range
25+ ERROR: IndexError: list index out of range
2626CONTEXT: PL/Python function "exception_index_invalid"
2727/* check handling of nested exceptions
2828 */
@@ -32,9 +32,9 @@ CREATE FUNCTION exception_index_invalid_nested() RETURNS text
3232return rv[0]'
3333 LANGUAGE plpythonu;
3434SELECT exception_index_invalid_nested();
35- WARNING: PL/Python: plpy.SPIError: unrecognized error in PLy_spi_execute_query
35+ WARNING: plpy.SPIError: unrecognized error in PLy_spi_execute_query
3636CONTEXT: PL/Python function "exception_index_invalid_nested"
37- ERROR: PL/Python: plpy.SPIError: function test5(unknown) does not exist
37+ ERROR: plpy.SPIError: function test5(unknown) does not exist
3838LINE 1: SELECT test5('foo')
3939 ^
4040HINT: No function matches the given name and argument types. You might need to add explicit type casts.
@@ -54,9 +54,9 @@ return None
5454'
5555 LANGUAGE plpythonu;
5656SELECT invalid_type_uncaught('rick');
57- WARNING: PL/Python: plpy.SPIError: unrecognized error in PLy_spi_prepare
57+ WARNING: plpy.SPIError: unrecognized error in PLy_spi_prepare
5858CONTEXT: PL/Python function "invalid_type_uncaught"
59- ERROR: PL/Python: plpy.SPIError: type "test" does not exist
59+ ERROR: plpy.SPIError: type "test" does not exist
6060CONTEXT: PL/Python function "invalid_type_uncaught"
6161/* for what it's worth catch the exception generated by
6262 * the typo, and return None
@@ -77,7 +77,7 @@ return None
7777'
7878 LANGUAGE plpythonu;
7979SELECT invalid_type_caught('rick');
80- WARNING: PL/Python: plpy.SPIError: unrecognized error in PLy_spi_prepare
80+ WARNING: plpy.SPIError: unrecognized error in PLy_spi_prepare
8181CONTEXT: PL/Python function "invalid_type_caught"
8282NOTICE: type "test" does not exist
8383CONTEXT: PL/Python function "invalid_type_caught"
@@ -104,9 +104,9 @@ return None
104104'
105105 LANGUAGE plpythonu;
106106SELECT invalid_type_reraised('rick');
107- WARNING: PL/Python: plpy.SPIError: unrecognized error in PLy_spi_prepare
107+ WARNING: plpy.SPIError: unrecognized error in PLy_spi_prepare
108108CONTEXT: PL/Python function "invalid_type_reraised"
109- ERROR: PL/Python: plpy.Error: type "test" does not exist
109+ ERROR: plpy.Error: type "test" does not exist
110110CONTEXT: PL/Python function "invalid_type_reraised"
111111/* no typo no messing about
112112 */
0 commit comments