Revision 3591
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
663 | 663 |
|
664 | 664 |
# Note doubled "\"s because inside Python string |
665 | 665 |
plpythonu_error_handler = ExcHandler('internal_error', '''\ |
666 |
-- Handle PL/Python exceptions |
|
666 | 667 |
DECLARE |
667 | 668 |
matches text[] := regexp_matches(SQLERRM, E'^PL/Python: (\\\\w+): (.*)$'); |
668 | 669 |
-- .* matches everything, including \\n |
Also available in: Unified diff
sql_gen.py: plpythonu_error_handler: Added section comment before handler block, so that it's clear in the (very long) wrapper function definition what the block is doing