Project

General

Profile

« Previous | Next » 

Revision 3661

Moved importing of col_defaults from db_xml.put_table() to bin/map, so that it also happens in row-based mode. Note that this causes a DB entry for the datasource to always be created, even if the datasource has no mappings or no rows.

View differences:

db_xml.py
182 182
    db.autoanalyze = True # but don't do this in row-based import
183 183
    db.autoexplain = True # but don't do this in row-based import
184 184
    
185
    # Import col_defaults
186
    for col, node_ in col_defaults.items():
187
        col_defaults[col] = put(db, node_, row_ins_ct_ref, on_error)
188
    
189 185
    # Subset and partition in_table
190 186
    # OK to do even if table already the right size because it takes <1 sec.
191 187
    full_in_table = in_table

Also available in: Unified diff