aboutsummaryrefslogtreecommitdiff
path: root/src/pl/plpython/error.expected
blob: 3c1614769e83332e0f597457a143ba17cbc8929d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
SELECT invalid_type_uncaught('rick');
WARNING:  plpython: in function invalid_type_uncaught:
DETAIL:  plpy.SPIError: Unknown error in PLy_spi_prepare
ERROR:  type "test" does not exist
SELECT invalid_type_caught('rick');
WARNING:  plpython: in function invalid_type_caught:
DETAIL:  plpy.SPIError: Unknown error in PLy_spi_prepare
ERROR:  type "test" does not exist
SELECT invalid_type_reraised('rick');
WARNING:  plpython: in function invalid_type_reraised:
DETAIL:  plpy.SPIError: Unknown error in PLy_spi_prepare
ERROR:  type "test" does not exist
SELECT valid_type('rick');
 valid_type 
------------
 
(1 row)

SELECT write_file('/tmp/plpython','Only trusted users should be able to do this!');
          write_file          
------------------------------
 Wrote to file: /tmp/plpython
(1 row)

SELECT read_file('/tmp/plpython');
                   read_file                   
-----------------------------------------------
 Only trusted users should be able to do this!
(1 row)