Project

General

Profile

« Previous | Next » 

Revision 2272

db_xml.py: put_table(): Converted row (mapping) values to sql_gen objects

View differences:

lib/db_xml.py
177 177
            in_tables.append(value.table)
178 178
        elif util.is_str(value) and value.startswith(input_col_prefix):
179 179
            # value is input column
180
            row[out_col] = strings.remove_prefix(input_col_prefix, value)
180
            row[out_col] = sql_gen.Col(strings.remove_prefix(input_col_prefix,
181
                value))
181 182
        else: # value is literal value; should only be string or None
182 183
            assert util.is_str(value) or value == None
183
            row[out_col] = (value,) # value is literal value
184
            row[out_col] = sql_gen.Literal(value) # value is literal value
184 185
    
185 186
    # Insert node
186 187
    pkeys_loc = sql.put_table(db, esc_name(out_table), in_tables, row, limit,

Also available in: Unified diff