Revision 3482
Added by Aaron Marcuse-Kubitza over 12 years ago
sql_gen.py | ||
---|---|---|
550 | 550 |
exc_handler=unique_violation_handler, row_var='row'): |
551 | 551 |
Code.__init__(self, lang='plpgsql') |
552 | 552 |
|
553 |
row_type = as_Code(row_type) |
|
553 | 554 |
select_query = as_Code(select_query) |
554 | 555 |
with_row = as_Code(with_row) |
555 | 556 |
row_var = as_Table(row_var) |
... | ... | |
567 | 568 |
|
568 | 569 |
str_ = '''\ |
569 | 570 |
DECLARE |
570 |
'''+self.row_var.to_str(db)+''' '''+self.row_type+'''; |
|
571 |
'''+self.row_var.to_str(db)+''' '''+self.row_type.to_str(db)+''';
|
|
571 | 572 |
BEGIN |
572 | 573 |
/* Need an EXCEPTION block for each individual row because "When |
573 | 574 |
an error is caught by an EXCEPTION clause, [...] all changes to |
Also available in: Unified diff
sql_gen.py: RowExcIgnore: Accept row types which are Code objects