Project

General

Profile

« Previous | Next » 

Revision 2129

db_xml.py: put_table(): Fixed bug where in_table was last in in_tables instead of first, causing it to be ignored by the current put_table() implementation, which only considers the first table name

View differences:

lib/db_xml.py
146 146
    pkey_ = pkey(out_table)
147 147
    row = {}
148 148
    children = []
149
    in_tables = []
149
    in_tables = [qual_name(in_table)]
150 150
    
151 151
    # Divide children into fields and children with fkeys to parent
152 152
    for child in xml_dom.NodeElemIter(node):
......
171 171
        else: row[out_col] = (value, out_col) # value is literal value
172 172
    
173 173
    # Insert node
174
    in_tables.append(qual_name(in_table))
175 174
    pkeys_table = sql.put_table(db, esc_name(out_table), in_tables, row, pkey_,
176 175
        row_ct_ref, table_is_esc=True)
177 176
    

Also available in: Unified diff