Project

General

Profile

« Previous | Next » 

Revision 3505

sql_gen.py: Added data_exception_handler

View differences:

sql_gen.py
612 612
    regexp_replace(SQLERRM, E'^PL/Python: \\w+: ', '');
613 613
''')
614 614

  
615
def data_exception_handler(handler):
616
    return ExcHandler('data_exception', handler)
617

  
615 618
class RowExcIgnore(Code):
616 619
    def __init__(self, row_type, select_query, with_row, cols=None,
617 620
        exc_handler=unique_violation_handler, row_var='row'):

Also available in: Unified diff