Revision 296
Added by Aaron Marcuse-Kubitza about 13 years ago
bin/map | ||
---|---|---|
160 | 160 |
try: |
161 | 161 |
row_ct_ref = [0] |
162 | 162 |
def use_row(root): db_xml.xml2db(out_db, root, commit, row_ct_ref) |
163 |
db_xml.xml2db(out_db, get_xml(use_row).documentElement, row_ct_ref) |
|
163 |
db_xml.xml2db(out_db, get_xml(use_row).documentElement, commit, |
|
164 |
row_ct_ref) |
|
164 | 165 |
print 'Inserted '+str(row_ct_ref[0])+' rows' |
165 | 166 |
finally: |
166 | 167 |
out_db.rollback() |
Also available in: Unified diff
Commit after inserting each row