Fixed #32234 -- Made inspectdb inform about composite primary keys.

This commit is contained in:
Anv3sh 2022-05-12 01:00:13 +05:30 committed by Mariusz Felisiak
parent ebf25555bb
commit 295249c901
10 changed files with 88 additions and 17 deletions

View file

@ -49,6 +49,13 @@ class DatabaseFeatures(BaseDatabaseFeatures):
V_I := P_I;
END;
$$ LANGUAGE plpgsql;"""
create_test_table_with_composite_primary_key = """
CREATE TABLE test_table_composite_pk (
column_1 INTEGER NOT NULL,
column_2 INTEGER NOT NULL,
PRIMARY KEY(column_1, column_2)
)
"""
requires_casted_case_in_updates = True
supports_over_clause = True
only_supports_unbounded_with_preceding_and_following = True