Project

General

Profile

« Previous | Next » 

Revision 6800

sql_io.py: put_table(): insert_into_pkeys(): Allow callers to override run_query_into()'s add_pkey_ param in case the initial version of the pkeys table should not yet have the test pkey constraint (e.g. because data is added after the table is created)

View differences:

sql_io.py
450 450
            sql.insert_select(db, into, [in_pkey, into_out_pkey], query,
451 451
                **kw_args)
452 452
        else:
453
            sql.run_query_into(db, query, into=into, add_pkey_=True, **kw_args)
453
            kw_args.setdefault('add_pkey_', True)
454
            
455
            sql.run_query_into(db, query, into=into, **kw_args)
454 456
            pkeys_table_exists_ref[0] = True
455 457
    
456 458
    def mk_main_select(joins, cols): return sql.mk_select(db, joins, cols)

Also available in: Unified diff