Project

General

Profile

« Previous | Next » 

Revision 2081

sql.py: put_table(): Return just the name of the table where the pkeys are made available, since the column name in that table now equals the pkey name

View differences:

lib/sql.py
582 582
    table_is_esc=False):
583 583
    '''Recovers from errors.
584 584
    Only works under PostgreSQL (uses INSERT RETURNING).
585
    @return tuple(table, col) Where the pkeys (from INSERT RETURNING) are made
585
    @return Name of the table where the pkeys (from INSERT RETURNING) are made
586 586
        available
587 587
    '''
588 588
    pkeys_table = clean_name(out_table)+'_pkeys'
......
595 595
        cur = with_parsed_errors(db, insert_)
596 596
        if row_ct_ref != None and cur.rowcount >= 0:
597 597
            row_ct_ref[0] += cur.rowcount
598
        return (pkeys_table, None)
598
        return pkeys_table
599 599
    except DuplicateKeyException, e: raise

Also available in: Unified diff