Project

General

Profile

« Previous | Next » 

Revision 3428

db_xml.py: put_table(): Divide fields into input columns and literal values: Translate values: Allow literal values other than strings or None (from the XML parsing), because sql_io.put_table() is getting an optimization for iterations containing only literal values, which just returns the pkey of the single row for these values (which is usually an integer) instead of a temp table with the same value in each row

View differences:

lib/db_xml.py
252 252
            # value is input column
253 253
            row[out_col] = sql_gen.Col(strings.remove_prefix(input_col_prefix,
254 254
                value), in_table)
255
        else: # value is literal value; should only be string or None
256
            assert util.is_str(value) or value == None
255
        else: # value is literal value
257 256
            row[out_col] = sql_gen.NamedCol(out_col, value)
258 257
    
259 258
    # Insert node

Also available in: Unified diff