Revision 2560
Added by Aaron Marcuse-Kubitza over 12 years ago
bin/map | ||
---|---|---|
318 | 318 |
map_table(col_names, []) # just create the template |
319 | 319 |
|
320 | 320 |
# Strip XML functions not in the DB |
321 |
preserve_funcs = copy.copy(db_xml.put_table_special_funcs)
|
|
322 |
preserve_funcs.add(sql.tables(in_db, schema_like='%',
|
|
321 |
preserve_funcs = db_xml.put_table_special_funcs.copy()
|
|
322 |
preserve_funcs |= set(sql.tables(in_db, schema_like='%',
|
|
323 | 323 |
table_like=r'\__%')) |
324 | 324 |
xml_func.strip(root, preserve_funcs) |
325 | 325 |
if debug: log_debug('Putting stripped:\n'+str(root)) |
Also available in: Unified diff
bin/map: by_col: Stripping XML functions not in the DB: Fixed bug where preserve_funcs.add() was used when `preserve_funcs |=` should have been used to add the entire iterable that sql.tables() returns