Revision 3463
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
487 | 487 |
body = as_Code(body) |
488 | 488 |
|
489 | 489 |
if self.handler != None: handler_str = '\n'+self.handler.to_str(db) |
490 |
else: handler_str = ' NULL;' |
|
490 |
else: handler_str = ' NULL;\n'
|
|
491 | 491 |
|
492 | 492 |
str_ = '''\ |
493 | 493 |
BEGIN |
494 | 494 |
'''+body.to_str(db)+'''\ |
495 | 495 |
EXCEPTION |
496 |
WHEN '''+self.exc+''' THEN'''+handler_str+''' |
|
496 |
WHEN '''+self.exc+''' THEN'''+handler_str+'''\
|
|
497 | 497 |
END;\ |
498 | 498 |
''' |
499 | 499 |
return str_ |
Also available in: Unified diff
sql_gen.py: ExcHandler: Removed extra newline after handler