-
Notifications
You must be signed in to change notification settings - Fork 516
Open
Labels
Description
Describe the bug
A PostgreSQL updatable view cannot be updated. Error message:
Can't detect row identifier for data container 'v_test'. It must have at least one unique key.
To Reproduce
Steps to reproduce the behavior:
1.
CREATE SCHEMA test;
CREATE TABLE test.test (
id integer PRIMARY KEY,
value integer NULL
);
CREATE VIEW test.v_test
AS SELECT test.id, test.value
FROM test.test;
INSERT INTO test.v_test (id, value) VALUES(1, NULL);
- Try to change value
Desktop:
- OS: macOS 11.4
- Browser Chrome
- Version 91
Additional context
Database: PostgreSQL 13.3
Reactions are currently unavailable