Revision 3509
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
566 | 566 |
def to_str(self, db): |
567 | 567 |
return 'RETURN QUERY\n'+strings.indent(self.query.to_str(db))+';\n' |
568 | 568 |
|
569 |
class ExcHandler(BasicObject): |
|
569 |
class BaseExcHandler(BasicObject): |
|
570 |
def to_str(self, db, body): raise NotImplementedError() |
|
571 |
|
|
572 |
class ExcHandler(BaseExcHandler): |
|
570 | 573 |
def __init__(self, exc, handler=None): |
571 | 574 |
if handler != None: handler = as_Code(handler) |
572 | 575 |
|
Also available in: Unified diff
sql_gen.py: Added BaseExcHandler and inherit from it in ExcHandlers