Project

General

Profile

« Previous | Next » 

Revision 3077

Moved Heuristic queries from sql.py to new sql_io.py

View differences:

db_xml.py
7 7
import exc
8 8
import Parser
9 9
import sql
10
import sql_io
10 11
import sql_gen
11 12
import strings
12 13
import util
......
101 102
    try:
102 103
        for try_num in xrange(2):
103 104
            try:
104
                id_ = sql.put(db, table, row, pkey_, row_ct_ref)
105
                id_ = sql_io.put(db, table, row, pkey_, row_ct_ref)
105 106
                if store_ids: xml_dom.set_id(node, id_)
106 107
                break
107 108
            except sql.NullValueException, e:
......
226 227
            row[out_col] = sql_gen.NamedCol(out_col, value)
227 228
    
228 229
    # Insert node
229
    pkeys_loc = sql.put_table(db, out_table, in_tables, row, row_ins_ct_ref,
230
    pkeys_loc = sql_io.put_table(db, out_table, in_tables, row, row_ins_ct_ref,
230 231
        None, next, is_func, on_error)
231 232
    
232 233
    sql.empty_temp(db, set(in_tables) - no_empty)

Also available in: Unified diff