Project

General

Profile

« Previous | Next » 

Revision 3529

sql_gen.py: RowExcIgnore: If a custom row_var is used, require it to already be defined. This also allows sql_io.ExcToErrorsTable to place the column var definition in the outer DECLARE, eliminating the extra DECLARE block.

View differences:

sql_io.py
72 72
    error_code text := SQLSTATE;
73 73
    error text := SQLERRM;
74 74
    value text := '''+self.value.to_str(db)+''';
75
    "column" text;
75 76
BEGIN
76 77
    -- Insert the value and error for *each* source column.
77
'''+strings.indent(sql_gen.RowExcIgnore('text', col_names_query, insert_query,
78
'''+strings.indent(sql_gen.RowExcIgnore(None, col_names_query, insert_query,
78 79
    row_var=errors_table_cols[0]).to_str(db))+'''
79 80
END;
80 81

  

Also available in: Unified diff