@@ -8,9 +8,9 @@ CREATE FUNCTION sql_syntax_error() RETURNS text
8
8
'plpy.execute("syntax error")'
9
9
LANGUAGE plpythonu;
10
10
SELECT 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
12
12
CONTEXT: 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"
14
14
LINE 1: syntax error
15
15
^
16
16
QUERY: syntax error
@@ -22,7 +22,7 @@ CREATE FUNCTION exception_index_invalid(text) RETURNS text
22
22
'return args[1]'
23
23
LANGUAGE plpythonu;
24
24
SELECT exception_index_invalid('test');
25
- ERROR: PL/Python: IndexError: list index out of range
25
+ ERROR: IndexError: list index out of range
26
26
CONTEXT: PL/Python function "exception_index_invalid"
27
27
/* check handling of nested exceptions
28
28
*/
@@ -32,9 +32,9 @@ CREATE FUNCTION exception_index_invalid_nested() RETURNS text
32
32
return rv[0]'
33
33
LANGUAGE plpythonu;
34
34
SELECT 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
36
36
CONTEXT: 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
38
38
LINE 1: SELECT test5('foo')
39
39
^
40
40
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
@@ -54,9 +54,9 @@ return None
54
54
'
55
55
LANGUAGE plpythonu;
56
56
SELECT 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
58
58
CONTEXT: 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
60
60
CONTEXT: PL/Python function "invalid_type_uncaught"
61
61
/* for what it's worth catch the exception generated by
62
62
* the typo, and return None
@@ -77,7 +77,7 @@ return None
77
77
'
78
78
LANGUAGE plpythonu;
79
79
SELECT 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
81
81
CONTEXT: PL/Python function "invalid_type_caught"
82
82
NOTICE: type "test" does not exist
83
83
CONTEXT: PL/Python function "invalid_type_caught"
@@ -104,9 +104,9 @@ return None
104
104
'
105
105
LANGUAGE plpythonu;
106
106
SELECT 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
108
108
CONTEXT: 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
110
110
CONTEXT: PL/Python function "invalid_type_reraised"
111
111
/* no typo no messing about
112
112
*/
0 commit comments