Project

General

Profile

« Previous | Next » 

Revision 1998

db_xml.py: put_table(): Added commit param to specify whether to commit after each query

View differences:

map
278 278
                row = ['$'+v for v in col_names] # values are the column names
279 279
                map_table(col_names, [row]) # map just the sample row
280 280
                xml_func.strip(root)
281
                db_xml.put_table(in_db, root.firstChild, table, row_ins_ct_ref,
282
                    table_is_esc=table_is_esc)
281
                db_xml.put_table(in_db, root.firstChild, table, commit,
282
                    row_ins_ct_ref, table_is_esc)
283 283
            else:
284 284
                # Use normal by-row method
285 285
                row_ct = map_table(col_names, sql.rows(cur), rows_start=start)

Also available in: Unified diff