-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
a/api/graphqlc/serverRelated to serverRelated to serverk/bugSomething isn't workingSomething isn't working
Description
Using
- Hasura v1.2.0
- Postgres 12.2
Steps to reproduce
ALTER TABLE people
ADD COLUMN full_name text
GENERATED ALWAYS AS (first_name || ' ' || last_name) STORED
{
"errors": [
{
"extensions": {
"internal": {
"statement": "WITH \"people__mutation_result_alias\" AS (INSERT INTO \"public\".\"people\" ( \"first_name\", \"full_name\", \"last_name\", \"id\" ) VALUES (($1)::text, DEFAULT, ($2)::text, DEFAULT), (($3)::text, DEFAULT, ($4)::text, DEFAULT) RETURNING * , CASE WHEN 'true' THEN NULL ELSE \"hdb_catalog\".\"check_violation\"('insert check constraint failed') END ), \"people__all_columns_alias\" AS (SELECT \"id\" , \"first_name\" , \"last_name\" , \"full_name\" FROM \"people__mutation_result_alias\" ) SELECT json_build_object('affected_rows', (SELECT COUNT(*) FROM \"people__all_columns_alias\" ) ) ",
"prepared": true,
"error": {
"exec_status": "FatalError",
"hint": null,
"message": "cannot insert into column \"full_name\"",
"status_code": "42601",
"description": "Column \"full_name\" is a generated column."
},
"arguments": [
"(Oid 25,Just (\"John\",Binary))",
"(Oid 25,Just (\"Doe\",Binary))",
"(Oid 25,Just (\"Jane\",Binary))",
"(Oid 25,Just (\"Doe\",Binary))"
]
},
"path": "$.selectionSet.insert_people.args.objects",
"code": "unexpected"
},
"message": "database query error"
}
]
}
Xetera, lahmatiy, jcmandersson, kaupunki-apina, yoshiwarab and 2 more
Metadata
Metadata
Assignees
Labels
a/api/graphqlc/serverRelated to serverRelated to serverk/bugSomething isn't workingSomething isn't working