Project

General

Profile

« Previous | Next » 

Revision 472

db_xml.py: Use new sql.put() which only eliminates duplicates based on database UNIQUE constraints

View differences:

inputs/SALVIAS/test.plots.ref
1 1
Processed 2 input rows
2
Inserted 26 new rows into database
2
Inserted 28 new rows into database
inputs/SALVIAS/test.organisms.ref
1 1
Processed 2 input rows
2
Inserted 55 new rows into database
2
Inserted 124 new rows into database
lib/db_xml.py
97 97
    try:
98 98
        for try_num in xrange(2):
99 99
            try:
100
                id_ = sql.get(db, table, row, pkey_, True, row_ct_ref)
100
                id_ = sql.put(db, table, row, pkey_, row_ct_ref)
101 101
                if store_ids: xml_dom.set_id(node, id_)
102 102
                break
103 103
            except sql.NullValueException, e:

Also available in: Unified diff