Revision 3549
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
607 | 607 |
|
608 | 608 |
def __repr__(self): return self.to_str(mockDb, '<body>') |
609 | 609 |
|
610 |
suppress_exc = 'NULL;\n'; |
|
611 |
|
|
610 | 612 |
class ExcHandler(BaseExcHandler): |
611 | 613 |
def __init__(self, exc, handler=None): |
612 | 614 |
if handler != None: handler = as_Code(handler) |
... | ... | |
619 | 621 |
|
620 | 622 |
if self.handler != None: |
621 | 623 |
handler_str = '\n'+strings.indent(self.handler.to_str(db), 2) |
622 |
else: handler_str = ' NULL;\n'
|
|
624 |
else: handler_str = ' '+suppress_exc
|
|
623 | 625 |
|
624 | 626 |
str_ = '''\ |
625 | 627 |
BEGIN |
Also available in: Unified diff
sql_gen.py: Exceptions: Added suppress_exc and use it in ExcHandler.to_str()