Revision 5087
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/db_xml.py | ||
---|---|---|
213 | 213 |
# Subset and partition in_table |
214 | 214 |
# OK to do even if table already the right size because it takes <1 sec. |
215 | 215 |
full_in_table = in_table |
216 |
pkeys_loc = None # used if loop is never executed |
|
216 | 217 |
total = 0 |
217 | 218 |
while limit == None or total < limit: |
218 | 219 |
# Adjust partition size if last partition |
Also available in: Unified diff
db_xml.py: put_table(): Fixed bug where pkeys_loc needed to be initialized. Note that this bug was only triggered when importing a table with zero rows (in this case, the initial empty TNRS.tnrs table), because otherwise it would be set in the loop.