Project

General

Profile

« Previous | Next » 

Revision 10244

schemas/util.sql: create_if_not_exists(): also suppress "multiple primary keys are not allowed" error

View differences:

schemas/util.sql
740 740
    WHEN duplicate_table  THEN NULL;
741 741
    WHEN duplicate_object THEN NULL; -- e.g. constraint
742 742
    WHEN duplicate_column THEN NULL;
743
    WHEN invalid_table_definition THEN
744
        IF SQLERRM LIKE 'multiple primary keys for table % are not allowed' THEN NULL;
745
        ELSE RAISE USING ERRCODE = SQLSTATE, MESSAGE = SQLERRM; -- rethrow
746
        END IF;
743 747
END;
744 748
$$;
745 749

  

Also available in: Unified diff