Project

General

Profile

« Previous | Next » 

Revision 5967

sql.py: run_query_into(): add_pkey_: Use add_pkey_or_index() instead of add_pkey(). This should prevent errors for input rows which match multiple output rows in VegBIEN.

View differences:

lib/sql.py
698 698
            into.name = next_version(into.name)
699 699
            # try again with next version of name
700 700
    
701
    if add_pkey_: add_pkey(db, into)
701
    if add_pkey_: add_pkey_or_index(db, into, warn=True)
702 702
    
703 703
    # According to the PostgreSQL doc, "The autovacuum daemon cannot access and
704 704
    # therefore cannot vacuum or analyze temporary tables. [...] if a temporary

Also available in: Unified diff